form.AllowanceChargeAsDiscount nueva clase para descuentos

FossilOrigin-Name: 5b11ff93dff3a301628694c2a6e71940915aea8754a9eab3f35644bc669ddf87
This commit is contained in:
bit4bit
2020-12-02 18:10:29 +00:00
parent 48619106c5
commit e571009945
4 changed files with 21 additions and 3 deletions

View File

@@ -491,6 +491,11 @@ class AllowanceCharge:
def hasReason(self):
return self.reason is not None
class AllowanceChargeAsDiscount(AllowanceCharge):
def __init__(self, amount: Amount = Amount(0.0)):
self.charge_indicator = False
self.amount = amount
class NationalSalesInvoiceDocumentType(str):
def __str__(self):
# 6.1.3