Skip to content

Commit

Permalink
feat: good in trasit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Aug 1, 2024
1 parent 7be9f2e commit 5bd74d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d2h/public/js/purchase_order.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function show_items_dialog(frm) {
data: frm.doc.items.map((item) => {
return {
new_item_code: item.item_code,
new_qty: item.qty - item.good_in_transit_qty,
new_qty: item.qty - item.custom_good_in_transit_qty,
new_good_in_transit_qty: 0,
};
}),
Expand Down Expand Up @@ -63,7 +63,7 @@ function show_items_dialog(frm) {
} else {
frm.doc.items.map((i) => {
if (i.item_code == item.new_item_code) {
i.good_in_transit_qty += item.new_good_in_transit_qty;
i.custom_good_in_transit_qty += item.new_good_in_transit_qty;
frm.dirty();
}
});
Expand Down

0 comments on commit 5bd74d0

Please sign in to comment.