Hi All,

I am testing the createAcctgTransAndEntries service using the web interface
(at
https://localhost:8443/webtools/control/setSyncServiceParameters?SERVICE_NAME=createAcctgTransAndEntries&POOL_NAME=pool&_RUN_SYNC_=Y
).

I have tried many different formats for the acctgTransEntries  field, but
the logs state that OfBiz is ignoring my entries because the
organizationPartyId is not an internal organization.  When I dug deeper, it
seemed like the service could not read the organizationPartyId from what I
was passing it (read as null / blank).  Obviously, the PartyRole check
failed at that point and the entry was discarded.

Please note that, in the examples below, I created a Person (using
createPerson) and then made them an internal organization (using
cseCreatePartyRole).

Here are some variations I tried, all without success:
{"debitCreditFlag":"D","organizationPartyId":"10182","amount":"200.00","glAccountId":"10663","partyId":"10182"}
("debitCreditFlag":"C","organizationPartyId":"Company","amount":"1500.00","glAccountId":"10664")
{("debitCreditFlag":"D","organizationPartyId":"10212","amount":"150.00","glAccountId":"10690","partyId":"10212")}
[debitCreditFlag : D; organizationPartyId : 10212; amount : 150.00;
glAccountId : 10690; partyId : 10212]
[[debitCreditFlag : D; organizationPartyId : 10212; amount : 150.00;
glAccountId : 10690; partyId : 10212]]
[{"debitCreditFlag":"D","organizationPartyId":"10182","amount":"200.00","glAccountId":"10663","partyId":"10182"}]

Any help that people can provide is greatly appreciated.  If this is the
wrong service to use to create an accounting transaction from another
server, please provide some guidance on how best to do it.  Please note
that I did try to use createAcctgTrans and then subsequent calls to
createAcctgTransEntry, but OfBiz kept generating duplicate transaction
entry sequence IDs, so I moved to createAcctgTransAndEntries.

Thank you,
Sachin.

Reply via email to