Skip to content

Commit

Permalink
Merge pull request #42288 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-42287

fix: missing discount on POS Credit Notes (backport #42287)
  • Loading branch information
ruthra-kumar authored Jul 11, 2024
2 parents 5c75bb8 + edfb408 commit 38811e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions erpnext/accounts/doctype/sales_invoice/sales_invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,12 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e
return this.frm.call({
doc: me.frm.doc,
method: "set_missing_values",
callback: function(r) {
if(!r.exc) {
if(r.message && r.message.print_format) {
args: {
for_validate: true,
},
callback: function (r) {
if (!r.exc) {
if (r.message && r.message.print_format) {
me.frm.pos_print_format = r.message.print_format;
}
me.frm.trigger("update_stock");
Expand Down

0 comments on commit 38811e7

Please sign in to comment.