Split the UBL OrderReference field into sale reference and sale number
Closes #14452
This commit is contained in:
1 parent
402913d4cd
commit
c60436c82a
6 files changed
+18
-3
No files matched your search
@@ -169,6 +169,16 @@ class Invoice(Model):
|
||||
else:
|
||||
return self.invoice.tax_identifier
|
||||
|
||||
@cached_property
|
||||
def sale_reference(self):
|
||||
if hasattr(self.invoice, 'sales'):
|
||||
return ','.join(s.reference for s in self.invoice.sales)
|
||||
|
||||
@cached_property
|
||||
def sale_number(self):
|
||||
if hasattr(self.invoice, 'sales'):
|
||||
return ','.join(s.number for s in self.invoice.sales)
|
||||
|
||||
@property
|
||||
def taxes(self):
|
||||
def key(line):
|
||||
|
||||
Reference in new issue
Block a user