- You can store a price in a floating point variable.
- All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
- All currencies are subdivided in decimal units (like dinar/fils)
- All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
- All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
- Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
- For any currency you can have a price of 1. (ZWL)
- Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### mailers/welcome.rb | |
module MyNamespace::Mailers | |
class Welcome | |
include Hanami::Mailer | |
templates | |
from '[email protected]' | |
to '[email protected]' | |
subject 'Welcome to Bookshelf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### mailers/welcome.rb | |
class Mailers::Welcome | |
include Hanami::Mailer | |
templates | |
from '[email protected]' | |
to '[email protected]' | |
subject 'Welcome to Bookshelf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- estimation storage table | |
CREATE TABLE ISSUE_ESTIMATION( | |
N_ESTIMATION_ID NUMBER, | |
VC_PREDICTOR VARCHAR2(64) NOT NULL, | |
VC_ISSUE VARCHAR2(64) NOT NULL, | |
N_ESTIMATION NUMBER NOT NULL, | |
D_ESTIMATION DATE NOT NULL); | |
ALTER TABLE ISSUE_ESTIMATION | |
add constraint PK_ISSUE_ESTIMATION primary key (N_ESTIMATION_ID); |