Create receipt for Customer Credit Memo

SOLVED

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.

Parents
  • 0

    It is possible, there is a Receipt class that contains a Create method.

    Receipt myReceipt = company.Factories.ReceiptFactory.Create();

  • 0 in reply to wood

    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?

Reply
  • 0 in reply to wood

    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?

Children