Do not color voided line items in red
strikethrough seems to me enough to distinguish, and probably should save red for "on sale" items?
This commit is contained in:
parent
2c9f3cd41a
commit
8b526af843
|
@ -118,10 +118,10 @@ class WuttaTxnItem(WuttaControl):
|
|||
def refresh(self, update=True):
|
||||
|
||||
if self.row.void:
|
||||
self.major_style.color = 'red'
|
||||
self.major_style.color = None
|
||||
self.major_style.decoration = ft.TextDecoration.LINE_THROUGH
|
||||
self.major_style.weight = None
|
||||
self.minor_style.color = 'red'
|
||||
self.minor_style.color = None
|
||||
self.minor_style.decoration = ft.TextDecoration.LINE_THROUGH
|
||||
else:
|
||||
self.major_style.color = None
|
||||
|
@ -138,7 +138,7 @@ class WuttaTxnItem(WuttaControl):
|
|||
self.tax_flag.text = f"T{self.row.tax_code}" if self.row.tax_code else ""
|
||||
|
||||
if self.row.void:
|
||||
self.sales_total_style.color = 'red'
|
||||
self.sales_total_style.color = None
|
||||
self.sales_total_style.decoration = ft.TextDecoration.LINE_THROUGH
|
||||
self.sales_total_style.weight = None
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue