Esempio n. 1
0
            public void Add(ARTran arTranRow, FSxARTran fsxARTranRow)
            {
                if (fsxARTranRow.SOID == null)
                {
                    return;
                }

                SOPrepaymentBySO row = SOPrepaymentList.Find(x => x.SOID.Equals(fsxARTranRow.SOID));

                if (row != null)
                {
                    row.unpaidAmount += arTranRow.CuryTranAmt ?? 0m;
                    row.fsxARTranList.Add(fsxARTranRow);
                }
                else
                {
                    SOPrepaymentBySO newRow = new SOPrepaymentBySO(arTranRow, fsxARTranRow);
                    SOPrepaymentList.Add(newRow);
                }
            }
Esempio n. 2
0
            public void Add(SOLine soLineRow, FSxSOLine fsxSOLineRow, decimal soTaxLine)
            {
                if (fsxSOLineRow.SOID == null)
                {
                    return;
                }

                SOPrepaymentBySO row = SOPrepaymentList.Find(x => x.SOID.Equals(fsxSOLineRow.SOID));

                if (row != null)
                {
                    row.unpaidAmount += (soLineRow.CuryLineAmt ?? 0m) + soTaxLine;
                    row.fsxSOLineList.Add(fsxSOLineRow);
                }
                else
                {
                    SOPrepaymentBySO newRow = new SOPrepaymentBySO(soLineRow, fsxSOLineRow, soTaxLine);
                    SOPrepaymentList.Add(newRow);
                }
            }