Commit Graph
507 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
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 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
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 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
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
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 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
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
Jacques Le Roux 7fb64ba5b5 Fixed: Wrong heading on creating quote under order component (OFBIZ-11221)
Steps to re-generate :

1. Login with the username and password.
2. Go to order component order.
3. Click on Quotes
4. Click on new quotes

Error: Edit quote is shown on the place of New quote.
Actual: New quote should be shown on the place of edit quote on UI.

Thanks: jai kumar raghuwanshi for report, Pradyum Dharwa  for 1st patch,
Ratnesh Upadhyay for better suggestion and Ankit Joshi for the patch
2021-02-20 13:28:06 +01:00
Michael Brohl 662a3f9d1c Improved: Remove Compdoc functionality from content manager
(OFBIZ-10476)
2021-02-13 17:33:05 +01:00
Deepak Dixit 3273793842 Fixed: Incorrect mapping for Lookup Purchase Order (#272)
(OFBIZ-12143)

This issue was due to common form is being used for LookupPurchaseOrderHeaderAndShipInfo and LookupOrderHeaderAndShipInfo screen. Passed the paginateTargetUrl from screen to make sure pagination works properly
Thanks Rajesh Kumar for reporting the issue
2021-02-12 16:05:27 +05:30
Suraj Khurana cbec4d7b7c Fixed: ViewQuoteProfit shows fields in wrong order.
(OFBIZ-11680)
Thanks Pierre for reporting and Lalit Dashora for providing the patch.
2021-02-12 10:59:11 +05:30
Jacques Le Roux 49dbd2afcb Improved: Create 'New Request' button should be removed from create new request screen in Order the component. (OFBIZ-12121)
Thanks: Shubham Choudhary
2021-01-24 18:14:30 +01:00
Nicolas Malin 7165768251 Implemented: Add a framework method to get main webapp menu with the webapp name
(OFBIZ-10601)

To improve theme management and provide better tools for new themes, we implement a method to obtain the main menu of a webapp.
Instead of just managing a menu, we extend the functionality by offering a method to expose a summary of the webapp, to simplify the navigation.

For this we add a new attribute on webapp definition app-shortcut-screen :

    <webapp name="mywebapp"
            ...
            app-shortcut-screen="component://mycomponent/widget/CommonScreens.xml#ShortcutApp"
            ...
    />

The idea is to define a new purpose screen *Shortcut* that contains what defines a webapp when an action or navigation has been requested. With this screen you can load a menu, a search, a complex description and use all screen powerfulness to resolve what displaying and support by theming

    <screen name="ShortcutApp">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
            </actions>
            <widgets>
                <decorator-screen name="ShortcutDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <include-menu name="MyShortcutAppBar" location="component://mycomponent/widget/CommonMenus.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

Each component are self-sufficient to define what shortcuts to display without framework change or knowledge about other component.
Each theme can implement and customize the display rendering at will.

To illustrate an example of implementation we set sub menu for each webapp defined on applications and exploit it on bluelight theme.

Thanks for Dennis Balkir, Jacques Leroux, Leila Mekika and Julien Nicolas for their involvement
2021-01-15 08:56:23 +01:00
James Yong 6f3c7cb4c2 Improved: Apply CSS Grid to Find Orders (OFBIZ-12116)
Apply CSS Grid Layout on the form.
Keep related fields together
2021-01-02 12:46:44 +08:00
Jacques Le Roux ec2b84341e Reverted: "Improved: Hyperlink target-type attribute is deprecated and should be replaced by url-mode (OFBIZ-12091)"
This reverts commit 17eb2e4cf7.

It does not work when using <<target="javascript:........>>
I could change those cases but it's easier and safer to simply revert back to
target-type!

Thanks: James for report
2020-12-18 11:08:32 +01:00
Jacques Le Roux 17eb2e4cf7 Improved: Hyperlink target-type attribute is deprecated and should be replaced by url-mode (OFBIZ-12091)
Same for sub-hyperlink
2020-12-11 16:52:04 +01:00
Jacques Le Roux 9a957eb7a7 Fixed: display/selection of unit of measure is broken
(OFBIZ-11955)

This fixes in in order component

Thanks: Alex
2020-08-30 14:13:10 +02:00
Akash Jain b67eb606a6 Improved: Create new quote button should be removed from new quote screen (OFBIZ-11405)
Thanks, Ratnesh for reporting the issue.
2020-08-22 21:30:38 +05:30
Akash Jain 68d210a7d0 Improved: Purchase Order Email Support (OFBIZ-11864) 2020-08-03 17:29:13 +05:30
Akash Jain 001ce6a6c4 Improved: Status ID checkbox for Return, Requirement and Quote forms (OFBIZ-11935) 2020-08-03 16:15:45 +05:30
Jacques Le Roux 7d6e5ddbb5 Improved: Hard coded label in ProductUomDropDownOnly (OFBIZ-11891)
The select label is not receiving translations.

There are more related issues, but this is independent.

Thanks: Alex Bodnaru
2020-07-16 14:34:22 +02:00
holivier 56f164d3a8 Documented: migrate help link to asciidoc user manual for Order
(OFBIZ-11580)

All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files

In the global Help Docbook index tree, remove all points about
Order and add a short page with a link to the new help

Remove docbook help files for Order
2020-07-02 12:07:05 +02:00
Jacques Le Roux 4f841e9897 Fixed: IDOR vulnerability in the order processing feature in ecommerce component (OFBIZ-11836)
https://demo-stable.ofbiz.apache.org/ecommerce/control/order.pdf?orderId=WSCO10000

In the above URL, the parameter 'orderId' has the value 'WSCO10000' and after
incrementing the value to 'WSCO10001' or 'WSCO10002' will download the receipt
of other orders which have been placed by other users.

All the available order receipts can be downloaded by running an automated tool
(Burp Intruder) on the parameter 'orderId=WSCOXXXXX'

I have successfully tested this by using 2 different accounts: DemoCustomer and
DemoCustomer2

An attacker can download order receipts of other users and this could lead to
information disclosure.

The only real solution to this issue is to implement access control. The user
needs to be authorized for the requested information before the server provides
it.

Thanks: Harshit Shukla [mailto:harshit.shukz@gmail.com]reported this IDOR
vulnerability to the OFBiz security team, and we thank him for that.
2020-06-26 09:28:49 +02:00
James Yong ea537323fa Reverted: Use Compound Widget on rest of the project (OFBIZ-11821) 2020-06-20 20:16:11 +08:00
James Yong 49601e1213 Reverted: Use Compound Widget on rest of the project (OFBIZ-11821)
Removed FindRequestCompound.xml
2020-06-20 20:12:35 +08:00
James Yong 2f557b7fba Reverted: Use Compound Widget on rest of the project (OFBIZ-11821)
Verbose and may better suit in custom implementation.
2020-06-20 20:06:42 +08:00
James Yong da3473b183 Improved: Use Compound Widget on rest of the project (OFBIZ-11821)
Remove unnecessary namespace
2020-06-17 22:42:01 +08:00
James Yong 4bdabd825e Improved: Use Compound Widget on rest of the project (OFBIZ-11821)
Refactor for Find Request
2020-06-14 13:55:11 +08:00
James Yong 28809d71d8 Improved: Use Compound Widget on rest of the project (OFBIZ-11821)
Refactor for Find Request
2020-06-14 11:40:16 +08:00
James Yong 5e63e81d08 Improved: Remove unused location ${parameters.quoteDecoratorLocation} (OFBIZ-11802)
Thanks: Jacques for review
2020-06-06 18:34:08 +08:00
Pierre Smits 5fac98022e Improved: quote menu
(OFBIZ-11715)

updated: QuoteTabBar - simplified labels
updated: moved 'Edit quote' menu item to QuoteSubTabBar
updated: reordering of menu-items of QuoteTabBar
updated: various UiLabels used by menu-items in QuoteTabBar
2020-05-24 14:34:03 +02:00
James Yong b17fd2419a Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Order application.
2020-05-15 19:24:20 +08:00
James Yong 60c78d24be Improved: <script-template> widget tag (OFBIZ-11686)
Removed script-template tag.
Use multi-block=true on html-template tag instead.
2020-05-15 11:16:15 +08:00
James Yong 803f7fa060 Improved: <script-template> widget tag (OFBIZ-11686)
The new tag allows us to render a freemarker template containing javascript,
as external script in html instead of inline script.
This helps to reduce CSP errors.
2020-05-13 20:19:05 +08:00
Suraj Khurana 3615f5b842 Improved: Converted all CustRequestContent related CRUD services from simple to entity-auto (#94)
* Improved: Converted all CustRequestContent related CRUD services from simple to entity-auto
(OFBIZ-11627)

* Improved: Added seca rule for checkStatusCustRequest while invoke and updateCustRequestLastModifiedDate while commit for services related to CustRequestContent.
2020-05-02 17:00:48 +05:30
akash de70b3c9ca Improvement: View Request button should not display when there is no customer request data on Quote Items screen
(OFBIZ-10629)

Thanks, Kumar Rahul and Ritesh Kumar for your contribution.
2020-02-22 13:00:34 +05:30
Deepak Dixit c3d53e6b8c Fixed: Fix typo 2020-01-06 00:53:32 +05:30
Jacopo Cappellato cbad4d3e22 Fixed: Add missing view permissions checks to various screens. 2019-11-15 19:23:38 +01:00
Jacques Le Roux c98def05a3 Fixed: EditExample always update status, because current Status not shown
(OFBIZ-11230)

In the EditExample Form, the drop-down is populates with the Valid change status 
only. So current status is not in the list and the status print in the drop-down 
is the next authorized. I want to modify exampleName or exampleType, I go to 
editExample and change what I want and validate. The problem is status is also 
changed!

There are 12 other same or similar cases. For the first of them (in FinAccount) 
there is the same bug: when I change FinAccount Name, status change too. If I 
add current="first-in-list" in the tag drop-down it works 

jleroux: Quote is a peculiar case due to OFBIZ-7337 which was a wrong fix
 
Thanks: Oliver for the analysis and the fix 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868545 13f79535-47bb-0310-9956-ffa450edef68
2019-10-17 12:19:33 +00:00
Jacques Le Roux 8147e98a89 Improved: Correct location of New Requirement button on Requirements view
(OFBIZ-7333)

Steps to regenerate the issue:
1. Go to order manager.
2. Go to sub-menu "Requirements"
3. Find Requirements view is having New Requirement button placed at wrong 
position.

Moves the EditRequirement button above RequirementsTabBar

Thanks: Pranay for patch issue analysis

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867694 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 07:35:18 +00:00
Jacques Le Roux 531793820e Improved: Add a discussion feature in order detail view for following
communication about the order (mail, phone etc.)
(OFBIZ-11210)

This is in order detail view for following communication about the order 
(mail, phone etc.) to keep an eye about all com' event linked to the order.

Thanks: Carl Demus

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867581 13f79535-47bb-0310-9956-ffa450edef68
2019-09-26 15:11:52 +00:00
Pawan Verma bd255b14b8 Reverted: Allow-multiple dropdown improvement of UI on order report screen
(OFBIZ-11166)

Reverted rev 1865818.

Thanks Deepak Dixit for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865897 13f79535-47bb-0310-9956-ffa450edef68
2019-08-26 05:30:17 +00:00
Pawan Verma b6ee2e1698 Improved: UI improvement for drop-down fields on order report screen
(OFBIZ-11166)
Thanks: Ashish Kumar Pandey for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865818 13f79535-47bb-0310-9956-ffa450edef68
2019-08-24 07:58:35 +00:00
Nicolas Malin 4a511be1cc Implemented: Homogenize displaying number with multiple format
(OFBIZ-7532)

To display a number we had different possibilities :
 * on ftl use the template <@ofbizAmount and <@ofbizCurrency
 * by java call a function UtilFormatOut.formatAmount, UtilFormatOut.formatPrice, UtilFormatOut.formatQuantity, etc..
 * by form widget, use <display type=accounting-number for accounting but nothing for other

To simplify and homogenize all, I implemented a number type purpose :
   * default: display a number by default, use when no purpose is present
   * quantity: display a number as a quantity
   * amount: display a number as an amount (like price without currency)
   * spelled: litteral displaying for a number (use on <@ofbizAmount ftl only before)
   * percentage: display a number as a percentage
   * accounting: diplay a number for accounting specific

Each purpose can be associate to a number for displaying it :
   * on ftl <@ofbizNumber number=value format=purpose/>
   * on java UtilFormatOut.formatNumber(value, purpose, delegator, locale)
   * on form widget <display type=number format=purpose/>

The format use by a purpose is define on framework/common/config/number.properties with the template
    .displaying.format = ##0.00

With this, you can surchage a configuration, create your own purpose or surchage only one through entity SystemProperty.

Concerning the backware compatibility: 
 * For the ftl the template <@ofbizAmount is now a link to '<@ofbizNumber format=amount'
 * For java all previous function call UtilFormatOut.formatNumber with the matching purpose
 * For form xml accounting-number is managed as an exection

Last point, display a currency is different that a number, so I didn't refactoring some code for this case (only move properties from general to number for centralize de configuration on the same file)

Thanks Charles Steltzlen to start the refactoring

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1864832 13f79535-47bb-0310-9956-ffa450edef68
2019-08-09 20:37:11 +00:00