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

Details fields typing and formatting #14

Merged
merged 16 commits into from
Dec 29, 2023

Conversation

vokimon
Copy link
Member

@vokimon vokimon commented Dec 28, 2023

Description

A review of Details fields: validations and formating

Changes

  • All enums are now validated as such with the set of fields provided by ERP (hardcoded, not queried to the erp)
    • BillingMode, RepresentationType, ContractStatus, ProductionTechnology, DeviationIncluded
  • Format functions are used for dates and numbers, localized and with thousand separator.
  • Units are not in the label anymore but together with the number (Potencia nominal, Retribucion representante)
  • Technologies are not displayed by a single or two letters but with a human description
  • Cost deviation 'not_included' was not properly displayed, now translated 'No incluido'
  • Contract status was hardcoded to always be 'Activo', now we get any status from ERP and translate it.
  • New format function for unit based quantities

Observations

imatge

Please, review

  • Translations of contract statuses are quite free
  • Are there any more production technologies out there?

How to check the new features

Deploy notes

@vokimon vokimon added the enhancement New feature or request label Dec 28, 2023
@vokimon vokimon self-assigned this Dec 28, 2023
@coveralls
Copy link

coveralls commented Dec 28, 2023

Pull Request Test Coverage Report for Build 7354802992

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 70.876%

Totals Coverage Status
Change from base Build 7345228674: 0.2%
Covered Lines: 479
Relevant Lines: 646

💛 - Coveralls

Copy link

sonarcloud bot commented Dec 29, 2023

Quality Gate Failed Quality Gate failed

Failed conditions

9.6% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@vokimon vokimon merged commit 0c2ccdd into main Dec 29, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants