mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 22:12:12 +00:00
fix: incorrect warehouse in the serial no selector for rejection (#43671)
(cherry picked from commit 29ff682eca)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
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