Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#409 Aded UOM conversion check when adding a new price to a product. #6008

Merged
merged 16 commits into from Jan 10, 2020

Conversation

dragospodariu96
Copy link
Contributor

{
return;
}
throw new AdempiereException("UOM Conversion to the selected UOM doesn't exist").markAsUserValidationError();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create an AD_Message record with translations (we'll need en_US, de_DE and de_CH) and use IMsg (Services.get(IMsg.class)) to get a translatable string instance.
Passing hardcoded strings generally doesn't make sense for user-errors

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fully agree

Copy link
Member

@metas-ts metas-ts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls check my comment. should be a quick fix

@metas-ts
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- de.metas.business/src/main/java/de/metas/pricing/service/ProductPrices.java  2
         

See the complete overview on Codacy

@dragospodariu96 dragospodariu96 merged commit 988416f into master Jan 10, 2020
@dragospodariu96 dragospodariu96 deleted the gh409 branch January 10, 2020 16:22
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.

None yet

3 participants