This new version is cleaner (less code, less redundancy of information), correct and it also resolves some pretty relevant issues (including some db deadlock errors) affecting performance in instances with medium/high number of GL postings.
Here is a list of changes introduced in this commit:
* removed the postedBalance field from GlAccount and GlAccountOrganization: this was a wrong design; the field in GlAccount was not used by the applications; the field in GlAccountOrganization was used but not consistently
* added openingBalance field to GlAccountHistory: now this entity has full information about an account in a financial period after the period closed (opening and ending balance, posted debits and credits); now the endingBalance is computed correctly both for Debits and Credits accounts
* updated demo data for the data model changes mentioned above
* the business logic to compute the account balances is now implemented in a service (computeGlAccountBalanceForTimePeriod) and reused consistently
* removed several FIXME/TODO comments now that the new code addresses the related gaps and issues
* removed some old, incorrect or no more used artifacts: getGlAcctgOrgWithPostedBalanceSplit (service), getNetBalance (utily methods)
* refactored the TrialBalanceReport and GlAccountTrialBalance reports and related pdf versions: the new versions have cleaner code and show the correct balances both for debits and credits
* fixed a series of Groovy compilation issues due to missing imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530273 13f79535-47bb-0310-9956-ffa450edef68
In the Dutch market space it is customary to pay with pin. This should be incorporated
jleroux:same in France where we use smart card since it was invented
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1529693 13f79535-47bb-0310-9956-ffa450edef68
While adding an item to an approved order if we select orderItemTypeId it gives an error message.
The error was occurring because in "orderItemTypeId" field, value being passed was that of "reasonEnumId". I am submitting a patch having the correct value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1529588 13f79535-47bb-0310-9956-ffa450edef68
Related to OFBIZ-5209. I guess Leon made a wrong C/P and the field is actually AgreementTerm.textValue I have also added it to updateAgreementTerm
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527289 13f79535-47bb-0310-9956-ffa450edef68
When you update the address that an EFT Acccount is linked to, all expired EFT accounts are "resurrected", which can mean multiple out-of-date copies of an EFT account are displayed in the Payment Method Information.
To reproduce (with OFBiz demo data):
* Go to DemoSupplier profile page and click Create EFT Account
* Enter details of a new account, making sure the account is linked to the DemoSupplier postal address.
* Click Save and then click Cancel/Done.
* Back on the profile page, Update for this new EFT account.
* Change at least one field of the account.
* Click Save (now there are two EFT account records in the database; one of which is expired). Click Cancel/Done.
* Now click Update for the DemoSupplier's postal address.
* Update at least one field. Click Save.
* Go back to the DemoSupplier profile page. You should see that the old expired EFT accounts are listed in the Payment Method Information.
We avoid this bug by altering PaymentMethodServices.xml#setPaymentMethodAddress, so that out-of-date EFT Accounts are filtered out.
jleroux: I applied changes by hand because the patch did not work. I also removed the useless line setting a now var.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527254 13f79535-47bb-0310-9956-ffa450edef68
I did not get further enough to add missing labels, like InvoiceItemType.description.SINVOICE_HEAD_ADJ, etc.
So when missing the default English description set in data seed is used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527171 13f79535-47bb-0310-9956-ffa450edef68
When having created a new production run in MFG with a facility selected, the facility isn't shown when the production run is confirmed.
I added an extra field to display facilityName and facilityId when the ProductionRun is confirmed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526653 13f79535-47bb-0310-9956-ffa450edef68
When having started the task in a production run required materials and/or components are shown. However the overview only shows productIds
In ProductionRunForms.xml someone accidentally used productName instead of internalName to get the name of the product.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526463 13f79535-47bb-0310-9956-ffa450edef68
Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="3"/>
You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3
This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE.
I did not look into details for the 143 cases but I believe most are also legacy.
There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport!
There is only one comment for LookupBulkAddProducts which is also legacy: <!-- 10 rows seems more appropriate given screen size, etc. -->
I suggest to OOTB replace all those by the widget.form.defaultViewSize value.
Things will then be consistent and easily changeable on a global scale using the widget property.
Or if really needed forcing the default-value as it's done now.
So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen)
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526387 13f79535-47bb-0310-9956-ffa450edef68
If you clear the last packed item from from a shipment with two items and then complete the pack, you get the exception below:
Exception thrown while creating the "newEntity" ....ShipmentPackageContent ... Key ... is not present in table shipment_package
This is happening because org.ofbiz.shipment.packing.PackingSession.clearLine() around line 600 is decrementing packageSeq from 1 to zero. This causes createPackages() to not generate any ShipmentPackages because of the for statement on packageSeq and therefore the subsequent exception.
I fixed this by just commenting out the block starting with "if(line.packageSeq ==". I did not submit a patch because I do not fully understand the logic and do not have time now to learn it now.
Hopefully the author will be better equipped to deal with it properly.
Skip
jleroux: the path's author (https://issues.apache.org/jira/browse/OFBIZ-2163) Karim Rahimpur did not answer. But by analogy with clearAllLines I decided that packageSeq should not be less than 1!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524950 13f79535-47bb-0310-9956-ffa450edef68
Just for seek of tidiness, I attached another patch that removes redundant code in FindProductBom.groovy, without changing its behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524769 13f79535-47bb-0310-9956-ffa450edef68
When having more than 20 BoM's in Manufacturing the overview doesn't paginate.
jleroux; I'm not quite sure why an orderBy was necessary but it works and is a simple enough solution. I refactored things a bit and kept find instead of proposed findList. So this just add an orderBy to the find
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524676 13f79535-47bb-0310-9956-ffa450edef68
Leon:
Thanks for resolve this bug. But it introduce a small flaw: all cancelled items is filtered out from order item list.
The filter condition before this patch is : ("Y".equals(orderItem.get("isPromo")) && "ITEM_CANCELLED".equals(orderItem.get("statusId"))); – means filter out the item that is promo "AND" cancelled.
That of patch is : ! ((item.isPromo == null || item.isPromo == 'N') && !(item.statusId.equals('ITEM_CANCELLED'))) – means filter outer the item that is promo "OR" cancelled.
Theses two is not equivalent. After this patch, all cancelled items are filter out, no matter it's promo or not.
jleroux:
What we had before the change:
get cancelled promo items
remove them from the list of items
So we got all items but cancelled promo items
What we have now:
Get non-promo items AND non-cancelled items (or as said Scott "get all non-promo items that aren't cancelled")
What you suggest:
Get non-promo items OR non-cancelled items (if re-phrase what you suggest: get all non-promo items and add to them all the non-cancelled ones, so including the non-cancelled promo ones)
Your sentence "After this patch, all cancelled items are filter out, no matter it's promo or not." is almost right. Because we not only miss the cancelled non-promo but also the promo not cancelled
To re-prhase myself: Currently we miss the promo items which are not cancelled and the non-promo items which are cancelled
Pfew... the exclusive reasoning is here quite easier than the inclusive one!
I removed the useless parentheses around the cancelled proposition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524361 13f79535-47bb-0310-9956-ffa450edef68
The quickInitDataWarehouse BI button used these dates (set in BI main screen)
<set field="fromDate" value="2008-01-01 00:00:00.0" type="Timestamp"/>
<set field="thruDate" value="2010-01-01 00:00:00.0" type="Timestamp"/>
This generated 1000+ records. I set 10 years ahead (from sept. 2013) in a new bi.properties file used by the BI main screen. So it generates only 3000+ records (and others related in BI DB) which is still reasonable. A message, placed at the top of the Order Reports page, informs users that for 4 Birt reports s/he needs 1st to run the data warehouse init using the BI button. Also this message clarifies the range, to be certain that in 10 years people will still easily know what to change...
I have also replaced a lot of labels and added English and French translations (by-product: some labels cleaning in CommonUiLabels.xml)
I did not do the same for the accounting paymentReport and ViewFacilityInventoryHistoryReport facility Birt reports which only need translation.
I noticed that there are no ways to get to ViewFacilityInventoryHistoryReport from UI though!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521589 13f79535-47bb-0310-9956-ffa450edef68
framework/build.xml
applications/build.xml
specialpurpose/build.xml
are only used to define the filelist properties (as before) with the list of components to be built.
The main build file simply refers to these lists to build/doc/clean OFBiz; as before, if applications' or specialpurpose's build.xml files are absent, the folders are ignored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520744 13f79535-47bb-0310-9956-ffa450edef68
* removed redundant targets (e.g. clean-xtras)
* removed unused targets and settings
* moved runtime related targets from framework to main build file
* moved the search index runtime folder from runtime/data/indexes to runtime/indexes to prevent the removal of indexes when clean-data is executed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520510 13f79535-47bb-0310-9956-ffa450edef68