Skip to content

Commit

Permalink
fix: updated the logic to set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmalroshan123 committed Nov 11, 2024
1 parent 494d255 commit 67ff306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aumms/aumms/doctype/jewellery_invoice/jewellery_invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ function calculate_discounted_stone_charge_and_print(frm) {
total_stone_charge += stone_charge ;
});
}
let discount = total_stone_charge - frm.doc.custom_discount_final;
let discount = total_stone_charge - frm.doc.custom_discount_final || 0;

frm.set_value("discount_amount", discount);
}

0 comments on commit 67ff306

Please sign in to comment.