2,743
edits
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1:
==Technical Specification==
{{NavigateDeveloper}}▼
# One AR Deposit allows only one Refund, and one Payment Voucher is created.
# One AR Deposit allows only one Forfeit
# Refund created in AR Deposit will auto create GL Cash Book Payment Voucher under GL | Cash Book Entry.
<br />
==
{{BaseReferenceAC18}}
'''BCE.AutoCount.ARAP.dll'''
<br /
==Sample with data model==
===Add New or Edit Existing AR Deposit with Deposit Refund and Forfeit===
<syntaxhighlight lang="csharp">
Line 83 ⟶ 82:
if (source.Refund == null)
{
//No refund
doc.HasRefund = false;
}
Line 88:
{
doc.HasRefund = true;
if (doc.RefundDocNo != null && doc.RefundDocNo == source.Refund.DocumentNo)
{
//Do nothing when no changed in Refund Document number
//and doc.RefundDocNo is not null
}
else if (source.Refund.DocumentNo == null && doc.RefundDocNo.Length == 0)
Line 114 ⟶ 115:
if (source.Forfeit == null)
{
//No forfeit
doc.HasForfeited = false;
doc.MasterRow["ForfeitedAmt"] = 0.00M;
Line 142 ⟶ 144:
}
//Return null if document is not created or updated.
//If successfully saved, Document number is returned.
return retDocNo;
}
Line 368 ⟶ 372:
}
</syntaxhighlight>
<br/>
{{SeeAlsoAPIAccount}}
[[Category:Programmer]]
[[Category:API]]
[[Category:Integrate]]
[[Category:Plug-In]]
▲{{NavigateDeveloper}}
|