4
4
4sadly2020-11-03 10:30:42
Laravel
4sadly, 2020-11-03 10:30:42

How to calculate the amount of materials and where to store it?

How to count the number of materials and where to write it down with such a database structure?
StoreOrder
-> store_id
-> type = inbound/outbound
StoreOrderItem
-> store_order_id
-> material_id
-> price
-> quantity
Material
-> name
-> position

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Saenko, 2020-11-03
@Domovik93

-> quantity is the same as the number of materials in the order

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question