Skip to content

Commit c818e45

Browse files
authored
Merge pull request #47 from invopop/simplified
Fix simplified invoice for foreign and missing customer countries
2 parents 5a22042 + 3b5f4a2 commit c818e45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

convert/breakdown.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func newTipoDesglose(gobl *bill.Invoice) *TipoDesglose {
104104

105105
desglose := &TipoDesglose{}
106106

107-
if gobl.Customer == nil || partyCountry(gobl.Customer) == l10n.ES.Tax() {
107+
if gobl.Customer == nil || partyCountry(gobl.Customer) == l10n.ES.Tax() || gobl.HasTags(tax.TagSimplified) {
108108
desglose.DesgloseFactura = newDesgloseFactura(taxInfo, catTotal.Rates)
109109
} else {
110110
goods, services := splitByTBAIProduct(catTotal.Rates)

0 commit comments

Comments
 (0)