Commit Graph
14503 Commits
Author SHA1 Message Date
Jacques Le Roux 777b0ec794 I made a mistake in r1527171. When I removed the call to GetInvoiceItemTypes.groovy in InvoiceScreens.xml I did not notice it was also generating the AccountOrganizationAndClass list.
This fixes it by renaming GetInvoiceItemTypes.groovy to GetAccountOrganizationAndClass.groovy and removing the now useless invoiceItemTypes list inside it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547742 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 09:29:59 +00:00
Jacques Le Roux eba5ff475c Fixes an issue when no amount have been specified while creating an invoice item
Better groovy scriplets (elvis operator)
I believe using BigDecimal for both fields quantity and total can't hurt
Increases size of both fields quantity and total 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547719 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 07:24:26 +00:00
Jacques Le Roux 83c6338646 Fixes an issue reported by Christian Carlow at "Invoice Item type drop down empty when creating new invoice item" https://issues.apache.org/jira/browse/OFBIZ-5415
jleroux: Rather than what proposed Christian I used the same best practice than in r1527171

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547717 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 06:55:59 +00:00
Adrian Crum 6fe9c29219 Merged revision(s) 1547657 from ofbiz/branches/release13.07:
Fixed some flawed conditional logic introduced in rev 1488656.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547673 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 01:48:16 +00:00
Jacques Le Roux 5292b2f5bc A patch from Praveen Agrawal for "Checking with orderAdjustment.productPromoId rather than adjustment.productPromoId" https://issues.apache.org/jira/browse/OFBIZ-5411
While iterating the adjustments list we are checking with orderAdjustment.productPromoId rather then the adjustment.productPromoId. Using orderAdjustment.productPromoId the condition will never true and the newOrderAdjustmentTotal will always be 0.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547548 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 19:40:57 +00:00
Jacques Le Roux fe79723a1f Removes an useless FIXME (w/o comment)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1544458 13f79535-47bb-0310-9956-ffa450edef68
2013-11-22 10:03:30 +00:00
Jacques Le Roux f552aca3ea A slightly modified patch from Christian Carlow for "Incorrect selected ship destination displayed on purchase order entry form" https://issues.apache.org/jira/browse/OFBIZ-5397
Selected ship group destinations are displayed incorrectly on the purchase order entry Shipping page.  The first ship group destination is selected without checking if any of the other destinations were selected.  Part of the problem is that the facilityId of the destination chosen is not specified in the parameters passed to CheckOutEvents finalizeOrderEntry function.

To reproduce:
1.  Create an order to DemoSupplier
2.  Add any supplier product to the order and click Finalize Order
3.  Click Continue until you reach the Shipping page
4.  Choose the second shipping destination and click Continue
5.  Click the Shipping link to go back to the previous shipping page
6.  Notice that the second destination is not selected

The second destination is actually assigned because it appears on the confirmation page but no code exists to check the correct radio option.  The facilityId will have to be passed in somehow to allow such logic to be correctly implemented.

Using the @ symbol probably isn't the best one to use for separating fields. I wanted to provide the facility destination contactMechIds in a drop down list rather than as a list of radio options and when the @ symbol is used, it is encoded as @ which prevents matching of the key. This means that I don't get an accurate description in the drop down list of the selected record. Replacing the @ symbol with something else such as _ fixes the issue but might cause problems if some facilities or contactMechIds contain an _.

jleroux:I simply used the token _@_ as separator to prevent wrong splits in case @ or _ would have been used in facilities or contactMechIds (though it's not possible OOTB from UI, those Ids are generated)
This solution works well with radio buttons. There are a lof of information to show in each ship group address and I believe in such case it's easier to read as it's currently done (multiple lines for each address) than using a drop-down.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1544444 13f79535-47bb-0310-9956-ffa450edef68
2013-11-22 09:27:34 +00:00
Jacques Le Roux 1e8edf4956 No functional changes, removes trailing white spaces and a deprecated comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543792 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 11:46:48 +00:00
Jacques Le Roux 9401e9fb05 No functional changes, adds back trailing white spaces which should not have been removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543781 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 11:36:17 +00:00
Jacques Le Roux 7a58861e61 A completed patch from Pierre Smits for "Using type=accounting-number in form in facility generates wrong output for inventory overview" https://issues.apache.org/jira/browse/OFBIZ-5335
When using locale DE or NL several quantities (ATP, QOH and others) get transformed wrong.
E.g. a ATP of 250 for a product is 250.00 in locale EN or FR, but for DE and NL the output is 250.000.000,00

jleroux: I completed Pierre's patch in 2 ways:
* used also BigDecimal for minimumStock in getProductInventoryAndFacilitySummary service and groovy script
* Fixed the same kind of issue in  CountFacilityInventoryByProduct.groovy

In by and large i18n contexts, this fixes number of Inventory views and reports, also in Asset Maint and Birt components where those 2 service/groovy scripts are used

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543766 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 11:02:42 +00:00
Jacques Le Roux 8e7922a0c1 No functional change.
This did not make sense: the pattern was compiled and then the string compiled was retrieved.
Also removes 2 trailing blanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542704 13f79535-47bb-0310-9956-ffa450edef68
2013-11-17 10:53:42 +00:00
Paul Foxworthy 1b3b7fffc2 Improved English wording of FacilityThereIsProblemOccurredInPaymentCapture message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542161 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 02:51:25 +00:00
Jacques Le Roux ddf898a735 This reverts r1541641 + 1541746
Local variables are always thread safe, no needs to worry about them

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541894 13f79535-47bb-0310-9956-ffa450edef68
2013-11-14 12:55:18 +00:00
Jacques Le Roux d692b2df2c Fix an issue introduced with r1541641, by finally using synchronized that I tried to avoid
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541746 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 22:04:33 +00:00
Jacques Le Roux e4529567c2 java.util.regex.Pattern instances are immutable but not instances of the Matcher companion class.
So better be safe than sorry, even if in the loops we loose a bit of performance (here only "short" loops anyway)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541641 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 18:04:14 +00:00
Jacques Le Roux 90d37ce794 After my main external backup disk crashed, my main Eclipse workspace crashed also.
While rebuilding it, it seems I inadvertently pushed a OK button somewhere...
This reverts r1541470 and all pending stuff which should not have slipped in

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541485 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 12:01:48 +00:00
Jacques Le Roux d0bd4e8617 This was committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541470 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 11:07:04 +00:00
Jacopo Cappellato 68e5dfb959 Updated Apache POI to the latest version (3.9) and removed some unused (optional) POI jars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541119 13f79535-47bb-0310-9956-ffa450edef68
2013-11-12 15:57:35 +00:00
Scott Gray 96eaab5b73 Remove null check (always yields false)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540552 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 21:12:51 +00:00
Jacques Le Roux 229d028435 Better French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540276 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 08:18:19 +00:00
Jacques Le Roux f4cc2e053c A patch from Christian Carlow for "Ship estimate does not appear on shipping options page of purchase order finalization screen" https://issues.apache.org/jira/browse/OFBIZ-OFBIZ-5388 - OFBIZ-5388
The ship estimate field of the shipping options page of the purchase order finalization screen is not populated with the itemShipGroupEstimate value.

To reproduce:
1.  Create an purchase order to DemoSupplier for product   	
GZ-1000
2.  Finalize the order and click continue until reaching the shipping options page
3.  Set the Shipping Estimate Amount and click Continue
4.  Click the "Options" link to navigate to the previous page and notice that the shipping estimate field is not set to the value submitted in the previous step

This patch sets the value of the shipping estimate field to the ship group estimate.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1539156 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 22:13:05 +00:00
Jacques Le Roux 6e16dd1472 A patch from Christian Carlow for "Additional ship group renderDateFields not created" https://issues.apache.org/jira/browse/OFBIZ-OFBIZ-5382 - OFBIZ-5382
ShipBeforeDate/ShipAfterDate fields are not created as renderDateFields for additional ship groups on orderview page.

The problem is that additional ship groups share the same id as the first ship group date fields.  The javascript renderDateField logic requires unique ids the all fields that are supposed to be created by renderDateField.

To reproduce:
1.  Create an order for DemoCustCompany
2.  Add 10 GZ-BASKET products to the order and click "Finalize Order"
3.  Add an additional ship group and click "Continue"
4.  Assign 5 of GZ-BASKET to second ship group and click "Continue"
5.  Complete the remaining steps required to complete the order 
6.  On the page after the "Create Order" link is clicked, notice the date fields of the second ship group were not rendered with a calendar.  

This patch allows all ship group date fields to be rendered correctly by changing the renderDateField id field from "shipBeforeDate" to "shipBeforeDate_${shipGroup.shipGroupSeqId}" and the same for shipAfterDate


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1539147 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 21:58:46 +00:00
Jacques Le Roux dc34f1c7c7 Fixes a bug I found in CheckInits.groovy while trying to create an new order from Order View screen
Fixes the same kind of bug in CheckoutOptions.groovy

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1538096 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 00:07:10 +00:00
Jacques Le Roux 719181f929 Fixes (more a workaround for now) a bug I found after initializing the BI DB and trying to create a new order
While at it improves a French label

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1538095 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 23:56:49 +00:00
Jacques Le Roux 69d654c4ff I was quite confused when at r1522664 I reverted those changes in ReportSreens
Slightly improves labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1538081 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 23:11:47 +00:00
Jacques Le Roux 9df4e6e492 Better French and English labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537979 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 16:31:00 +00:00
Jacques Le Roux 9f59f8f0cc A temporary workaround which removes "disabled-style="disabled" in the createOrder menu item condition (in ViewQuote)
The only effect is to remove the disabled item

This is due to r1517353 which introduced a NPE in MacroMenuRenderer.java



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537833 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 06:14:09 +00:00
Jacopo Cappellato b12aa93a12 Applied patch from OFBIZ-5359 that fixes an error in the computation of accounting quantity difference: thanks to Michael Ende for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537023 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 09:54:45 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Jacques Le Roux fda9860a95 Fixes "Pagination from category tree is flawed, and not only this pagination" https://issues.apache.org/jira/browse/OFBIZ-5372
It was already flawed in R10.04.
If you click on the Gizmos node, the pagination page shows 3 pages when there should be only 2 and if you get to the page 3 it crashes.
If you come from the breadcrumb the problem is the same.
On the other hand, from R11.04 there is a "Popular Categories" section at top of the main screen, and from there it works correctly. 
But in this version the "Featured Products" pagination shows the same symptom than the category pagination. 
The "Featured Products" pagination works almost correctly from R12.04, but shows 2 pages when the second is useless and empty, at least no crashes!

Note:
This has no side effects on the same in order component
Actually what we should do is to create an unique paginationControls macro but there are subtle differences and I'm afraid it would open a can of worms. I will though check...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535961 13f79535-47bb-0310-9956-ffa450edef68
2013-10-26 10:22:31 +00:00
Jacques Le Roux bc6bc28aff Fixes a wrong C/P which was crashing ecommerce/micro-chrome-widget-WG-1111-p.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535948 13f79535-47bb-0310-9956-ffa450edef68
2013-10-26 08:53:32 +00:00
Jacques Le Roux d5a97da150 No functional changes, removes an useless variable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535945 13f79535-47bb-0310-9956-ffa450edef68
2013-10-26 08:32:46 +00:00
Hans Bakker 834c6ac2d8 revert of unwanted commit, sorry!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535287 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:42:34 +00:00
Hans Bakker 45011c0ed1 reorganizing of files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535286 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:39:36 +00:00
Adrian Crum f61d9a8b1b Updated OfbizCatalogAltUrlTransform.java to use the new OFBiz URL builder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535262 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 01:51:48 +00:00
Adrian Crum af23fe0b35 Refactored ConfigXMLReader.java - added exception handling. The class swallowed exceptions like controller.xml file is missing or invalid - making debugging difficult. This commit introduces a WebAppConfigurationException and it propagates that exception farther up the stack.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534517 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 06:50:05 +00:00
Hans Bakker 7ba19d4b9f make status an optional field in the creation of a payment and provide a default value of 'not paid'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534478 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 03:58:16 +00:00
Hans Bakker 4c7c7a4855 optional service parameter is still parsed in the service iteself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534062 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 08:28:07 +00:00
Jacques Le Roux 3a116293a3 A slightly modified patch from Gareth Carter for "Fixes for some xml/groovy files" https://issues.apache.org/jira/browse/OFBIZ-5349
Validated all xml files and compiled all groovy files and found a few errors. Look at patch for details

jleroux: For webapptests.xml, I prefered to revert it from r959261 (I saw an issue in my xml editor, did not check more)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1532366 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 14:51:57 +00:00
Jacques Le Roux e23c626113 This fixes
"Addition of item to shopping list is not working" https://issues.apache.org/jira/browse/OFBIZ-4903
"Problem when saving a product to a shopping list" https://issues.apache.org/jira/browse/OFBIZ-4589
I don't pretend it's glorious code. For instance I gave up on trying to have the groovy changes snippets consistent in both components and to reuse the way it's done in party. And the way I secured the indexes remember me when I was hacking in APL. For my defense, it was really a mess... and my time is limited...
Anyway, at least it fixes all the issues I crossed in shopping list editing in both party and ecommerce components:
* NPE on sessions ending
* wrong and failing (NPE in ftl) pagination
* error on pagination links after adding a product

Tested with both 2 and 20 size view on both sides


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1532342 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 14:03:54 +00:00
Jacques Le Roux f32d671584 This still missed the UtilProperties import after r1531876
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1532284 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 10:52:50 +00:00
Jacques Le Roux 59774c4d80 I made a typo in the signature of UtilProperties.getPropertyValue() in my last commit, the last parameter is a String
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531876 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 12:37:03 +00:00
Jacques Le Roux a0dcb59884 Avoids fixed view sizes and provides default value in case of missing property
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531874 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 12:20:01 +00:00
Jacques Le Roux d76c2a3872 Orders imports, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531873 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 12:17:08 +00:00
Jacopo Cappellato ad8b3bf1c9 Fixed bug reported by Simon Maskell in OFBIZ-5344 with a slightly different patch than the one provided by Simon.
Also added a TODO comment to warn that the current logic doesn't work well for LIFO/FIFO.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531848 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 10:56:24 +00:00
Jacques Le Roux f95cbbd792 Reverts r1531030 at Jacopo's request related to "Shipment cancellation doesn't revert inventory accounting quantity total" https://issues.apache.org/jira/browse/OFBIZ-5314
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531847 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 10:51:13 +00:00
Jacques Le Roux ead469fa39 Better labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531842 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 10:30:45 +00:00
Jacques Le Roux aa377c1728 Fixes the comment, this is really easier to read
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531841 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 10:26:47 +00:00
Jacques Le Roux a242e12f38 No functional change, fixes comment and log
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531834 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 09:46:16 +00:00
Jacques Le Roux 74bb7c945a A patch from Christian Carlow for "Shipment cancellation doesn't revert inventory accounting quantity total" https://issues.apache.org/jira/browse/OFBIZ-5314
When order items are issued to a shipment, the accounting_quantity_total
for the corresponding inventory records are updated but afterwards when
the shipment is cancelled, the accounting_quantity_total is not reverted
back to the original values.  Is this a bug or is there a reason the
quantity is not reverted?

The problem is that when I try to create another shipment and issue the
same quantity, I receive the following error:

The following error occurs when I try to issue the same previously
cancelled quantity to a newly created shipment:

Error:<br/> ERROR: Could not complete the Issue OrderItemShipGrpInvRes
to Shipment
[file:/dev/apache-ofbiz-11.04.02/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml#issueOrderItemShipGrpInvResToShipment]
process [problem removing the orderItemShipGrpInvRes value: The current
transaction is marked for rollback, not beginning a new transaction and
aborting current operation; the rollbackOnly was caused by: Error in
simple-method [Create an accounting transactions for a sales shipment
issuance (D: INVENTORY_ACCOUNT, C: COGS_ACCOUNT)
[file:/home/stan/dev/apache-ofbiz-11.04.02/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml#createAcctgTransForSalesShipmentIssuance]]:
; {Could not find enough accounting inventory for product DOUGH;
remaining quantity: 1}] <br/> <br/>

The service is looking for inventory_item records with an
accounting_quantity_total > 0 but finds none because the quantity was
decremented to 0 from the cancelled shipment issuance.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531030 13f79535-47bb-0310-9956-ffa450edef68
2013-10-10 15:43:42 +00:00