Skip to content

Commit 881562f

Browse files
Sudharsanan11mergify[bot]
authored andcommitted
fix: autofill warehouse for packed items
(cherry picked from commit 3f8a0a4)
1 parent dcd6279 commit 881562f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

erpnext/public/js/controllers/transaction.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3131,10 +3131,16 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
31313131

31323132
set_warehouse() {
31333133
this.autofill_warehouse(this.frm.doc.items, "warehouse", this.frm.doc.set_warehouse);
3134+
this.autofill_warehouse(this.frm.doc.packed_items, "warehouse", this.frm.doc.set_warehouse);
31343135
}
31353136

31363137
set_target_warehouse() {
31373138
this.autofill_warehouse(this.frm.doc.items, "target_warehouse", this.frm.doc.set_target_warehouse);
3139+
this.autofill_warehouse(
3140+
this.frm.doc.packed_items,
3141+
"target_warehouse",
3142+
this.frm.doc.set_target_warehouse
3143+
);
31383144
}
31393145

31403146
set_from_warehouse() {

0 commit comments

Comments
 (0)