Skip to content

Commit

Permalink
fix: make credit note and debit note exclusive (#35781)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit authored Jun 19, 2023
1 parent c1da3dd commit 4fbff20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/accounts/doctype/sales_invoice/sales_invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@
},
{
"default": "0",
"depends_on": "eval: !doc.is_debit_note",
"fieldname": "is_return",
"fieldtype": "Check",
"hide_days": 1,
Expand Down Expand Up @@ -1960,6 +1961,7 @@
},
{
"default": "0",
"depends_on": "eval: !doc.is_return",
"description": "Issue a debit note with 0 qty against an existing Sales Invoice",
"fieldname": "is_debit_note",
"fieldtype": "Check",
Expand Down Expand Up @@ -2155,7 +2157,7 @@
"link_fieldname": "consolidated_invoice"
}
],
"modified": "2023-06-03 16:22:16.219333",
"modified": "2023-06-19 16:02:05.309332",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice",
Expand Down

0 comments on commit 4fbff20

Please sign in to comment.