AP Deposit API: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 21:
//must check the Deposit setting in General Maintenance > Payment Method Maintenance,
//to get correct value
doc.DepositPaymentMethod = "DEPOSIT RECEIVEDPAYABLE";
doc.DocDate = new DateTime(2018, 6, 25);
doc.CreditorCode = "400-X001";
Line 55:
BCE.AutoCount.ARAP.APDeposit.APDepositRefundDetail refundDtl = null;
 
doc.DepositPaymentMethod = "DEPOSIT RECEIVEDPAYABLE";
doc.DocDate = new DateTime(2018, 6, 25);
doc.CreditorCode = "400-X001";
Line 107:
doc.ClearDetails();
 
doc.DepositPaymentMethod = "DEPOSIT RECEIVEDPAYABLE";
doc.DocDate = new DateTime(2018, 6, 25);
doc.CreditorCode = "400-X001";
Line 207:
 
===Delete===
*The '''Delete''' method does not provide parameter of '''DocNo'''
<syntaxhighlight lang="csharp">
*:Function '''GetAPDepositDocKey''' is to [[AP_Deposit_API#Convert_AP_Deposit_DocNo_to_DocKey|Convert AP Deposit DocNo to '''DocKey''']]
<syntaxhighlight lang="csharp" highlight="9">
public void Delete(BCE.Data.DBSetting dbSetting)
{
Line 222 ⟶ 224:
cmd.Delete(docKey.Value);
//Log success
BCE.Application.AppMessage.ShowMessage($"AP Deposit '{docNo}' is cancelleddeleted.");
}
else
{
//Log unable to locate docNo
BCE.Application.AppMessage.ShowMessage($"AP Deposit '{docNo}' is not a valid document no.");
}
}
Line 228 ⟶ 235:
{
//Log error
BCE.Application.AppMessage.ShowMessage("Error when canceldeleting AP Deposit.\n" + ex.Message);
}
}