With lots of help from Erik Huelsmann
(thanks!), we've got a working script which pulls sales invoice
data (in XML format) from an external system and adds sales
invoices to LedgerSMB. It adds rows to ACC_TRANS table, one for
each item and one against for the total. Similarly, the script
adds a row for each item to the INVOICE table. It also adds a row
to AR and a row to TRANSACTIONS.
The issue now is payments. Interestingly, when viewing the resulting sales invoice, a payment is displayed in the payments section of the screen, but with a negative amount (eg, $-15.99 instead of $15.99). Does this mean that I don't have to call a stored procedure after all to make a payment? Why is it displayed as a negative amount? Erik suggested the payment_post() stored procedure, but I'm having difficulty understanding all of its several arguments. Any help here would be very appreciated. Thanks. Brian Brian Wolf
Phone: 410.367.2958
Email: ..hidden..
Try out Activus
Secure Payments™, our recurring payments
application.
Demo at http://demo.activustech.com
|
------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
_______________________________________________ Ledger-smb-users mailing list ..hidden.. https://lists.sourceforge.net/lists/listinfo/ledger-smb-users