RECEIPTS

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