commit
befa8d613f
@ -191,7 +191,8 @@ class PaymentReconciliation(Document):
|
|||||||
frappe.throw(_("Row {0}: Allocated amount {1} must be less than or equals to JV amount {2}")
|
frappe.throw(_("Row {0}: Allocated amount {1} must be less than or equals to JV amount {2}")
|
||||||
.format(p.idx, p.allocated_amount, p.amount))
|
.format(p.idx, p.allocated_amount, p.amount))
|
||||||
|
|
||||||
if flt(p.allocated_amount) > unreconciled_invoices.get(p.invoice_type, {}).get(p.invoice_number):
|
invoice_outstanding = unreconciled_invoices.get(p.invoice_type, {}).get(p.invoice_number)
|
||||||
|
if abs(flt(p.allocated_amount) - invoice_outstanding) > 0.009:
|
||||||
frappe.throw(_("Row {0}: Allocated amount {1} must be less than or equals to invoice outstanding amount {2}")
|
frappe.throw(_("Row {0}: Allocated amount {1} must be less than or equals to invoice outstanding amount {2}")
|
||||||
.format(p.idx, p.allocated_amount, unreconciled_invoices.get(p.invoice_type, {}).get(p.invoice_number)))
|
.format(p.idx, p.allocated_amount, unreconciled_invoices.get(p.invoice_type, {}).get(p.invoice_number)))
|
||||||
|
|
||||||
|
|||||||
@ -300,7 +300,7 @@ def get_serial_nos_by_fifo(args, item_doc):
|
|||||||
order by timestamp(purchase_date, purchase_time) asc limit %(qty)s""", {
|
order by timestamp(purchase_date, purchase_time) asc limit %(qty)s""", {
|
||||||
"item_code": args.item_code,
|
"item_code": args.item_code,
|
||||||
"warehouse": args.warehouse,
|
"warehouse": args.warehouse,
|
||||||
"qty": cint(args.qty)
|
"qty": abs(cint(args.qty))
|
||||||
}))
|
}))
|
||||||
|
|
||||||
def get_actual_batch_qty(batch_no,warehouse,item_code):
|
def get_actual_batch_qty(batch_no,warehouse,item_code):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user