Hello,

I have a question about the process for modifying and deleting invoices.  In
my current build, I'm getting an SQL error when I try to change an invoice,
saying that I'm trying to insert a transaction with a duplicate primary
key.  Looking into the code I see that reposting an existing invoice calls
up IS->delete_invoice, which calls reverse_invoice, which together do a
number of things to maintain parts on hand and so forth and then delete
relevant entries from invoice, ar, acc_trans, and shipto.  However, I'm not
seeing anything that deletes from transactions.  When a new ar is inserted,
apparently using the same id as the old one, the rules for ar dictate that a
new transaction also be inserted with the same id, but in my build this
transaction is still there from the old one, hence my insert error.

This is probably only an issue in my modified build, but as a non-accountant
and relative newbie at lsmb, any insight as to how this process is supposed
to work would be most welcome.

Thanks!
Chris Calef
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ledger-smb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel

Reply via email to