Skip to content

Improved: create invoice service (OFBIZ-12387)#345

Closed
PierreSmits wants to merge 2 commits intoapache:trunkfrom
PierreSmits:OFBIZ-12387-createInvoice-service
Closed

Improved: create invoice service (OFBIZ-12387)#345
PierreSmits wants to merge 2 commits intoapache:trunkfrom
PierreSmits:OFBIZ-12387-createInvoice-service

Conversation

@PierreSmits
Copy link
Member

added:
InvoiceServices.groovy: def createInvoice

  • the added service also checks and ensures that the user has the appropriate PartyRole
  • the added service also creates the InvoiceRole record for the user
    AccountingSeedData.xml
  • RoleType definitions for InvoiceRole

modified:
services_invoice.xml, createInvoice: engine attribute and location attribute

removed:
InvoiceServices.xml: simple-method createInvoice

added:
InvoiceServices.groovy: def createInvoice
- the added service also checks and ensures that the user has the appropriate PartyRole
- the added service also creates the InvoiceRole record for the user
AccountingSeedData.xml
- RoleType definitions for InvoiceRole

modified:
services_invoice.xml, createInvoice: engine attribute and location attribute

removed:
InvoiceServices.xml: simple-method createInvoice

added
* trunk:
  Improved: Try to reduce the SARIF file used by CodeQL for Java classes (OFBIZ-12361)
@PierreSmits PierreSmits changed the title Ofbiz 12387 create invoice service Improved: create invoice service (Ofbiz-12387) Nov 16, 2021
@PierreSmits PierreSmits changed the title Improved: create invoice service (Ofbiz-12387) Improved: create invoice service (OFBIZ-12387) Nov 16, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mbrohl
Copy link
Contributor

mbrohl commented Nov 17, 2021

The changes are not only a conversion to Groovy but also introduce changes to the service business logic.
The conversion should be a separate PR, the changes should be in another PR with some explanation why they are necessary.

@PierreSmits PierreSmits deleted the OFBIZ-12387-createInvoice-service branch November 17, 2021 13:42
@JacquesLeRoux
Copy link
Contributor

I agree with Michael, explanations are less about what you did, but more about why you did them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants