Skip to content

Commit

Permalink
Merge pull request #40720 from mmdanny89/warehouse-pos
Browse files Browse the repository at this point in the history
Set default warehouse for pos invoice
  • Loading branch information
rohitwaghchaure authored Apr 1, 2024
2 parents edf51c9 + b156937 commit 15c3f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/selling/page/point_of_sale/pos_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ erpnext.PointOfSale.Controller = class {

async on_cart_update(args) {
frappe.dom.freeze();
if (this.frm.doc.set_warehouse != this.settings.warehouse)
this.frm.doc.set_warehouse = this.settings.warehouse;
let item_row = undefined;
try {
let { field, value, item } = args;
Expand Down

0 comments on commit 15c3f09

Please sign in to comment.