Merge pull request #16098 from rohitwaghchaure/on_uncheck_is_return_clear_reference_number
On disabled is return field clear the reference field
This commit is contained in:
commit
9fba32a917
@ -185,6 +185,12 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
is_return: function() {
|
||||||
|
if(!this.frm.doc.is_return && this.frm.doc.return_against) {
|
||||||
|
this.frm.set_value('return_against', '');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
setup_quality_inspection: function() {
|
setup_quality_inspection: function() {
|
||||||
if(!in_list(["Delivery Note", "Sales Invoice", "Purchase Receipt", "Purchase Invoice"], this.frm.doc.doctype)) {
|
if(!in_list(["Delivery Note", "Sales Invoice", "Purchase Receipt", "Purchase Invoice"], this.frm.doc.doctype)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user