mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: incorrect warehouse in the serial no selector for rejection (#43671)
This commit is contained in:
@@ -678,6 +678,10 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_warehouse() {
|
get_warehouse() {
|
||||||
|
if (this.item?.is_rejected) {
|
||||||
|
return this.item.rejected_warehouse;
|
||||||
|
}
|
||||||
|
|
||||||
return this.item?.type_of_transaction === "Outward"
|
return this.item?.type_of_transaction === "Outward"
|
||||||
? this.item.warehouse || this.item.s_warehouse
|
? this.item.warehouse || this.item.s_warehouse
|
||||||
: this.item.warehouse || this.item.t_warehouse;
|
: this.item.warehouse || this.item.t_warehouse;
|
||||||
|
|||||||
Reference in New Issue
Block a user