AP Payment v2: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 267:
====Test Data 1====
<syntaxhighlight lang="csharp">
public void TestSampleData1(BCEAutoCount.DataAuthentication.DBSettingUserSession dbSettinguserSession)
{
APPaymentSource source = new APPaymentSource()
{
{
//Home Currency Debtor, payment with home currency
CreditorCode = "400-X001",
Description = "Generated Test Payment 1",
DocumentDate = new DateTime(2017, 12, 20),
};
 
source.PaymentDetail.Add(new APPaymentDetailSource()
{
{
PaymentMethod = "BANK",
ChequeNo = "CHQ00012",
PaymentAmount = 100,
BankCharge = 0.50M
});
 
//Document type is required for document knockoff
source.PaymentKnockoff.Add(new PaymentKnockoffSource()
{
{
DocType = PaymentKnockoffSource.APInvoiceDocType,
DocNo = "B-000002",
Amount = 70
});
source.PaymentKnockoff.Add(new PaymentKnockoffSource()
{
{
DocType = PaymentKnockoffSource.APInvoiceDocType,
DocNo = "B-000003",
Amount = 30
});
 
//Create New APPayment in AutoCount Accounting
NewAPPayment(source, dbSettinguserSession);
}
</syntaxhighlight>
Line 313:
====Test Data 2====
<syntaxhighlight lang="csharp">
public void TestSampleData2(BCEAutoCount.DataAuthentication.DBSettingUserSession dbSettinguserSession)
{
APPaymentSource source = new APPaymentSource()
Line 349:
});
 
NewAPPayment(source, dbSettinguserSession);
}
</syntaxhighlight>
 
<br />
{{SeeAlsoAPIAccount}}
{{SeeAlsoAccount}}
 
[[Category:Programmer]]
[[Category:API]]