We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc7d39a commit 3bafadaCopy full SHA for 3bafada
1 file changed
erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
@@ -8,7 +8,7 @@
8
9
from frappe import throw, _
10
import frappe.defaults
11
-from frappe.utils import getdate
+from frappe.utils import getdate, cint
12
from erpnext.controllers.buying_controller import BuyingController
13
from erpnext.accounts.utils import get_account_currency
14
from frappe.desk.notifications import clear_doctype_notifications
@@ -128,7 +128,7 @@ def on_submit(self):
128
self.company, self.base_grand_total)
129
130
self.update_prevdoc_status()
131
- if self.per_billed < 100:
+ if cint(self.per_billed) < 100:
132
self.update_billing_status()
133
else:
134
self.status = "Completed"
0 commit comments