HubCloud uses Registers to save recorder data. Registers are tables with specified columns.
We need to implement the simplest accounting in a trading company. To solve this case, it is necessary to record information on received/sold products and information on the status of mutual settlements with suppliers/buyers.
For that we need to create a Products table with the following columns:
Period – to record the date and time of receipt/write-off of goods.
Company – Our company in which the operation occurred.
Product – products that received or sold.
Store – Place of storage of products.
Quantity – The number of products received or sold.
Amount – The value of the products that received or sold.
Currency – The currency of the transaction.
Comment – Free text information.
Debit or Credit transactions are implemented as records with (+) or ( -)