Commit 421c2236 by Solo Group

auto-push

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