Commit 4afef720 by Solo Group

pln

1 parent cf601db4
...@@ -224,7 +224,7 @@ def purchase(request, data, **kwargs): ...@@ -224,7 +224,7 @@ def purchase(request, data, **kwargs):
ar_invoice_det.amt_sell = vendor_produk.produk.harga ar_invoice_det.amt_sell = vendor_produk.produk.harga
flush_row(ar_invoice_det) flush_row(ar_invoice_det)
result = build_purchase(vendor_produk, ar_invoice_det) result = build_purchase(vendor_produk, ar_invoice_det)
total = "price" in result and result["price"] or 0 total = "total" in result and result["total"] or 0
if total: if total:
if vendor_produk.produk.harga < total: if vendor_produk.produk.harga < total:
total += vendor_produk.produk.harga total += vendor_produk.produk.harga
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!