Skip to content

Commit

Permalink
fix: extend sr_no cleanup to packed items too
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Jan 29, 2022
1 parent b20df37 commit e177c52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/controllers/stock_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ def clean_serial_nos(self):
# remove extra whitespace and store one serial no on each line
row.serial_no = clean_serial_no_string(row.serial_no)

for row in self.get('packed_items') or []:
if hasattr(row, "serial_no") and row.serial_no:
# remove extra whitespace and store one serial no on each line
row.serial_no = clean_serial_no_string(row.serial_no)

def get_gl_entries(self, warehouse_account=None, default_expense_account=None,
default_cost_center=None):

Expand Down

0 comments on commit e177c52

Please sign in to comment.