InvoiceLine.tax se hace opcional es decir usar None.
FossilOrigin-Name: aace13352b78e174da241ea47ffe3de9f370653f9e175f2ef2bfe00e4df77ef9
This commit is contained in:
		| @@ -389,7 +389,7 @@ class InvoiceLine: | ||||
|     # ya que al reportar los totales es sobre | ||||
|     # la factura y el percent es unico por type_code | ||||
|     # de subtotal | ||||
|     tax: TaxTotal | ||||
|     tax: typing.Optional[TaxTotal] | ||||
|  | ||||
|     @property | ||||
|     def total_amount(self): | ||||
| @@ -419,6 +419,9 @@ class InvoiceLine: | ||||
|         if not isinstance(self.quantity, Quantity): | ||||
|             raise ValueError("quantity must be Amount") | ||||
|  | ||||
|         if self.tax is None: | ||||
|             self.tax = TaxTotalOmit() | ||||
|  | ||||
| @dataclass | ||||
| class LegalMonetaryTotal: | ||||
|     line_extension_amount: Amount = Amount(0.0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user