Commit Graph
3927 Commits
Author SHA1 Message Date
Jacques Le Roux 51930641c5 Fixed: Wrong Field Name Definition in RequirementForms (OFBIZ-12505)
The issue exists also in the older version.

The field "requirementByDate" form "FindApprovedProductRequirements" in
RequirementForms.xml has been set wrongly and it should be "requiredByDate".

This causes the result could not be queried out properly as indicated as below:

The result is governed by the service "getRequirementsForSupplier",
where reads the list from the view "RequirementAndRole".
In the view entity definition, the field is defined as
<alias entity-alias="RQ" name="requiredByDate"/>,
but it is not the case in the form "FindApprovedProductRequirements" above.

After changing it to the correct name, the bug is solved.

jleroux: Same exists in OrderEntryForms::FindRequirements

Thanks: Schumann Ye for report Pierre Smits for creating the initial PR494
2022-01-31 12:25:04 +01:00
Jacques Le Roux 8c6d3272bd Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
Fixes random  object created and used only once in classes:
  SSLUtil
  OrderTestServices
  FinAccountHelper
  GiftCertificateServices

Also related minor formatting in HashCrypt and ContextFilter
2021-12-28 12:11:12 +01:00
Pierre Smits 1d21cfbe75 Improved: Have a Menu in Order featuring actions to create the main objects (OFBIZ-11772) (#407)
Currently the create buttons for the main objects of the order components are located within the find and profile widgets/templates of those object.
In order to improve the usability of OFBiz (and thus the appeal of it for adopters and users) these create buttons/links/etc. should be in a main action menu visible at all times when a user is working within the component.

Modified:
added: MainActionMenu for the order component, having:

menu-item to start the order creation
menu-item to start the quote creation
menu-item to start the request creation
menu-item to start the requirement creation
menu-item to start the return creation
menu-item to start the allocation plan creation
removed: menu-item to create a request from RequestSubTabBar
AllocationPlanScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
CommonScreens.xml
improved: grouping regarding customer requests
CustRequestScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
removed 'menu-bar' decorator section
OrderEntryCommonScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
OrderReturnScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
removed: 'basic-nav' container
OrderViewScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
QuoteScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
removed: container with create quote link
QuoteWorkEffortScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
ReportScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
RequirementScreens.xml
added: decorator-section for pre-body to include the MainActionMenu
removed: container having create link
2021-12-28 11:09:47 +01:00
Jacques Le Roux 5d64a88226 Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
Uses SecureRandom rather than Random class in classes
SampleHtmlThread
PaymentGatewayServices
FinAccountHelper
OrderTestServices
ProductStoreWorker
2021-12-05 08:19:42 +01:00
Jacques Le Roux 2d9bbfaeb8 Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
Fixes a possible null dereferencing in OrderServices.java

I put it apart because it's a simple change but the indentation
makes things complicated with some formatting changes
2021-11-29 14:16:27 +01:00
Jacques Le Roux da4b0431ff Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
Fixes possible null dereferencings

Follows a comment saying
// first check and see if we are already there; if so, just return success
2021-11-29 10:09:21 +01:00
Jacques Le Roux 3d751a0d4d Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
Removes generateRandomFinNumber and checkIsNumberInDatabase methods

There is no OOTB usage and they were put in almost 15 years ago with
http://svn.apache.org/viewvc?view=revision&revision=522738
2021-11-29 09:29:01 +01:00
Jacques Le Roux 9da8f5b55a Fixed: Quick Refund Entire Order no longer works (OFBIZ-12392)
This only fixes a 1st issue found while debugging.

Adds the order package to be able to debug Groovy in Eclipse. We need to add
packages to all Groovy scripts to be able to easily debug Groovy in Eclipse.

Adds .first() in updateReturnStatusFromReceipt at OrderReturnServices.groovy[506]
That is the fix

A lot of non functional formatting
2021-11-20 19:17:06 +01:00
Jacques Le Roux 5b4de857dc Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
There is no usage of generateRandomFinNumber OOTB
I though put: // FIXME number is null!
because it passes null to UtilValidate.getLuhnCheckDigit if isId is true
2021-11-19 17:57:17 +01:00
Jacques Le Roux d403567fd8 Improved: no functional changes, simply formatting 2021-11-18 17:14:31 +01:00
Jacques Le Roux 6b3c71ea19 Fixed: Error: The field name (or key) [userLogin] is not valid for entity [ReturnItem] (OFBIZ-12389)
Steps:
    Locate any completed order.
    From the order's view screen  "Action" section click Create Return.
    Select some items to return then accept the return.
    From the "Return Item" menu click Receive Return button.
    You will land on the facility application "Receive Return" screen.

Try receiving items, which will generate an error

Thanks: Nameet Jain
2021-11-18 08:54:14 +01:00
Pierre Smits 0113e5a53c Improved: Dutch labels for Order UI (OFBIZ-12377) (#338)
added:
Dutch tranlations for various labels in OrderUiLabels.xml
2021-11-12 09:01:58 +01:00
Jacques Le Roux 5e28ef38f5 Improved: Removes an old, now not real FIXME in AppendOrderItem.ftl 2021-11-09 10:04:04 +01:00
Jacques Le Roux 6727f469dc Reverted: work related to PartyRole handling initiated with (OFBIZ-5980)
Currently OFBiz is broken and hard to fix. You can't even create an order !

Revert "Improved: visibility of expire button (OFBIZ-12362) (#331)"
This reverts commit e3b125ef4c.

Revert "(OFBIZ-5980) Improvement: PartyRole record(s) expiration/revocation (#330)"
This reverts commit a8ab2be55a.

Revert "Improved: seed data (OFBIZ-12355) (#328)"
This reverts commit b204b867b4.

Revert "Reverted: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)"
This reverts commit 85e066deb3.

Revert "Reverted: damn I did not revert the right push :/"
This reverts commit b867b2a89f.

Revert "(OFBIZ-5980) Improvement: PartyRole record(s) expiration/revocation (#325)"
This reverts commit 8ed2252df8.

Revert "Reverted: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)"
This reverts commit 5b5e03f71b.

Revert "Improved: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)"
This reverts commit 46f7ee91d3.

Revert "Improved: seed data (OFBIZ-12353) (#324)"
This reverts commit fade92bb57.
2021-11-08 20:41:51 +01:00
Pierre Smits a8ab2be55a (OFBIZ-5980) Improvement: PartyRole record(s) expiration/revocation (#330)
added/changed/updated:
- added field definition for from and through date to the entity
- added service for expiration
- request-map for expiration
- appropriate forms to work with  added entity fields
- added groovy code to check existing when adding PartyRole record and call expiration service if needed
- adding fromDate value to seed, test and demo data
2021-11-02 11:36:52 +01:00
Jacques Le Roux 85e066deb3 Reverted: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)
Reverts commit 46f7ee91d3

Reverted on Pierre Smits kindly asking for authoring by pushing a PR, not only a
thanks while committing his patch after testing it locally
2021-11-02 10:30:51 +01:00
Jacques Le Roux b867b2a89f Reverted: damn I did not revert the right push :/
Instead of reverting 46f7ee91d3 I reverted
c431f0657a ie
2021-11-02 10:30:50 +01:00
Jacques Le Roux 5b5e03f71b Reverted: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)
Reverts commit 46f7ee91d3

Reverted on Pierre Smits kindly asking for authoring by pushing a PR, not only a
thanks while committing his patch after testing it locally
2021-11-02 10:23:10 +01:00
Pierre Smits c431f0657a Fixed: Quote item quantity field not visable (OFBIZ 12357) (#326)
removed: display attribute
2021-11-01 19:54:34 +01:00
Jacques Le Roux 46f7ee91d3 Improved: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)
Currently it only possible to delete a role. That can lead to potential error
messages, when a particular role is associated with records where the roleTypeId
is used as a foreign key in the entity-model/database and the user tries to
delete that role from the list.

In order to avoid such, it is better to revoke the PartyRole record by setting
an expiration date (end date) on the record.

Thanks: Pierre Smits
2021-11-01 12:46:29 +01:00
Mohammad KathawalaandMohammad 957d9341c9 Fixed order type filter in Purchase by Payment Method report. (#81)
Co-authored-by: Mohammad <mohammad@MacBook-Air.local>
2021-10-28 17:45:28 +02:00
Jacques Le Roux 87f9981f71 Improved: Handle remaining checkstyle errors (OFBIZ-12169)
Fixes wrong methods names in EntityFunction class
2021-10-17 10:49:51 +02:00
Jacques Le Roux a17b77ea28 Fixed: Create return is not working on demo trunk (OFBIZ-12282)
Weirdly (I guess I did not save) this syntax did not work 1st time I tried it
2021-09-30 15:25:09 +02:00
Jacques Le Roux f81f7f4d97 Fixed: Create return is not working on demo trunk (OFBIZ-12282)
Some parties have no PartyAccountingPreferences

Thanks: Yashwant Dhakad for report (see "Steps to reproduce" in Jira)
2021-09-30 13:25:51 +02:00
Nicolas Malin 0393a92526 Improved: Optimise service autoDeleteAutoSaveShoppingList (OFBIZ-10592)
Jira title: OutOfMemory and stucked JobPoller issue

On ecommerce website with strong frequentation and shopping cart saving, when the service autoDeleteAutoSaveShoppingList run, it failed due to the data quantity to delete and sature the server ressources.

The solution to escape this case is :
 * filter shopping list to delete directly by the data search
 * split quantity by transaction

Thanks: Giulio Speri
2021-09-30 10:50:35 +02:00
Nicolas Malin c6bd86d53e Fixed: Explode items not handling tax and adjustments properly (OFBIZ-11928)
If you set explodeItems to true on your productStore, tax and adjustment wasn't correctly calculate when you ordered some finish goods.

Thanks: Suraj Khurana and Ankush Upadhyay
2021-09-27 18:33:09 +02:00
Nicolas Malin cf70c72db2 Fixed: Incorrect price for selected variant shown (OFBIZ-12236)
When the webshop (ecommerce component) has been set up for retail (B2C), with

    the tax setting 'Show prices with VAT tax included' set to 'Y' in store 9000
    the appropriat Tax Auth Geo and Tax Auth set in store 9000
    the flag 'Include Tax In Price' set to 'Y' for the Tax Auth
    the price for a virtual product is shown including VAT.

However, for a selected variant the price shown is without VAT

Thanks: Pierre Smits to raise the issue and Priya Sharma for solved it
2021-09-27 16:36:40 +02:00
Jacques Le Roux 6c4238418e Improved: Adds the HTML <input> accept Attribute in form widgets and Freemaker templates (OFBIZ-12049)
Adds HTML accept where it fits, let the more general cases as they are
2021-09-21 17:53:01 +02:00
Wiebke Pätzold de1e9e4bb4 Improved: Convert ShoppingListServices.xml mini lang to groovy (OFBIZ-11602) 2021-09-11 12:46:15 +02:00
Nicolas Malin 3b593f8eda Improved: Propage product features from a marketing package (OFBIZ-12077)
When you create a product as a marketing package, you attempt when you ship this product to have the same constraint as you ship each product that compose it separately.

Marketing Package |  Composed product |  Product Feature
  GIFT_PACKAGE    |                   |
     1            |   GIZMO_HEAVY     |  (WEIGHT) HEAVY_SIZE
     2            |   GIZMO_TINY      |

On this example if I ordered a GIFT_PACKAGE, during the order process, currently you never see that you ordered a product with a feature HEAVY_SIZE, feature that can have some consequence for select a shipping method.

So when we need to analyze the features linked to a product, if the product is a marketing package, we propage the search to all products that compose it
2021-09-01 09:54:43 +02:00
Nicolas Malin 70ea85c533 Fixed: move crud QuoteTerm services to services_quote.xml
No functional change.

Move oriented Quote service to dedicate services_quote.xml instead the generic services.xml file
2021-08-18 17:10:20 +02:00
Jacques Le Roux 2c421cedfb Fixed: Add http to https redirect rule for ofbiz.apache.org (OFBIZ-10590)
This prevented to run the stable demo, hence the next, weirdly the trunk had
not this problem. Anyway better safe than sorry... Maybe related to Gradle
version or rather libs loaded?

The reason why the stable (and old) demos were not running is because the
EntitySaxReaderTests did not pass
2021-07-20 07:47:32 +02:00
Jacques Le Roux ec1c7f5314 Fixed: Macro renderLink default height and width not retrieved on menus (OFBIZ-12279)
Oops, this should not have been committed, only for test, removing
2021-07-13 10:08:27 +02:00
Jacques Le Roux 414e4d83ed Fixed: Macro renderLink default height and width not retrieved on menus (OFBIZ-12279)
Menus link defaut parameters for height and width are not considered when the
link is generated. When parameter with empty value is passed to the macro, macro
default values are not retrieved.

To reproduce
you can create a "layered-modal" type link in a menu and click on the link
(without height nor width):
this will generate the link with parameters "data-dialog-height" and
"data-dialog-width" empty

Patch provided
When applied, the MacroMenuRenderer.renderLink  will not send empty values to
the macro so that default value will be retrieved (what is actually done on
MacroFormRenderer.renderLookup)

Thanks: Leila
2021-07-12 12:03:59 +02:00
Jacques Le Roux 497c950fd1 Improved: Convert ShoppingListTests.xml to Groovy (OFBIZ-11861)
This can be tested using this command:
./gradlew "ofbiz --test component=order --test suitename=shoppinglisttests"

Thanks: Praveen Sharma
2021-07-10 13:59:49 +02:00
Jacques Le Roux 29705efa65 Improved: Add global web.xml to simplify session timeout configuration (OFBIZ-12255)
Currently, session timeout is configured in apps separately, but session is
shared globally, so the smallest one take effects, and it will not take effect
separately for different apps.

Then it is both inconvenient and confusing to increase session timeout value,
as all values in those files need to be updated.

A global web.xml is needed, to simplify session timeout configuration.

Thanks: Xin Wang
2021-06-22 15:51:32 +02:00
holivier a81d0111c1 Documented: Order online Documentation and help (OFBIZ-12224)
just rename two adoc files, change from _ to -
2021-05-18 17:14:10 +02:00
holivier d1d30be658 Documented: Order online Documentation and help (OFBIZ-12224)
Add Return documentation, diagrams content is coming from wiki page
https://cwiki.apache.org/confluence/display/OFBIZ/Sales+Order+Management+Process+Overview many thanks to Shivangi Tanwar

some complement and help for UI from Order Management PDF from David Jones
2021-05-18 17:13:51 +02:00
holivier e5cab600b2 Documented: Order online Documentation and help (OFBIZ-12224)
In order - order documentation add

* payment term diagram and help about order-bill-setting,
* order update diagrams

most of content and diagram is coming from wiki page
https://cwiki.apache.org/confluence/display/OFBIZ/Sales+Order+Management+Process+Overview many thanks to Shivangi Tanwar

and some complement from Order Management PDF from David Jones
2021-05-18 17:13:28 +02:00
Pierre Smits edcaf9d705 Improvement: label OrderAdjustmentType (OFBIZ-12234) (#295)
-added the label
2021-05-17 13:25:02 +02:00
Nicolas Malin b8f67d2e70 Fixed: Quote and Invoice with null value on refresh base
(OFBIZ-12239)

After a fresh data base init with only seed, if you create your company without invoice or quote prefix, your sequence will be generate with 'null' string where the invoice or quote prefix should be have :

> null10001, null10002, ...
2021-05-14 17:54:19 +02:00
Aditya Sharma e97f45c381 Fixed: removed unused asmselect files and unused variable asm_asmListItemPercentOfForm (OFBIZ-10113)
asm select library is already replaced with select2 library, but the library files still exist in code base unused.
asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed

Thanks Jacques Le Roux for reporting it
2021-05-12 11:57:54 +05:30
holivier af335df8d1 Documented: Order online Documentation and help (OFBIZ-12224)
Correction on helpAnchor in OrderScreens to put value directly not as default-value.
2021-05-11 17:53:46 +02:00
holivier 59e50880e9 Documented: Order online Documentation and help (OFBIZ-12224)
forgot image about order-status-change in the previous commit
2021-05-04 16:14:27 +02:00
holivier 462b871f18 Documented: Order online Documentation and help (OFBIZ-12224)
Migration of OFBiz wiki 3.1-3.2-3.3 Order Entry page and Sales Order Management page

Create Order Diagrams
Order Status Diagrams
Add link from screen to help
2021-05-04 16:03:01 +02:00
Jacques Le Roux 45f50c910d Improved: Handle remaining checkstyle errors (OFBIZ-12169)
This handles the "'(' should be on the previous line?" rule of MethodParamPad

Actually not completely, because there are still some cases that can't be
handled by changing code, notably when a casting is necessary. I believe there
is an error in checkstyle code. I'll discuss that in dev ML before sending
checkstyle team a report.
2021-05-04 10:34:52 +02:00
Jacques Le Roux 3f2fbc6f72 Fixed: Error page shown when clicking on a product Id in the purchase order page (OFBIZ-12229)
There is no "basePrice" resulting from calculatePurchasePrice service calling but
a simple "price".

This was put in with d04f777 commit and OFBIZ-11955

Thanks: Woyce Batkins for report
2021-05-01 18:56:41 +02:00
Jacques Le Roux afacb3ab43 Fixed: Order processing issue for dropship only products (OFBIZ-12068)
When a dropship only (or dropship on low ATP) product with no qualified supplier
added to shopping cart and cart converted to sales order. System should return
errors and should not create sales order.

Thanks: Amit Gadaley
2021-04-27 12:07:49 +02:00
Joonas Hiltunen 9b4a4ad8d6 Implemented: Add new party while placing quotes (OFBIZ-7456) (#294)
Introduce the option to create a new party group while placing the quotes in the system.
2021-04-12 12:32:40 +02:00
Suraj Khurana 933c3e0bc6 Fixed: ChangeReason was not being set on OrderStatus when orderItem was marked cancelled with reason.
(OFBIZ-12210)
Thanks Lalit Dashora for reporting the issue and providing the patch.
2021-03-27 16:20:31 +05:30