Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A Chris Howe's comment taken from user ML

Just a quick comment on how you have the view-handler defined. Since you're wanting to have this distributed as a plugin, instead of placing the <handler name="zk" ... in the common-controller, simply put that line in your controller.xml file after the <include... statement. You'll probably also want to change the class name to however you're going to distrubte it (ie com.milindparikh.widget.screen.ZkViewHandler) and move the file into
the src directory of your component...and make sure the build routine is working properly.

...

Issue with createAcctgTransAndEntries service

If you see errors like

Error:Error trying to begin transaction, could not process method: The
current transaction is marked for rollback, not beginning a new
transaction
and aborting current operation; the rollbackOnly was caused by: Service
createAcctgTransAndEntries threw an unexpected
exception/errororg.ofbiz.service.ServiceValidationException: The following
required parameter is missing: OUT
createAcctgTransAndEntries.acctgTransId (The following required
parameter
is missing: OUT createAcctgTransAndEntries.acctgTransId) calling
service
balanceInventoryItems in receiveInventoryProduct

If you are not using the Accounting module much and specifically the GL section, than go to accounting --> ~> ofbiz-component.xml and comment the entry for secas_ledger.xml in that file, restart the server and try again. This should solve your problem.

...

  1. Configure an Error Journal to post there the accounting transactions that are incomplete
    You can create the error journal in this way:
    1. Go to Accounting ->General Ledger ->Setup -->Journals >>General Ledger >>Setup >>Journals and create a new journal
      https://localhost:8443/accounting/control/SetupGlJournals?organizationPartyId=Company
    2. Go to Accounting ->General Ledger ->Setup -->Accounting >>General Ledger >>Setup >>Accounting Preferences and select the journal in the "Error Gl Journal Id":
      https://localhost:8443/accounting/control/PartyAcctgPreference?organizationPartyId=Company
    3. All the "incomplete" transactions will be visible here:
      https://localhost:8443/accounting/control/ListUnpostedAcctgTrans?organizationPartyId=Company

...