Commit Graph
176 Commits
Author SHA1 Message Date
Pierre Smits 75dab17c87 Fixed: Price Rules: Price rules configurations are not syncing with eCommerce storefront (OFBIZ-12450) (#420)
* Fixed: Price Rules: Price rules configurations are not syncing with eCommerce storefront (OFBIZ-12450)

When adding a Price Rule, whether it be a Product Category, Product, Party, Party Classification, the system doesn't show a price difference.
The price rules work with the Database as they do get changed when saved. But their functionality doesn't work, it won't give a price increase or decrease or restriction.

Modified:
Various data files to enhance demonstration of price rule functionality

* Improved: Price Rule (OFBIZ-12450)

Modified: ProductDemoData.xml
- restructured some price rule data elements
- added additional price rule data elements
2021-12-18 09:19:25 +01:00
Pierre Smits ab0e8495b2 Fixed: VIEW permissions - error when accessing IncomeStatement (OFBIZ-12421) (#369)
When a user with VIEW permissions (e.g. auditor) access the IncomeStatement via following uri, an error is shown.
https://demo-trunk.ofbiz.apache.org/accounting/control/IncomeStatement?organizationPartyId=Company
{code:java}
java.lang.IllegalArgumentException: Error calling service with name getPartyAccountingPreferences: org.apache.ofbiz.service.ServiceAuthException: You haven't the permission for the service getPartyAccountingPreferences, reason : Access refused{code}

Modified AccountingDemoData.xml
added SecurityGroupPermission record
2021-11-29 19:50:27 +01:00
Jacques Le Roux 6aeff4e2aa Improved: Allow FrenchCustomer to sign in in ecommerce (OFBIZ-12241)
Thanks to Pierre Smits for the idea
2021-11-11 18:01:37 +01:00
Pierre Smits 41a38ec77e Improved: Euro Customer data (OFBIZ-12241) (#337)
User can't login at ecommerce

added:
userlogin: password and locale
partyrole: SHIP_TO_CUSTOMER
harmonisation of various date values
2021-11-11 17:58:08 +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
Pierre Smits b204b867b4 Improved: seed data (OFBIZ-12355) (#328)
Name of the PartyRelationshipType
2021-11-02 11:14:11 +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 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
Pierre Smits fade92bb57 Improved: seed data (OFBIZ-12353) (#324)
added: employer roletype
2021-10-30 11:32:02 +02:00
Nicolas Malin 192a3b7f5d Fixed: Setup instructions don't work (OFBIZ-12228)
The creation of a new company failed with constraint database error due to a missing functional General Ledger data.

To correct this, we separate the demo GlAccount demo data from Accounting demo data to allow it alone when we create the new company.

A second error can appear with the presence of a partyAcctgPreference if the validation isn't realized immediately, so we just add a control of the presence before call service createPartyAcctgPreference.

Thanks to Szabolcs Szekelyi for raise this issue and Jacques Leroux for its look
2021-09-06 17:16:03 +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 ba3d5c3c84 Documented: Changes latitude and longitude numeric fields for correct comparison
Also documented in wiki
2021-05-30 19:59:04 +02:00
Jacques Le Roux 1b84668aaf Improved: Have a status on agreement records (OFBIZ-10902)
Pre-amble

Currently, unlike many other entities, the Agreement entity does not have the
statusId field defined. Agreements, like the other entities, should have a
status (values that help determine the phase of the lifespan beyond
the start- and end date of the agreement), such as:

    Created
    In Progress
    Approved
    etc.

Flows
    Happy flows:
        Happy flow a) created ->b) submitted (for review) -> c) reviewed ->
                   d) approved -> e) in effect -> f) concluded (ended)
        Same, with more flow: a) created ->b) submitted (for review) ->
                   c) reviewed -> d) adjusted -> e) reviewed -> f) approved ->
                   g) in effect -> h) concluded (ended)
    Unhappy flows:
        Unhappy flow: a) created ->b) submitted (for review) -> c) reviewed ->
                      d) cancelled
        Same, with more flow: a) created ->b) submitted (for review) ->
                      c) reviewed -> d) adjusted -> e) reviewed -> f) cancelled
    Prematurely ended flows:
        Nipped in the bud flow a) created  -> b) cancelled
    flows from approval (in effect or in execution) till the end-of-times
        a) approved -> b) in effect -> c) concluded (ended)
        a) approved -> b) in effect -> c) terminated (prematurely ended)

Party Roles

Following Party Roles are involved:

    Agreement Creator - the party (person) that creates, edit, updates and
                        submits the agreement for review
    Agreement Reviewer - the party (person) that reviews the agreement on its
                         merits and impact for the company/organisation
    Agreement Approver - the party (person) that, based on law, regulations
                         and/or business policies approves (or rejects) the
                         agreement
    Agreement Manager - the party (person) that manages the execution of terms
                        of the agreement after the approval till the end-of-times
    Agreement Owner - the Party (party group with roleTypeId INTERNAL_ORGANIZATIO,
                       and  and registered in PartyAcctgPreference) that is
                       legally bound by the agreement

jleroux: this lacks demo data but can still be useful

Thanks: Pierre Smits
2021-03-15 19:34:50 +01:00
Jacques Le Roux 424d6e34d2 Fixed: fixes testUpdatePartyCreditCard found by Buildbot
Changes all expireDate to 02/2100.
I'll not know if OFBiz will still be alive then, hope you will ;)
2021-02-28 18:22:09 +01:00
Jacques Le Roux 54ab93ff2a Improved: Field 'govAgencyPartyId' shows all parties, not just Government Agencies (OFBIZ-10863)
The field govAgencyPartyId in the AddFixedAssetRegistration form shows all
parties through the lookup target-form-name="LookupPartyName function.

This should be limited to those parties that qualify with the constraint.

Thanks: Pierre Smits for report Priya Sharma for the fix
2021-02-21 14:22:00 +01:00
Michael Brohl 662a3f9d1c Improved: Remove Compdoc functionality from content manager
(OFBIZ-10476)
2021-02-13 17:33:05 +01:00
Jacques Le Roux 0044d288a6 Improved: Rename some connoted words like blacklist and whitelist (OFBIZ-12168)
Updates DATAMODEL_CHANGES.adoc
2021-02-12 12:41:52 +01:00
Jacques Le Roux 49a1438806 Improved: Rename some connoted words like blacklist and whitelist (OFBIZ-12168)
The fk-name for OrderDenylist entity needs to be different from the one of
OldOrderBlacklist

Thanks to Deepak Dixit for spotting it
2021-02-12 12:34:09 +01:00
Jacques Le Roux e7b3169d03 Improved: Rename some connoted words like blacklist and whitelist (OFBIZ-12168)
Renames respectively blacklist and whitelist to denylist and allowlist in
several places.

There are still a lot of master word which can be replaced by main, but not in
contexts where slave is also used. I'll discuss that on dev ML again...

Provides the migrateOldOrderBlacklistAndOldOrderBlacklistType service to migrate
records from OrderBlacklist and OrderBlacklistType entities to new OrderDenylist
and OrderDenylistType entities
2021-02-09 09:55:39 +01:00
Jacques Le Roux fdeedf23ee Improved: Adds the HTML <input> accept Attribute in form widgets and Freemaker templates (OFBIZ-12049)
As explained at
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
this is only an help for the users (ie not a security feature), but an
appreciable one easy to implement.

Here we start with website/WebSiteCMSContent.ftl
Also add some missing file extensions
2020-12-07 18:45:25 +01:00
Jacques Le Roux 4481f373ca Fixed: Secure the uploads (OFBIZ-12080)
Handles audio and video formats supported by Tika.

Adds few new audio and video formats in seed data.

AFAIK there are no ways to embed a webshell in an audio or video file. So I did
not sophisticate the validation, just rely on Tika.

I have also fixed bugs in SecuredUpload: in isValidSvgFile and
isValidImageIncludingSvgFile
2020-12-07 18:45:24 +01:00
Jacques Le Roux e73616caf1 Fixed: Secure the uploads (OFBIZ-12080)
2020/08/10 the OFBiz security team received a security report by Harshit Shukla
<harshit.shukz@gmail.com>, roughly it was (quoting part of it to simplify):

<<I have identified a Remote Code Execution (RCE) Vulnerability. The reason
behind this RCE is lack of file extension check at
catalog/control/UploadCategoryImage?productCategoryId=CATALOG1_BEST_SELL&pload_file_type=category>>

Using this post-auth RCE in OFBiz demos, Harshit was able to get some AWS
credentials by uploading a webshell (based on [0]).
By security, it was then decided by the Infra and OFBiz security teams to shut
down the demos.

After discussing the elements reported with Mark J Cox (VP of ASF security team)
we in common decided that no CVE was necessary.
2020-12-01 10:16:04 +01:00
Jacques Le Roux a8b252f7dd Reverted: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
This reverts commit 8736162c74.

We have test integration issues to fix

Due to TortoiseGIt, something weird happened, confused me to revert the revert :/
2020-10-03 13:41:41 +02:00
Jacques Le Roux 8736162c74 Reverted: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
This reverts commit 686f01c8cf.

We have test integration issues to fix
2020-10-03 13:30:15 +02:00
Jacques Le Roux 8ef3b54c22 Reverted: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
This reverts commit 686f01c8cf.

We have test integration issues to fix
2020-10-03 13:28:10 +02:00
Jacques Le Roux 686f01c8cf Improved: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
"Description" and "comment" fields are restricted to 255 char.

However after some research I found that all the supported databases support
longer then 255 char
I would expect users to want to write more then 255 char in a comment
(I know I personally can).

A discussion has been started on dev ML:
https://markmail.org/message/7utrgejc2c44i37u

Also adds a note in DATAMODEL_CHANGES.adoc

Thanks: ddev
2020-10-03 11:26:27 +02:00
Suraj Khurana d7408de03f Fixed: Incorrect data issue for InvoiceItemTypeMap and ReturnItemTypeMap.
(OFBIZ-11971)
As we have returnItemTypeId as RET_MISC_ADJ, same should be used in ReturnItemTypeMap and corresponding InvoiceItemTypeMap.
Thanks Amit Gadaley for reporting and providing the patch.
2020-09-26 18:16:31 +05:30
Jacques Le Roux 2d033df446 Improved: Update information in README.md files from removed pages in wiki 2020-08-29 17:37:18 +02:00
Priya SharmaandPriya Sharma 9e7df96921 Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#225)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-08-11 16:01:18 +02:00
holivier 192059e3da Improvement: Help link using asciidoc files via generated html
(OFBIZ-11693)

Change release for all asciidoc files, now there area 3 publish site,
one per release
* site/trunk
* site/next   currently for the 18.12
* site/stable currently for the 17.12
2020-06-04 17:56:54 +02:00
Pierre Smits 96c428d1cf Improved: instructions to upgrade due to datamodel changes (OFBIZ-11719) (#162) 2020-05-26 17:21:05 +05:30
Aditya Sharmaandholivier a82c3032ad Documented: datamodel markdown migration to asciidoc (OFBIZ-11574)
* Documented: datamodel markdown migration to asciidoc
(OFBIZ-11574)

- DATAMODEL_CHANGE migration to asciidoc and add a included in
developer_manual
- Readme migration to asciidoc

* Documented: theme/README.md change theme/README.adoc but with very
simple content
(OFBIZ-11574)

README.md  has been migrated to asciidoc as doc/themes.adoc previously
but remove README.md has been forgot.
In this commit README.md is removed and a new README.adoc is created
with only a brief component definition and link to the theme
documentation (and developer-manual which included theme.adoc)

* Documented: datamodel markdown migration to asciidoc
(OFBIZ-11574)

Added new field parentGlXbrlClassId taking reference from DATAMODEL_CHANGES.md which was added with OFBIZ-10613 and missing in adoc file

Co-authored-by: holivier <holivier@apache.org>
2020-05-25 19:46:04 +05:30
Suraj Khurana 44c374a644 Removed: Deprecated entity captureBillingAccountPayments since release 17.12. (#131)
(OFBIZ-11435)
Also, added deprecated since tag in some old entities and fields. This is done as per current policy to deprecate entities/services.
Thanks Pierre for reporting and Jacques for review.
2020-05-15 12:07:35 +05:30
Pierre SmitsandPawan Verma e1ab3b1e99 Improved: Enhance entity "GlXbrlClass" and use (OFBIZ-10613) (#41)
* Improved: Enhance entity "GlXbrlClass" and use

(OFBIZ-10613)

Adding field parent of the GlXbrlClassId
Application of field in appropriate forms

* Improved: Added new field parentGlXbrlClassId into DATAMODEL_CHANGES.md
(OFBIZ-10613)

Co-authored-by: Pawan Verma <pawan.verma@hotwaxsystems.com>
2020-05-08 16:34:40 +05:30
Pierre Smits a58d78a79e Improved: Accounting seed data (OFBIZ-11652) (#116)
* Improved: Accounting Component - improve seed data

(OFBIZ-11652)
Adding role type records relating to budget entities

* Improved: Accounting Component - improve seed data

(OFBIZ-11652)
Adding role type records relating to budget entities
2020-05-06 13:47:10 +02:00
Pierre Smits a7328da044 Improved: Accounting Component - improve seed data
(OFBIZ-11652)
Adding role type records relating to budget entities
2020-05-06 12:53:22 +02:00
Pierre Smits 10060c8eea Improved: Tax Authority Data for China
(OFBIZ-11628)

added party and tax authority data for China
2020-05-05 15:55:33 +02:00
Pierre Smits 451d78b1c7 Improved: move demo data from optional plugin to base application
(OFBIZ-6110)

Moved: marketing component related data in ecommerce plugin
2020-05-05 15:51:12 +02:00
Pierre Smits e675694d0b Improved: demo data regarding rental assets
(OFBIZ-10862)

Updating fixed asset 'RentalShip'
2020-05-05 13:43:19 +02:00
Pierre Smits df66cca3ff Improved: Marketing/SFA demo data (OFBIZ-11043) (#107)
* Improved: Marketing/SFA demo data

(OFBIZ-11043)

modified: UserLoginSecurityGroup for DemoLeadOwner
modified: UserLoginSecurityGroup for DemoLeadOwner1
modified: roleTypeId for DemoLeadOwnerGroup
modified: PartyRelationship between DemoLeadOwnerGroup and DemoLeadOwner
modified: PartyRelationship between DemoLeadOwnerGroup and DemoLeadOwner1

* Improved: Marketing/SFA demo data

(OFBIZ-11043)

removed: related comments
2020-05-04 21:45:07 +02:00
Suraj Khurana 13ea2ba726 Improved: View entity definition for MarketingCampaignAndVisit and made relational optional as false.
(OFBIZ-9909)

This will generate the report with positive visits only in both the cases (with/without date filter) while running marketing campaign reports.

Thanks Rubia for reporting and Ankit Joshi for providing the patch.
2020-04-26 20:10:08 +05:30
Pawan Verma 3b86754e14 Improved: Added new data model changes done under OFBIZ-5426 in DataModel changes file. (#55)
(OFBIZ-5426)

Thanks, Deepak Dixit for the report.
2020-03-30 23:21:43 +05:30
Pierre Smits dc68ac089f Fixed: DataModel - correct foreign key (#51)
(OFBIZ-11474)

Renaming foreign key to PROD_PRCDE_OPCD
2020-03-24 14:45:58 +05:30
Pawan Verma 91673f1b41 Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.(OFBIZ-5426) (#44)
* Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.
(OFBIZ-5426)

The problem is in the entity model. An email address should not be used in the primary key - mainly because an email address is case-insensitive. A better design would be to use the email address contact mechanism ID in the primary key.

Done Following:
1. Changed Entity Name from ProductPromoCodeEmail to ProductPromoCodeContMech
2. Related Changes for the entity name change
3. Migration service to migrate old data

Thanks, Leon for the report and Adrian Crum, Jacques Le Roux, Ingo Wolfmayr, Deepak Dixit, Pierre Smits and Gil Portenseigne for the discussion and review.

* Improved: Added new line in service definition file and lincence in MigrationServices file.
(OFBIZ-5426)

Thanks, Jacopo for the review.
2020-03-23 17:08:58 +05:30
Jacques Le Roux 67531d8bb2 Improved: "auth" should be true for all the request url used for Application
components

(OFBIZ-4956)

Currently there are some URLs present in application components with
auth="false". So anyone can hit these URLs and access these resources without
authorization.
I think all the URLs should be secure with auth="true"

jleroux: I have also fixed the dataResourceId="GZ-DIG"

Thanks: Amardeep Singh Jhajj for report and initial fix
2020-03-14 08:51:23 +01:00
Daniel Watford bbd570ad22 Improved: Add 2020 version of Incoterms
(OFBIZ-11437)

Alter the parent type and descriptions of existing Incoterm TermTypes to
indicate the version of Incoterms they relate to.

Added new Incoterm TermTypes and descriptions correspoding to the
Incoterms 2020 set.
2020-03-03 17:59:56 +00:00
Suraj Khurana d98d9ccbfa Fixed: Picklist is in Input status even after order is completed.
(OFBIZ-10883)

Thanks Rashi Dhagat for reporting, Shikha Jaiswal for the patch and Pawan Verma for review.
2020-02-26 19:22:49 +05:30
Jacopo Cappellato f9607c0298 Fixed: Extend the thru date of the demo financial period (and simplify
some related demo data for easier future maintenance) in order to fix
some tests that are failing in the new year.
2020-01-03 13:46:04 +01:00
Jacques Le Roux 4ee663356e Improved: no functional change
In r1868022 I added the POS_SALES_CHANNEL was suggested in OFBIZ-10965. Actually
that was wrong. Tt's already in PosTypeData.xml though with a wrong sequenceId

This fixes it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868023 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 14:23:17 +00:00