Skip to content

Commit a71814a

Browse files
khushi8112mergify[bot]
authored andcommitted
fix: Set remarks blank instead of No remarks in Sales/Purchase Invoices
(cherry picked from commit 2515bf3)
1 parent 93def4d commit a71814a

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,6 @@ def create_remarks(self):
332332
if self.bill_date:
333333
self.remarks += " " + _("dated {0}").format(formatdate(self.bill_date))
334334

335-
else:
336-
self.remarks = _("No Remarks")
337-
338335
def set_missing_values(self, for_validate=False):
339336
if not self.credit_to:
340337
self.credit_to = get_party_account("Supplier", self.supplier, self.company)

erpnext/accounts/doctype/sales_invoice/sales_invoice.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,9 +1101,6 @@ def add_remarks(self):
11011101
if self.po_date:
11021102
self.remarks += " " + _("dated {0}").format(formatdate(self.po_date))
11031103

1104-
else:
1105-
self.remarks = _("No Remarks")
1106-
11071104
def validate_auto_set_posting_time(self):
11081105
# Don't auto set the posting date and time if invoice is amended
11091106
if self.is_new() and self.amended_from:

0 commit comments

Comments
 (0)