Currently, I create credit memos through the API and have to manually create receipts in Sage 50.
Is it possible to create receipt through the API? I would think it would be very similar.
Please advise.
It is possible, there is a Receipt class that contains a Create method.
Receipt myReceipt = company.Factories.ReceiptFactory.Create();
Hi Matt,
Thank you for the response.
How do I handle the line items?
In my method that I use to create a receipt for the Sales Invoice, I call the AddInvoiceLine method.
Dim line As Sage.Peachtree.API.ReceiptInvoiceLine = receipt.AddInvoiceLine(salesInvoice)
line.AmountPaid = salesInvoice.AmountDue
How would I handle this for a Credit Memo?
The same AddInvoiceLine method exists for Receipts as well. Intellisense should pull it up, but you can also look up this information in the .chm help file included in the documentation or through the object browser.
*Community Hub is the new name for Sage City