Commit 90d9879e by Solo Group

auto-push

1 parent b2fda85f
...@@ -404,6 +404,7 @@ class Vendor(VendorClass): ...@@ -404,6 +404,7 @@ class Vendor(VendorClass):
i += 1 i += 1
self.amt_buy = result["total"] self.amt_buy = result["total"]
jual = self.vendor_produk.produk.harga*i jual = self.vendor_produk.produk.harga*i
log.info(rincian)
self.discount = rincian["admin"] - jual self.discount = rincian["admin"] - jual
self.amt_sell = result["subtotal"] - self.discount self.amt_sell = result["subtotal"] - self.discount
result["discount"] = self.discount result["discount"] = self.discount
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!