AP Credit Note API v2: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 7:
 
==AP Credit Note API Usage==
===New with knockoff AP Invoice===
<syntaxhighlight lang="csharp">
public void New(AutoCount.Authentication.UserSession userSession)
Line 55:
</syntaxhighlight>
 
===Edit with knockoff AP Invoice===
<syntaxhighlight lang="csharp">
public void Edit(AutoCount.Authentication.UserSession userSession)
Line 92:
dtl.Description = "Return of Item A";
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
Line 148 ⟶ 152:
 
==Get Document No. from Supplier Invoice No.==
<syntaxhighlight lang="csharp">
public string GetDocNoOfSupplierInvNo(string supplierInvNo, AutoCount.Authentication.UserSession userSession)
{
Line 155 ⟶ 160:
return oDocNo?.ToString(); //return oDocNo != null ? oDocNo.ToString() : null;
}
</syntaxhighlight>
 
<br />