2,743
edits
No edit summary |
No edit summary |
||
Line 9:
{{BaseReferenceAC18}}
'''BCE.AutoCount.ARAP.dll'''
<br /><br />
===Create new AR Invoice===
<syntaxhighlight lang="csharp">
public void
{
string userID = BCE.AutoCount.Authentication.UserAuthentication.GetOrCreate(dbSetting).LoginUserID;
BCE.AutoCount.ARAP.
BCE.AutoCount.ARAP.
BCE.AutoCount.ARAP.
//if this AP Invoice has been knockoff(offset) with payment or credit note,
//Changing of CreditorCode is not allowed.
doc.Description = source.Description;▼
//Therefore, when such case arise, it is advised to issue Credit Note and issue a new AP Invoice
//doc.
doc.
doc.
doc.PurchaseAgent = "TOM";
doc.JournalType = "PURCHASE";
doc.RoundingMethod = BCE.AutoCount.Document.DocumentRoundingMethod.LineByLine_Ver2;
//Document Level Inclusive Tax
doc.InclusiveTax =
doc.ClearDetails();
dtl = doc.NewDetail();▼
//Add two lines of detail
dtl.AccNo = ivDtl.Account;▼
dtl.ProjNo = DBNull.Value;
dtl.Amount = 150.00M;
try
{
cmd.
//log success
//BCE.Application.AppMessage.ShowMessage(string.Format("{0} is created.", doc.DocNo));
Line 58 ⟶ 62:
}
</syntaxhighlight>
===Classes of Source===
|