Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

T2 - Preise speichern #15

Open
Lisa7030 opened this issue Apr 16, 2022 · 2 comments
Open

T2 - Preise speichern #15

Lisa7030 opened this issue Apr 16, 2022 · 2 comments
Assignees
Labels

Comments

@Lisa7030
Copy link
Collaborator

Siehe E2 - Preise speichern.

@Lisa7030 Lisa7030 added the Task label Apr 16, 2022
@Lisa7030 Lisa7030 assigned Lisa7030 and krankkkk and unassigned krankkkk Apr 16, 2022
@Lisa7030
Copy link
Collaborator Author

Lisa7030 commented Apr 16, 2022

DiscountPrice

Typ Name Eigenschaften
long priceId FK - prices
OffsetDateTime startTime not null
OffsetDateTime endTime not null
boolean discount not null
int price not null (is in cent)

BasicPrice (= Ursprungspreis -> Ausgangslage)

Typ Name Eigenschaften
long priceId FK - prices
OffsetDateTime startTime not null
OffsetDateTime endTime not null
int price not null (is in cent)

@Lisa7030
Copy link
Collaborator Author

Functions:
getPriceByID ( ProductId ) -> return: int price
setPriceByID ( ProductId )
getPeriodStart ( PriceID ) -> return: Instant PeriodStart
setPeriodStart ( PriceID )
getPeriodEnd ( PriceID ) -> return: Instant PeriodEnd
setPeriodEnd ( PriceID )
getValueOfDiscount (Product ID) -> return: boolean
setValueOfDiscount (Product ID)
getPrice ( ProductID ) -> return: int price
setPrice (ProduktID, int newPrice )
calculateDiscountPrice ( Product ID, double discount ) -> return: int newPrice

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants