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

Add money (currency) type #40

Open
Tracked by #241 ...
sirex opened this issue Oct 28, 2019 · 0 comments · May be fixed by #324
Open
Tracked by #241 ...

Add money (currency) type #40

sirex opened this issue Oct 28, 2019 · 0 comments · May be fixed by #324
Assignees
Labels
enhancement New feature or request

Comments

@sirex
Copy link
Collaborator

sirex commented Oct 28, 2019

Add money data type. money data type would store amount and currency, original amount and currency should be stored, but also a normalized value should be stored for comparisons and other money related operations.

Example:

d r b m property type ref
Person
salary money EUR

When property.ref is not given, then multiple currencies can be stored. In this case, money should be stored not as a single number, but number and currency together. If property.ref is given, then only amount is stored.

  • _amount - returns money amount.
  • _currency - returns currency (tree letter code).
@sirex sirex changed the title Amounts Add currency type Mar 9, 2022
@sirex sirex self-assigned this Mar 9, 2022
@sirex sirex moved this to Todo in Portalo plėtra Mar 9, 2022
sirex added a commit to atviriduomenys/manifest that referenced this issue Apr 1, 2022
Kol kas pašalinu `currency` tipą, nes jis kol kas nepalaikomas:

- [ ] atviriduomenys/spinta#40

Todėl, kad nestabdyti šio pull request, laikinai atstatau į `number` tipą. Vėliau, kai atviriduomenys/spinta#40 bus įgyvendintas, grąžinsiu atgal `currency` tipą.
@sirex sirex removed the status in Portalo plėtra May 6, 2022
@sirex sirex removed their assignment Jun 13, 2022
@sirex sirex changed the title Add currency type Add money (currency) type Jun 14, 2022
@sirex sirex added this to Palaikymas Oct 19, 2022
@Gediminas-msc Gediminas-msc moved this to In Progress in Palaikymas Oct 24, 2022
@Gediminas-msc Gediminas-msc removed the status in Palaikymas Oct 24, 2022
@Gediminas-msc Gediminas-msc moved this to In Progress in Palaikymas Oct 24, 2022
@Gediminas-msc Gediminas-msc self-assigned this Nov 9, 2022
@Gediminas-msc Gediminas-msc linked a pull request Nov 13, 2022 that will close this issue
@Gediminas-msc Gediminas-msc moved this from In Progress to Review in Palaikymas Nov 14, 2022
@sirex sirex removed the status in Palaikymas Nov 14, 2022
@sirex sirex moved this to In Progress in Palaikymas Nov 14, 2022
@Gediminas-msc Gediminas-msc moved this from In Progress to Review in Palaikymas Nov 15, 2022
@sirex sirex removed the status in Palaikymas Nov 15, 2022
@Gediminas-msc Gediminas-msc moved this to In Progress in Palaikymas Nov 16, 2022
@sirex sirex removed this from Portalo plėtra Nov 21, 2022
@Gediminas-msc Gediminas-msc moved this from In Progress to Review in Palaikymas Nov 22, 2022
@sirex sirex removed the status in Palaikymas Nov 28, 2022
@Gediminas-msc Gediminas-msc moved this to In Progress in Palaikymas Nov 30, 2022
@Gediminas-msc Gediminas-msc removed their assignment Dec 28, 2022
@sirex sirex removed the status in Palaikymas Mar 6, 2023
@IngaIVPK IngaIVPK removed this from Palaikymas Sep 27, 2024
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 a pull request may close this issue.

4 participants