2,743
edits
(Created page with "==Rules in AP Debit Note== ==References of AutoCount Accounting version 2.0== {{BaseReferenceAC20}} '''AutoCount.ARAP.dll''' ==AP Payment API Usage== ===New=== <syntaxhigh...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1:
==Rules in AP Debit Note==▼
{{BaseReferenceAC18}}
'''BCE.AutoCount.ARAP.dll'''▼
▲==References of AutoCount Accounting version 2.0==
▲ '''AutoCount.ARAP.dll'''
===New===
<syntaxhighlight lang="csharp">
public void NewAPDebitNoteEntry(
{
string userId = BCE.AutoCount.Authentication.UserAuthentication.GetOrCreate(dbSetting).LoginUserID;
AutoCount.ARAP.APDN.APDNDataAccess cmd =▼
BCE.AutoCount.ARAP.APDN.
BCE.AutoCount.ARAP.APDN.
Line 24 ⟶ 23:
try
{
cmd.SaveAPDN(doc,
//Log success
}
catch (
{
//Log Error
}
}
Line 38 ⟶ 37:
===Edit===
<syntaxhighlight lang="csharp">
public void EditAPDebitNoteEntry(
{
string docNo = "DN-000001";
string userId = BCE.AutoCount.Authentication.UserAuthentication.GetOrCreate(dbSetting).LoginUserID;
AutoCount.ARAP.APDN.APDNDataAccess cmd =▼
BCE.AutoCount.ARAP.APDN.
BCE.AutoCount.ARAP.APDN.
if (doc == null)
Line 58:
try
{
cmd.SaveAPDN(doc,
//Log success
}
catch (
{
//Log Error
}
}
Line 72:
===Cancel (Void)===
<syntaxhighlight lang="csharp">
public void CancelAPDebitNote(
{
string docNo = "DN-000001";
BCE.AutoCount.ARAP.APDN.APDNDataAccess cmd =
BCE.AutoCount.ARAP.APDN.APDNDataAccess.Create(
try
{
cmd.CancelAPDN(docNo,
}
catch (
{
//log error
Line 90:
===Delete===
<syntaxhighlight lang="csharp">
public void DeleteAPDebitNote(
{
string docNo = "DN-000001";
BCE.AutoCount.ARAP.APDN.APDNDataAccess cmd =
BCE.AutoCount.ARAP.APDN.APDNDataAccess.Create(
try
{
cmd.DeleteAPDN(docNo,
}
catch (
{
//log error
Line 107:
<br />
{{SeeAlsoAPIAccount}}
[[Category:Programmer]]
[[Category:API]]
|