fix(pos): unsupported operand type -= for 'float' and 'NoneType'

This commit is contained in:
Saqib Ansari 2021-06-21 10:47:23 +05:30
parent a97556fa8d
commit 99531a35e0
2 changed files with 2 additions and 2 deletions

View File

@ -989,7 +989,7 @@ class SalesInvoice(SellingController):
for payment_mode in self.payments:
if skip_change_gl_entries and payment_mode.account == self.account_for_change_amount:
payment_mode.base_amount -= self.change_amount
payment_mode.base_amount -= flt(self.change_amount)
if payment_mode.amount:
# POS, make payment entries

View File

@ -387,7 +387,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
if(this.frm.doc.scan_barcode) {
frappe.call({
method: "erpnext.selling.page.point_of_sale.point_of_sale.search_serial_or_batch_or_barcode_number",
method: "erpnext.selling.page.point_of_sale.point_of_sale.search_for_serial_or_batch_or_barcode_number",
args: { search_value: this.frm.doc.scan_barcode }
}).then(r => {
const data = r && r.message;