mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
chore: show item name in the validation message
(cherry picked from commit d05412f96a)
This commit is contained in:
committed by
Mergify
parent
0eb908e950
commit
0b4b0874f4
@@ -421,7 +421,7 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
|
||||
let { qty, based_on } = this.dialog.get_values();
|
||||
|
||||
if (this.item.serial_and_batch_bundle || this.item.rejected_serial_and_batch_bundle) {
|
||||
if (qty === this.qty) {
|
||||
if (this.qty && qty === Math.abs(this.qty)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,7 +273,8 @@ class SerialandBatchBundle(Document):
|
||||
|
||||
def validate_negative_batch(self, batch_no, available_qty):
|
||||
if available_qty < 0:
|
||||
msg = f"""Batch No {bold(batch_no)} has negative stock
|
||||
msg = f"""Batch No {bold(batch_no)} of an Item {bold(self.item_code)}
|
||||
has negative stock
|
||||
of quantity {bold(available_qty)} in the
|
||||
warehouse {self.warehouse}"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user