Esempio n. 1
0
 partial void OnProjectRoleChanging(global::Microsoft.Dynamics.DataEntities.Project value);
        public static BeginningBalanceCostSaleTransaction CreateBeginningBalanceCostSaleTransaction(string dataAreaId,
                                                                                                    decimal lineNumber,
                                                                                                    string journalId,
                                                                                                    decimal salesAmount,
                                                                                                    bool canAccrueRevenue,
                                                                                                    global::System.DateTimeOffset projectDate,
                                                                                                    decimal costPrice,
                                                                                                    decimal salesPrice,
                                                                                                    global::System.DateTimeOffset voucherDate,
                                                                                                    decimal costAmount,
                                                                                                    decimal quantity,
                                                                                                    global::Microsoft.Dynamics.DataEntities.JournalTable journalHeader,
                                                                                                    global::Microsoft.Dynamics.DataEntities.Project projectRole)
        {
            BeginningBalanceCostSaleTransaction beginningBalanceCostSaleTransaction = new BeginningBalanceCostSaleTransaction();

            beginningBalanceCostSaleTransaction.dataAreaId       = dataAreaId;
            beginningBalanceCostSaleTransaction.LineNumber       = lineNumber;
            beginningBalanceCostSaleTransaction.JournalId        = journalId;
            beginningBalanceCostSaleTransaction.SalesAmount      = salesAmount;
            beginningBalanceCostSaleTransaction.CanAccrueRevenue = canAccrueRevenue;
            beginningBalanceCostSaleTransaction.ProjectDate      = projectDate;
            beginningBalanceCostSaleTransaction.CostPrice        = costPrice;
            beginningBalanceCostSaleTransaction.SalesPrice       = salesPrice;
            beginningBalanceCostSaleTransaction.VoucherDate      = voucherDate;
            beginningBalanceCostSaleTransaction.CostAmount       = costAmount;
            beginningBalanceCostSaleTransaction.Quantity         = quantity;
            if ((journalHeader == null))
            {
                throw new global::System.ArgumentNullException("journalHeader");
            }
            beginningBalanceCostSaleTransaction.JournalHeader = journalHeader;
            if ((projectRole == null))
            {
                throw new global::System.ArgumentNullException("projectRole");
            }
            beginningBalanceCostSaleTransaction.ProjectRole = projectRole;
            return(beginningBalanceCostSaleTransaction);
        }
Esempio n. 3
0
        public static BeginningBalanceOnAccTransaction CreateBeginningBalanceOnAccTransaction(string dataAreaId,
                                                                                              string journalId,
                                                                                              decimal lineNumber,
                                                                                              decimal revenue,
                                                                                              global::System.DateTimeOffset projectDate,
                                                                                              decimal salesPrice,
                                                                                              global::System.DateTimeOffset voucherDate,
                                                                                              global::Microsoft.Dynamics.DataEntities.Project projectRole)
        {
            BeginningBalanceOnAccTransaction beginningBalanceOnAccTransaction = new BeginningBalanceOnAccTransaction();

            beginningBalanceOnAccTransaction.dataAreaId  = dataAreaId;
            beginningBalanceOnAccTransaction.JournalId   = journalId;
            beginningBalanceOnAccTransaction.LineNumber  = lineNumber;
            beginningBalanceOnAccTransaction.Revenue     = revenue;
            beginningBalanceOnAccTransaction.ProjectDate = projectDate;
            beginningBalanceOnAccTransaction.SalesPrice  = salesPrice;
            beginningBalanceOnAccTransaction.VoucherDate = voucherDate;
            if ((projectRole == null))
            {
                throw new global::System.ArgumentNullException("projectRole");
            }
            beginningBalanceOnAccTransaction.ProjectRole = projectRole;
            return(beginningBalanceOnAccTransaction);
        }
Esempio n. 4
0
        public static ProjectDefaultOffsetAccount CreateProjectDefaultOffsetAccount(string dataAreaId, string projectID, string category, string resourcePersonnelNumber, global::Microsoft.Dynamics.DataEntities.Project project)
        {
            ProjectDefaultOffsetAccount projectDefaultOffsetAccount = new ProjectDefaultOffsetAccount();

            projectDefaultOffsetAccount.dataAreaId = dataAreaId;
            projectDefaultOffsetAccount.ProjectID  = projectID;
            projectDefaultOffsetAccount.Category   = category;
            projectDefaultOffsetAccount.ResourcePersonnelNumber = resourcePersonnelNumber;
            if ((project == null))
            {
                throw new global::System.ArgumentNullException("project");
            }
            projectDefaultOffsetAccount.Project = project;
            return(projectDefaultOffsetAccount);
        }