An update to my recent question:
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?
The negative amount was easily solved by, well, reversing the
polarity of the amount going into 1060-Checking account (eg, from
$15.99 to $-15.99).
The issue of payments still remains. Do we need to add a payment
at all (since a payment is displayed in the invoice's payment
section of the screen due to a row in ACC_TRANS)? If so, can you
describe arguments to payment_post() ?
Thanks.
Brian
Brian Wolf
Phone: 410.367.2958
Try out Activus
Secure Payments™, our recurring payments
application.
On 06/25/2013 10:01 AM, Brian Wolf wrote:
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
Try out Activus
Secure Payments™, our recurring payments
application.
On 06/18/2013 06:19 PM, Erik Huelsmann wrote:
Hi Brian,
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ledger-smb-users mailing list
Ledger-smb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ledger-smb-users mailing list
Ledger-smb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users
|
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ledger-smb-users mailing list
Ledger-smb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users