AR Deposit: Difference between revisions

no edit summary
mNo edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1:
==Technical Specification==
{{NavigateDeveloper}}
# DepositPaymentMethod'''Deposit Payment Method''' must be a payment method that is link to an Account that is created as type of "Deposit" Account in '''GL''' | '''Account Maintenance'''.
===Rules in AR Deposit===
# DepositPaymentMethod must be a payment method that is link to an Account that is created as type of "Deposit" Account.
 
===Assemblies version 1.8===
<pre>
BCE.AutoCount.ARAP.dll
</pre>
 
<br />
===Assemblies version 1.8=, 1.9==
{{BaseReferenceAC18}}
'''BCE.AutoCount.ARAP.dll'''
<br />
==Sample with data model==
===Create new AR Deposit===
<syntaxhighlight lang="csharp">
Line 38:
doc.DeptNo = source.Department;
 
source.DetailPaymentDetail.ForEach(s => AddARDepositDetail(s, doc.AddDetail));
 
try
Line 99:
</syntaxhighlight>
 
===Classes of Source (data model)===
 
===Classes of Source===
<syntaxhighlight lang="csharp">
public class ARDepositSource
Line 108 ⟶ 107:
public string Description { get; set; }
public string DepositMethod { get; set; }
 
/// <summary>
/// Currency Code that is used to pay the deposit
/// </summary>
public string CurrencyCode { get; set; }
public string CustomerAccount { get; set; }
Line 119 ⟶ 117:
public string Project { get; set; }
public string Department { get; set; }
 
/// <summary>
/// IsSecurityDeposit is to decide whether this deposit is subject to GST
//true: not subject to GST and is meant to be refund
/// </summary>
//false: subject to GST and is considered as "Advance Payment"
public bool IsSecurityDeposit { get; set; }
 
public List<ARDepositDetailSource> DetailPaymentDetail = new List<ARDepositDetailSource>();
}
 
Line 136 ⟶ 135:
public string BankChargeBillNoForGst { get; set; }
public string PaymentBy { get; set; }
 
/// <summary>
/// If this cheque is returned/bounced cheque
/// Set the returned/bounced date. Otherwise it is null
/// </summary>
public DateTime? ReturnChequeDate { get; set; }
}
Line 145 ⟶ 143:
 
===Implementation===
* Deposit without Debtor Code
[[File:ProgrammerNewARDeposit1.PNG|link=]]<br />
* Deposit with Debtor Code
[[File:ProgrammerNewARDeposit2.PNG|link=]]
<syntaxhighlight lang="csharp">
Line 159:
};
 
newDoc.DetailPaymentDetail.Add(new ARDepositDetailSource()
{
PaymentMethod = "BANK",
Line 180:
};
 
newDoc.DetailPaymentDetail.Add(new ARDepositDetailSource()
{
PaymentMethod = "BANK",
Line 192:
</syntaxhighlight>
 
{{SeeAlsoAPIAccount}}
==See Also==
* [[AR Debtor]]
* [[AR Invoice]]
* [[AR Received Payment]]
* [[AR Debit Note]]
* [[AR Credit Note]]
* [[AR Refund]]
* [[AR Deposit]]
 
[[Category:Programmer]]
[[Category:API]]
[[Category:Integrate]]
[[Category:Plug-In]]
{{NavigateDeveloper}}