fix: Translation Syntax
This commit is contained in:
parent
fa842e8774
commit
558879fad7
@ -57,7 +57,7 @@ class TestDeliveryNote(unittest.TestCase):
|
||||
|
||||
sle = frappe.get_doc("Stock Ledger Entry", {"voucher_type": "Delivery Note", "voucher_no": dn.name})
|
||||
|
||||
self.assertEqual(sle.stock_value_difference, flt(-1*stock_queue[0][1]))
|
||||
self.assertEqual(sle.stock_value_difference, flt(-1*stock_queue[0][1], 2))
|
||||
|
||||
self.assertFalse(get_gl_entries("Delivery Note", dn.name))
|
||||
|
||||
|
@ -1321,8 +1321,10 @@ class StockEntry(StockController):
|
||||
for sr in get_serial_nos(item.serial_no):
|
||||
sales_order = frappe.db.get_value("Serial No", sr, "sales_order")
|
||||
if sales_order:
|
||||
frappe.throw(_("Item {0} (Serial No: {1}) cannot be consumed as is reserverd\
|
||||
to fullfill Sales Order {2}.").format(item.item_code, sr, sales_order))
|
||||
msg = (_("(Serial No: {0}) cannot be consumed as it's reserverd to fullfill Sales Order {1}.")
|
||||
.format(sr, sales_order))
|
||||
|
||||
frappe.throw(_("Item {0} {1}").format(item.item_code, msg))
|
||||
|
||||
def update_transferred_qty(self):
|
||||
if self.purpose == 'Material Transfer' and self.outgoing_stock_entry:
|
||||
|
Loading…
x
Reference in New Issue
Block a user