AP Credit Note API v2: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 7: Line 7:


==AP Credit Note API Usage==
==AP Credit Note API Usage==
===New===
===New with knockoff AP Invoice===
<syntaxhighlight lang="csharp">
<syntaxhighlight lang="csharp">
public void New(AutoCount.Authentication.UserSession userSession)
public void New(AutoCount.Authentication.UserSession userSession)
Line 55: Line 55:
</syntaxhighlight>
</syntaxhighlight>


===Edit===
===Edit with knockoff AP Invoice===
<syntaxhighlight lang="csharp">
<syntaxhighlight lang="csharp">
public void Edit(AutoCount.Authentication.UserSession userSession)
public void Edit(AutoCount.Authentication.UserSession userSession)
Line 92: Line 92:
dtl.Description = "Return of Item A";
dtl.Description = "Return of Item A";
dtl.Amount = 50.00M;
dtl.Amount = 50.00M;

//Knockoff AP Invoice or AP Debit Note
//"PI-00001" is AP Invoice Document Number
doc.KnockOff(AutoCount.Document.DocumentType.APInvoice, "PI-00001", 50M);


try
try
Line 148: Line 152:


==Get Document No. from Supplier Invoice No.==
==Get Document No. from Supplier Invoice No.==
<syntaxhighlight lang="csharp">
public string GetDocNoOfSupplierInvNo(string supplierInvNo, AutoCount.Authentication.UserSession userSession)
public string GetDocNoOfSupplierInvNo(string supplierInvNo, AutoCount.Authentication.UserSession userSession)
{
{
Line 155: Line 160:
return oDocNo?.ToString(); //return oDocNo != null ? oDocNo.ToString() : null;
return oDocNo?.ToString(); //return oDocNo != null ? oDocNo.ToString() : null;
}
}
</syntaxhighlight>


<br />
<br />