Extend the drop shipment process to manage an agreement for the supplier related to the order context.
For a supplier we have different agreements with same products but on different prices
Agreement A
GIZMO-1 100€
GIZMO-1 110$
Agreement B
GIZMO-1 90€
Agreement C
GIZMO-1 600¥
During sales order process we resolve the purchase agreement that match the case and put on OrderItemShipGroup related to the supplier. Like that when the drop shipment process run it to resolve the product price for the agreement present on the OrderItemShipGroup. With this implementation we have an adaptable system to manage complex case.
Properly this patch implemented :
an attribute on entity OrderItemShipGroup.supplierAgreementId
an attribute on entity OrderHeader.agreementId (necessary when you update the order to keep the price)
update the service caculatePurchasePrice for resolve the price from a agreement if it's present
update the shoppingCart to insert a purchase agreement
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825002 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-6330)
In createAcctgTransForPurchaseInvoice and createAcctgTransForCustomerReturnInvoice,
add tax invoice items to the accounting transaction entries so the debits and credits balance.
Thanks: Kongrath Suankaewmanee for reporting; Nicolas Malin, Jacopo Cappellato,
Christian Geisert and Jacques Le Roux for their help.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824740 13f79535-47bb-0310-9956-ffa450edef68
With this entity we can link a customScreen with an organisational party for a document type like salesinvoice, product quote and so on.
I added screen, form and menu to manage them on the organisation party configuration page accounting/control/ListCompanies
Currently this isn't useful alone but needed for issues OFBIZ-10215, OFBIZ-10216, OFBIZ-10217 that will be completed soon
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824436 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
Fixes few remaining swallowed Exception in Groovy files.
Not sure if always showing an error message in ui is a good idea.
But this should not happen too often and could help users to fix wrong passed
numbers...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824294 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9572)
Replace (and removes) "BigDecimal ZERO" by BigDecimal.ZERO where a ZERO var
makes no sense, ie when no scale/rounding is used.
Replaces the pattern for ZERO var creation in several files using
new UtilNumber.getRoundingMode()
No ZERO var creation and scale/rounding when confusion with several scale and
rounding is possible hence just BigDecimal.ZERO used.
Like in InvoiceServices.java and InvoiceWorker.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824127 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9571)
UtilNumber class
Deprecates and replaces both getBigDecimalRoundingMode() by getRoundingMode()
Deprecates toPercentString()
Puts a log for a NumberFormatException
Calculate class
Uses RoundingMode where necessary. No deprecation, this should be only used
by Minilang
The rest
Adapts the whole code for that
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1823931 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10175)
Some of the remnants were still left. I got stuck with
JsLanguageFileMappingCreator, so changed other left outs too.
This also fixes OFBIZ-10113 - Replace Asm select plugin with Select2.
Thanks: Aditya
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1823826 13f79535-47bb-0310-9956-ffa450edef68
sub classes
(OFBIZ-10209)
Arun:
Most "liquid" assets should be first (i.e Bank/Cash before Inventory) so need
to provide support to sort GLAccount classes.
Add seqId to GlAccountClass entity to support the sorting of GLAccount sub
classes.
Suraj:
Also rearranged GlAccountClass data in a logical grouping for better readability
Jacques:
I counted 35 lines GlAccountClass moved, did not check each line
Thanks: Arun Patidar for report and Suraj Khurana for the patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1823737 13f79535-47bb-0310-9956-ffa450edef68
CategoryServices.xml
(OFBIZ-10146)
While doing some conversions from MiniLang to Groovy, I stumbled across these
methods:
loadBestSellingCategory
RemoveProductFromBestSellCategory
AddProductToBestSellCategory
FindCategoryChild
FindBestSellingProduct
These are all in CategoryServices.xml.
I started realizing, that the simple-method loadBestSellingCategory doesn't
work right (there are some logical failures in it) and while fixing it,
I searched for places where this is used, but couldn't find any.
I started looking deeper into it and found that all of these methods are never
used anywhere in OFBiz, neither are the services which are declared for these
methods.
This is why I propose to remove them; they have no real use, since they don't
work properly, and also are never used.
Thanks: Dennis Balkir
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1822978 13f79535-47bb-0310-9956-ffa450edef68
workeffort component
(OFBIZ-10122)
Steps to regenerate:
1) Open URL https://demo-trunk.ofbiz.apache.org/sfa/control/Events
2) Click on the event created.
3) To add the requirements of events, click on the "Requirements" button.
4) Add the existing requirement Id or add a new requirement. Click on Save.
Actual: Not able to add the requirement. Broken screen with the error message.
Note: Refer the screenshot attached.
Thanks: Rubia Elza Joshep for report and Yogesh Naroliya for the patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821613 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-6946)
Currently there are dependencies in the order component on the ecommerce
component. Order management should work without the ecommerce component.
jleroux: I simply removed the commented out lines, no need for a patch
There are still a lot of other dependencies in the order component on the
ecommerce component...
Thanks: Pierre for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821356 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9708)
In WorkEffortSimpleServices.xml the service implementations from
updateWorkEffortContactMech to updateWorkEffortEmailAddress are missing service
definitions.
This was discussed at http://markmail.org/message/kgbpolz2daxfa5zx.
Thanks to Pawan Verma for reporting and patching, everyone for the discussion
and Scott for the detailed argumentation which makes totally sense.
jleroux:I wanted to provide proper tests, but this has already stayed too long
in my working copy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821114 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10133)
When ofbiz streams a large content (eg. video file), get out of memory exception.
To reproduce the issue see the Jira
jleroux: I just removed final for bufferSize, I see no needs for that local
variable
Thanks: Wai for the patch Michael for the discussion
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821036 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10154)
To recreate the bug go to
Order->OrderEntry-> Search in the catalog for "g" -> check the amount of shown
pages and press "Next" -> press "back" -> note how many results you now have
Thanks: Karsten Tymann
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821012 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10128)
The ofbiz_logo.png is now in theme. This is only the framework part.
I have also made change in theme but I need to review again and perhaps create
a patch for others to review...
Note: testUpdatePartyGroup is OK
Then I'll also rename the logo in site to use the same name before maybe
referring to svn trunk repo to use only 1 file everywhere, same for the .ico
file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820862 13f79535-47bb-0310-9956-ffa450edef68
When you use a product price with included vat tax, the orderAdjustment created have an amount to 0 but amount already included with the vat.
When we display the order adjustment detail for an order item we use only amount (so 0).
Now if the orderAdjustment have an amountAlreadyIncluded not empty, we display it instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820403 13f79535-47bb-0310-9956-ffa450edef68
In this patch a hard coded String is replaced with a String variable, trailing whitespace is deleted and a small typo is fixed.
Thanks Kyra Pritzel-Hentley for your contribution
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820262 13f79535-47bb-0310-9956-ffa450edef68