Rojak
Decrement Product quantity after created Order with Repeater
I have 3 model: Barang (Product), TransaksiKeluar (Order), and TransaksiKeluarItem (OrderItem)
Inside Order resource there is repeater for OrderItem. My goal is when an order created, product quantity will decrease based on product and qty in repeater. Also if possible retain previous record so if an order got deleted or edited it will back to previous record. Here my models and relationship
Barang Model (Product)
TransaksiKeluar Model (Order)
TransaksiKeluarItem (OrderItem)
2 replies