diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-17 13:30:07 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-17 13:30:07 +0700 |
| commit | b901f3eff1477d7a80cee3d56499c29213725de7 (patch) | |
| tree | 8a3448ace74bb2c34f96048bb74e870346ace7db | |
| parent | c43623a1b4116b5d45655cade5a3b67aa00724df (diff) | |
activate function check_qty_apo
| -rw-r--r-- | indoteknik_custom/models/automatic_purchase.py | 4 | ||||
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index af90615a..d3158182 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -180,8 +180,8 @@ class AutomaticPurchase(models.Model): def create_po_by_vendor(self, vendor_id): current_time = datetime.now() - # if not self.apo_type =='reordering': - # self.check_qty_po() + if not self.apo_type =='reordering': + self.check_qty_po() PRODUCT_PER_PO = 20 diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index d2393f16..1121aa56 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -505,8 +505,8 @@ class PurchaseOrder(models.Model): sum_so_margin += sale_order_line.item_margin - sales_price = sale_order_line.price_reduce_taxexcl * sale_order_line.product_uom_qty - # sales_price = sale_order_line.price_reduce_taxexcl * lines.product_qty + # sales_price = sale_order_line.price_reduce_taxexcl * sale_order_line.product_uom_qty + sales_price = sale_order_line.price_reduce_taxexcl * lines.product_qty if sale_order_line.order_id.shipping_cost_covered == 'indoteknik': sales_price -= sale_order_line.delivery_amt_line |
