feat: Dialog to select alternative item before creating Sales order

- Users can leave the row blank in the dialog if original item is to be used
- Else users can select an alternative item against an original item
- In the document, users must check `Is Alternative Item` if needed and also specify which item it is an altenrative to since there are no documented mappings
This commit is contained in:
marination
2023-01-26 14:36:25 +05:30
parent f19eadab9a
commit cef7dfd0b4
4 changed files with 94 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ class calculate_taxes_and_totals(object):
def filter_rows(self):
"""Exclude rows, that do not fulfill the filter criteria, from totals computation."""
items = list(filter(lambda item: not item.get("is_alternative_item"), self.doc.get("items")))
items = list(filter(lambda item: not item.get("is_alternative"), self.doc.get("items")))
return items
def calculate(self):