AR Deposit: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 38:
doc.DeptNo = source.Department;
 
source.DetailPaymentDetail.ForEach(s => AddARDepositDetail(s, doc.AddDetail));
 
try
Line 98:
}
</syntaxhighlight>
 
 
===Classes of Source===
Line 119 ⟶ 118:
public string Department { get; set; }
 
// IsSecurityDeposit is to decide whether this deposit is subject to GST
// true: not subject to GST and is meant to be refund
// false: subject to GST and is considered as "Advance Payment"
public bool IsSecurityDeposit { get; set; }
 
public List<ARDepositDetailSource> DetailPaymentDetail = new List<ARDepositDetailSource>();
}
 
Line 158 ⟶ 157:
};
 
newDoc.DetailPaymentDetail.Add(new ARDepositDetailSource()
{
PaymentMethod = "BANK",
Line 179 ⟶ 178:
};
 
newDoc.DetailPaymentDetail.Add(new ARDepositDetailSource()
{
PaymentMethod = "BANK",