RECEIPTS
稼働中
receipts ; ReceiptId ⇸ Receipt
cycles ; Date ⇸ Cycle
receipts : (入荷ID : ReceiptId) ⇸ Receipt
なし
入荷済み
qty ; Quantity
記録済み
qty ; Quantity
channel LOG : Quantity
channel RECEIVE : Quantity
RECEIVE?数量 ; ; @eq(qty', 数量)
LOG?数量 ; ; @eq(qty', qty)
SHELVE
cycles : (基準日 : Date) ⇸ Cycle
未開始
集計中
total ; Nat
確定済み
total ; Nat
channel LOG : Quantity
LOG?数量 ; ; @eq(total', 数量)
LOG?数量 ; ; $total' == $total + $数量
tau ; ; @eq(total', total)
REPORT
sync LOG : receipts(入荷ID), cycles(基準日)
constrain LOG?入荷ID?基準日?数量 ; $基準日 == RECEIVED_ON[$入荷ID]
constrain RECEIVE?入荷ID?数量 ; $数量 % BOX == 0