diff --git a/components/bill/invoice/customer_templ.go b/components/bill/invoice/customer_templ.go index 9e4d6c9..cb3ab17 100644 --- a/components/bill/invoice/customer_templ.go +++ b/components/bill/invoice/customer_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -17,6 +17,9 @@ import ( func customer(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -67,3 +70,5 @@ func customer(inv *bill.Invoice) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/invoice_templ.go b/components/bill/invoice/invoice_templ.go index 3462127..9172a68 100644 --- a/components/bill/invoice/invoice_templ.go +++ b/components/bill/invoice/invoice_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -31,6 +31,9 @@ import ( func Invoice(env *gobl.Envelope, inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -143,6 +146,9 @@ func Invoice(env *gobl.Envelope, inv *bill.Invoice) templ.Component { func title(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -329,3 +335,5 @@ func code(series, code cbc.Code) string { } return fmt.Sprintf("%s-%s", series, code) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/lines_templ.go b/components/bill/invoice/lines_templ.go index f8f8d68..b076d3c 100644 --- a/components/bill/invoice/lines_templ.go +++ b/components/bill/invoice/lines_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -19,6 +19,9 @@ import ( func lines(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -63,6 +66,9 @@ func lines(inv *bill.Invoice) templ.Component { func linesWithSupport(inv *bill.Invoice, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -240,6 +246,9 @@ func linesWithSupport(inv *bill.Invoice, ls *lineSupport) templ.Component { func linesBody(inv *bill.Invoice, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -276,6 +285,9 @@ func linesBody(inv *bill.Invoice, ls *lineSupport) templ.Component { func line(_ *bill.Invoice, l *bill.Line, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -503,6 +515,9 @@ func line(_ *bill.Invoice, l *bill.Line, ls *lineSupport) templ.Component { func lineItemAltPrices(l *bill.Line) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -539,6 +554,9 @@ func lineItemAltPrices(l *bill.Line) templ.Component { func lineGroupDiscounts(l *bill.Line) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -574,6 +592,9 @@ func lineGroupDiscounts(l *bill.Line) templ.Component { func lineGroupCharges(l *bill.Line) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -609,6 +630,9 @@ func lineGroupCharges(l *bill.Line) templ.Component { func discountsBody(inv *bill.Invoice, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -647,6 +671,9 @@ func discountsBody(inv *bill.Invoice, ls *lineSupport) templ.Component { func discountRow(row *bill.Discount, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -806,6 +833,9 @@ func discountRow(row *bill.Discount, ls *lineSupport) templ.Component { func chargesBody(inv *bill.Invoice, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -844,6 +874,9 @@ func chargesBody(inv *bill.Invoice, ls *lineSupport) templ.Component { func chargeRow(row *bill.Charge, ls *lineSupport) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -999,3 +1032,5 @@ func chargeRow(row *bill.Charge, ls *lineSupport) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/notes_templ.go b/components/bill/invoice/notes_templ.go index 3cb3cbe..9cb714a 100644 --- a/components/bill/invoice/notes_templ.go +++ b/components/bill/invoice/notes_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -41,6 +41,9 @@ func init() { func notes(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -127,6 +130,9 @@ func notes(inv *bill.Invoice) templ.Component { func noteRegSummary(reg *org.Registration) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -375,3 +381,5 @@ func registrationCapital(ctx context.Context, reg *org.Registration) string { } return "" } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/payment.templ b/components/bill/invoice/payment.templ index be391fb..2110a87 100644 --- a/components/bill/invoice/payment.templ +++ b/components/bill/invoice/payment.templ @@ -2,6 +2,7 @@ package invoice import ( "context" + "fmt" "github.com/invopop/ctxi18n/i18n" "github.com/invopop/gobl.html/components/t" "github.com/invopop/gobl/bill" @@ -211,20 +212,11 @@ func paymentInstrMethodName(ctx context.Context, inst *pay.Instructions) string if inst.Detail != "" { return inst.Detail } - ctx = i18n.WithScope(ctx, ".methods") - switch inst.Key { - case pay.MeansKeyCard: - return i18n.T(ctx, ".card") - case pay.MeansKeyCreditTransfer: - return i18n.T(ctx, ".credit_transfer") - case pay.MeansKeyCash: - return i18n.T(ctx, ".cash") - case pay.MeansKeyDirectDebit: - return i18n.T(ctx, ".direct_debit") - case pay.MeansKeyOnline: - return i18n.T(ctx, ".online") + key := fmt.Sprintf(".methods.%s", inst.Key) + if !i18n.Has(ctx, key) { + return "" } - return "" + return i18n.T(ctx, key) } func paymentTermsKeyName(ctx context.Context, terms *pay.Terms) string { diff --git a/components/bill/invoice/payment_templ.go b/components/bill/invoice/payment_templ.go index 8aecdab..1105688 100644 --- a/components/bill/invoice/payment_templ.go +++ b/components/bill/invoice/payment_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -10,6 +10,7 @@ import templruntime "github.com/a-h/templ/runtime" import ( "context" + "fmt" "github.com/invopop/ctxi18n/i18n" "github.com/invopop/gobl.html/components/t" "github.com/invopop/gobl/bill" @@ -19,6 +20,9 @@ import ( func payment(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -89,6 +93,9 @@ func payment(inv *bill.Invoice) templ.Component { func paymentInstructions(inst *pay.Instructions) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -136,7 +143,7 @@ func paymentInstructions(inst *pay.Instructions) templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(pm) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 38, Col: 10} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 39, Col: 10} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -163,7 +170,7 @@ func paymentInstructions(inst *pay.Instructions) templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(inst.Ref) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 48, Col: 16} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 49, Col: 16} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -259,7 +266,7 @@ func paymentInstructions(inst *pay.Instructions) templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(ol.Label) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 84, Col: 19} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 85, Col: 19} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { @@ -269,7 +276,7 @@ func paymentInstructions(inst *pay.Instructions) templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(ol.URL) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 86, Col: 17} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 87, Col: 17} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { @@ -302,7 +309,7 @@ func paymentInstructions(inst *pay.Instructions) templ.Component { var templ_7745c5c3_Var10 string templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(inst.Notes) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 99, Col: 18} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 100, Col: 18} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) if templ_7745c5c3_Err != nil { @@ -330,6 +337,9 @@ func paymentInstructions(inst *pay.Instructions) templ.Component { func paymentCreditTransferRow(ct *pay.CreditTransfer) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -416,6 +426,9 @@ func paymentCreditTransferRow(ct *pay.CreditTransfer) templ.Component { func paymentTerms(terms *pay.Terms) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -463,7 +476,7 @@ func paymentTerms(terms *pay.Terms) templ.Component { var templ_7745c5c3_Var14 string templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(paymentTermsKeyName(ctx, terms)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 141, Col: 39} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 142, Col: 39} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) if templ_7745c5c3_Err != nil { @@ -490,7 +503,7 @@ func paymentTerms(terms *pay.Terms) templ.Component { var templ_7745c5c3_Var15 string templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(terms.Notes) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 151, Col: 19} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 152, Col: 19} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15)) if templ_7745c5c3_Err != nil { @@ -540,6 +553,9 @@ func paymentTerms(terms *pay.Terms) templ.Component { func paymentDueDates(terms *pay.Terms) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -577,7 +593,7 @@ func paymentDueDates(terms *pay.Terms) templ.Component { var templ_7745c5c3_Var17 string templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(dd.Notes) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 180, Col: 16} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `components/bill/invoice/payment.templ`, Line: 181, Col: 16} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) if templ_7745c5c3_Err != nil { @@ -640,20 +656,11 @@ func paymentInstrMethodName(ctx context.Context, inst *pay.Instructions) string if inst.Detail != "" { return inst.Detail } - ctx = i18n.WithScope(ctx, ".methods") - switch inst.Key { - case pay.MeansKeyCard: - return i18n.T(ctx, ".card") - case pay.MeansKeyCreditTransfer: - return i18n.T(ctx, ".credit_transfer") - case pay.MeansKeyCash: - return i18n.T(ctx, ".cash") - case pay.MeansKeyDirectDebit: - return i18n.T(ctx, ".direct_debit") - case pay.MeansKeyOnline: - return i18n.T(ctx, ".online") + key := fmt.Sprintf(".methods.%s", inst.Key) + if !i18n.Has(ctx, key) { + return "" } - return "" + return i18n.T(ctx, key) } func paymentTermsKeyName(ctx context.Context, terms *pay.Terms) string { @@ -681,3 +688,5 @@ func paymentTermsKeyName(ctx context.Context, terms *pay.Terms) string { return i18n.T(ctx, ".na") } } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/summary_templ.go b/components/bill/invoice/summary_templ.go index de1116f..ccffa03 100644 --- a/components/bill/invoice/summary_templ.go +++ b/components/bill/invoice/summary_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -23,6 +23,9 @@ import ( func summary(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -274,6 +277,9 @@ func summary(inv *bill.Invoice) templ.Component { func summaryOrderingRows(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -363,6 +369,9 @@ func summaryOrderingRows(inv *bill.Invoice) templ.Component { func summaryOrderPeriodRows(p *cal.Period) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -427,3 +436,5 @@ func mapTaxExtension(ctx context.Context, k cbc.Key, v tax.ExtValue) string { } return label } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/supplier_templ.go b/components/bill/invoice/supplier_templ.go index 896f99a..4071a9b 100644 --- a/components/bill/invoice/supplier_templ.go +++ b/components/bill/invoice/supplier_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -17,6 +17,9 @@ import ( func supplier(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -67,3 +70,5 @@ func supplier(inv *bill.Invoice) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/taxes_templ.go b/components/bill/invoice/taxes_templ.go index 5fe94ee..5113128 100644 --- a/components/bill/invoice/taxes_templ.go +++ b/components/bill/invoice/taxes_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -19,6 +19,9 @@ import ( func taxes(inv *bill.Invoice, taxes *tax.Total) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -125,6 +128,9 @@ func taxes(inv *bill.Invoice, taxes *tax.Total) templ.Component { func taxRateRow(inv *bill.Invoice, cat *tax.CategoryTotal, rate *tax.RateTotal, span int) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -284,3 +290,5 @@ func taxExemptionCode(ext tax.Extensions) string { } return "" } + +var _ = templruntime.GeneratedTemplate diff --git a/components/bill/invoice/totals_templ.go b/components/bill/invoice/totals_templ.go index 8f2147e..449c6dc 100644 --- a/components/bill/invoice/totals_templ.go +++ b/components/bill/invoice/totals_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package invoice //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -21,6 +21,9 @@ import ( func totals(inv *bill.Invoice, totals *bill.Totals) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -97,6 +100,9 @@ func totals(inv *bill.Invoice, totals *bill.Totals) templ.Component { func totalsBaseRows(inv *bill.Invoice, totals *bill.Totals) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -271,6 +277,9 @@ func totalsBaseRows(inv *bill.Invoice, totals *bill.Totals) templ.Component { func totalsPayableRows(inv *bill.Invoice, totals *bill.Totals) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -370,6 +379,9 @@ func totalsPayableRows(inv *bill.Invoice, totals *bill.Totals) templ.Component { func totalsDueRows(inv *bill.Invoice, totals *bill.Totals) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -504,3 +516,5 @@ func outlayText(outlay *bill.Outlay) string { } return txt } + +var _ = templruntime.GeneratedTemplate diff --git a/components/envelope_templ.go b/components/envelope_templ.go index b780dd5..c35d594 100644 --- a/components/envelope_templ.go +++ b/components/envelope_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -27,6 +27,9 @@ import ( func Envelope(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -95,6 +98,9 @@ func Envelope(env *gobl.Envelope) templ.Component { func stylesheets() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -179,3 +185,5 @@ func stylesheetData() []string { } return list } + +var _ = templruntime.GeneratedTemplate diff --git a/components/footer_templ.go b/components/footer_templ.go index 5c04e99..2d76a84 100644 --- a/components/footer_templ.go +++ b/components/footer_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package components //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -21,6 +21,9 @@ import ( func footerPrint(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -63,6 +66,9 @@ func footerPrint(env *gobl.Envelope) templ.Component { func footerScreen(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -101,6 +107,9 @@ func footerScreen(env *gobl.Envelope) templ.Component { func footerPage() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -135,6 +144,9 @@ func footerPage() templ.Component { func footerNotes(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -171,6 +183,9 @@ func footerNotes(env *gobl.Envelope) templ.Component { func footerGOBLLogo() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -223,3 +238,5 @@ func footerNotesText(ctx context.Context, env *gobl.Envelope) string { } return strings.Join(out, " · ") } + +var _ = templruntime.GeneratedTemplate diff --git a/components/images/gobl_templ.go b/components/images/gobl_templ.go index c0d8488..db7a5cf 100644 --- a/components/images/gobl_templ.go +++ b/components/images/gobl_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package images //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -23,6 +23,9 @@ var Content embed.FS func GOBL() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -67,3 +70,5 @@ func goblImage() string { str := base64.StdEncoding.EncodeToString(data) return "data:image/svg+xml;base64," + str } + +var _ = templruntime.GeneratedTemplate diff --git a/components/images/images_templ.go b/components/images/images_templ.go index 8a128a1..9f2dfd5 100644 --- a/components/images/images_templ.go +++ b/components/images/images_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package images //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -12,6 +12,9 @@ import templruntime "github.com/a-h/templ/runtime" func QR(code string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -49,3 +52,5 @@ func QR(code string) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/notes/message_templ.go b/components/notes/message_templ.go index 3c0040e..80871d8 100644 --- a/components/notes/message_templ.go +++ b/components/notes/message_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package notes //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -15,6 +15,9 @@ import ( func Message(msg *note.Message) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -73,3 +76,5 @@ func Message(msg *note.Message) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/org/address_templ.go b/components/org/address_templ.go index 43d2997..506bd2c 100644 --- a/components/org/address_templ.go +++ b/components/org/address_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package org //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -19,6 +19,9 @@ import ( func Address(addr *org.Address) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -53,6 +56,9 @@ func Address(addr *org.Address) templ.Component { func AddressWithLabel(addr *org.Address) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -101,6 +107,9 @@ func AddressWithLabel(addr *org.Address) templ.Component { func addressLines(addr *org.Address) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -190,3 +199,5 @@ func addrNumberFirst(addr *org.Address) bool { return false } } + +var _ = templruntime.GeneratedTemplate diff --git a/components/org/party_templ.go b/components/org/party_templ.go index 7048f4d..dd827a6 100644 --- a/components/org/party_templ.go +++ b/components/org/party_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package org //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -26,6 +26,9 @@ import ( func Party(party *org.Party) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -180,6 +183,9 @@ func Party(party *org.Party) templ.Component { func taxID(party *org.Party) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -216,6 +222,9 @@ func taxID(party *org.Party) templ.Component { func people(people []*org.Person) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -261,6 +270,9 @@ func people(people []*org.Person) templ.Component { func addresses(addrs []*org.Address) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -289,6 +301,9 @@ func addresses(addrs []*org.Address) templ.Component { func telephones(tels []*org.Telephone) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -332,6 +347,9 @@ func telephones(tels []*org.Telephone) templ.Component { func emails(emails []*org.Email) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -368,6 +386,9 @@ func emails(emails []*org.Email) templ.Component { func websites(websites []*org.Website) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -411,6 +432,9 @@ func websites(websites []*org.Website) templ.Component { func identities(idents []*org.Identity) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -447,6 +471,9 @@ func identities(idents []*org.Identity) templ.Component { func partyExtensions(party *org.Party) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -588,3 +615,5 @@ func extensionKeys(ext tax.Extensions) []cbc.Key { }) return keys } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/co/dian_templ.go b/components/regimes/co/dian_templ.go index 3eefcc9..6d29a33 100644 --- a/components/regimes/co/dian_templ.go +++ b/components/regimes/co/dian_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package co //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -24,6 +24,9 @@ var dianQRHTTPRegexp = regexp.MustCompile(`https.+`) func DIANQR(env *gobl.Envelope, inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -54,6 +57,9 @@ func DIANQR(env *gobl.Envelope, inv *bill.Invoice) templ.Component { func generateQR(inv *bill.Invoice, code, qr string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -169,3 +175,5 @@ func dianQR(env *gobl.Envelope) string { } return "" } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/es/ticketbai_templ.go b/components/regimes/es/ticketbai_templ.go index c782bc8..25be591 100644 --- a/components/regimes/es/ticketbai_templ.go +++ b/components/regimes/es/ticketbai_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package es //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -18,6 +18,9 @@ import ( func TicketBAIQR(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -48,6 +51,9 @@ func TicketBAIQR(env *gobl.Envelope) templ.Component { func generateTicketBAIQR(code, qr string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -120,3 +126,5 @@ func ticketbaiQR(env *gobl.Envelope) string { } return "" } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/gr/iapr_templ.go b/components/regimes/gr/iapr_templ.go index 9525b03..33a2d85 100644 --- a/components/regimes/gr/iapr_templ.go +++ b/components/regimes/gr/iapr_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package gr //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -17,6 +17,9 @@ import ( func IAPR(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -152,3 +155,5 @@ func IAPR(env *gobl.Envelope) templ.Component { func hasStamps(env *gobl.Envelope) bool { return env.Head.GetStamp(gr.StampIAPRQR) != nil } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/mx/cfdi_templ.go b/components/regimes/mx/cfdi_templ.go index 03e6df9..1868de2 100644 --- a/components/regimes/mx/cfdi_templ.go +++ b/components/regimes/mx/cfdi_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package mx //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -16,6 +16,9 @@ import ( func CFDI(env *gobl.Envelope, inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -44,3 +47,5 @@ func CFDI(env *gobl.Envelope, inv *bill.Invoice) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/mx/complements_templ.go b/components/regimes/mx/complements_templ.go index b2cb11c..5e999eb 100644 --- a/components/regimes/mx/complements_templ.go +++ b/components/regimes/mx/complements_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package mx //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -24,6 +24,9 @@ import ( func complements(inv *bill.Invoice) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -60,6 +63,9 @@ func complements(inv *bill.Invoice) templ.Component { func foodVouchers(fv *cfdi.FoodVouchers) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -213,6 +219,9 @@ func foodVouchers(fv *cfdi.FoodVouchers) templ.Component { func fuelAccountBalance(b *cfdi.FuelAccountBalance) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -459,3 +468,5 @@ func fuelAccountTax(taxes []*cfdi.FuelAccountTax, code cbc.Code) *num.Amount { } return nil } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/mx/line_templ.go b/components/regimes/mx/line_templ.go index 18f40ad..7ee0530 100644 --- a/components/regimes/mx/line_templ.go +++ b/components/regimes/mx/line_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package mx //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -17,6 +17,9 @@ import ( func LineExtensions(line *bill.Line) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -54,3 +57,5 @@ func LineExtensions(line *bill.Line) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/mx/signatures_templ.go b/components/regimes/mx/signatures_templ.go index 6b6be99..f413e07 100644 --- a/components/regimes/mx/signatures_templ.go +++ b/components/regimes/mx/signatures_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package mx //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -19,6 +19,9 @@ import ( func signatures(h *head.Header) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -225,3 +228,5 @@ func satURL(h *head.Header) string { func hasSignatures(env *gobl.Envelope) bool { return env.Head.GetStamp(mx.StampSATChain) != nil } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/pl/ksef_templ.go b/components/regimes/pl/ksef_templ.go index 2c7129f..9d6eb46 100644 --- a/components/regimes/pl/ksef_templ.go +++ b/components/regimes/pl/ksef_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package pl //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -23,6 +23,9 @@ var dianQRHTTPRegexp = regexp.MustCompile(`https.+`) func KSeFQR(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -53,6 +56,9 @@ func KSeFQR(env *gobl.Envelope) templ.Component { func generateQR(id, qr string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -120,3 +126,5 @@ func ksefID(env *gobl.Envelope) string { } return "" } + +var _ = templruntime.GeneratedTemplate diff --git a/components/regimes/pt/at_templ.go b/components/regimes/pt/at_templ.go index 09ae7e3..dc98d5c 100644 --- a/components/regimes/pt/at_templ.go +++ b/components/regimes/pt/at_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package pt //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -15,6 +15,9 @@ import ( func ATQR(env *gobl.Envelope) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -45,6 +48,9 @@ func ATQR(env *gobl.Envelope) templ.Component { func generateATQR(atcud, qr string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -93,3 +99,5 @@ func generateATQR(atcud, qr string) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/components/t/i18n_templ.go b/components/t/i18n_templ.go index 82c11fd..8de3694 100644 --- a/components/t/i18n_templ.go +++ b/components/t/i18n_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.793 package t //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -23,6 +23,9 @@ import ( func T(key string, args ...any) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -55,6 +58,9 @@ func T(key string, args ...any) templ.Component { func N(key string, n int, args ...any) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -88,6 +94,9 @@ func N(key string, n int, args ...any) templ.Component { func L(a any) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -120,6 +129,9 @@ func L(a any) templ.Component { func LM(a num.Amount) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -153,6 +165,9 @@ func LM(a num.Amount) templ.Component { func LC(a num.Amount, cur currency.Code) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -186,6 +201,9 @@ func LC(a num.Amount, cur currency.Code) templ.Component { func LCD(a num.Amount, cur currency.Code) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -218,6 +236,9 @@ func LCD(a num.Amount, cur currency.Code) templ.Component { func Scope(key string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -283,3 +304,5 @@ func LocalizeCurrency(_ context.Context, a num.Amount, cur currency.Code, opts . f := cur.Def().Formatter(opts...) return f.Amount(a) } + +var _ = templruntime.GeneratedTemplate diff --git a/go.mod b/go.mod index 4d3f349..33c3a1e 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/invopop/gobl.html go 1.22.1 require ( - github.com/a-h/templ v0.2.747 + github.com/a-h/templ v0.2.793 github.com/go-resty/resty/v2 v2.12.0 - github.com/invopop/ctxi18n v0.6.0 + github.com/invopop/ctxi18n v0.9.0 github.com/invopop/gobl v0.200.0 github.com/invopop/princepdf v0.0.0-20240408123340-585be3cab91a github.com/labstack/echo/v4 v4.12.0 diff --git a/go.sum b/go.sum index 9f92270..883ec67 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0 github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= +github.com/a-h/templ v0.2.793 h1:Io+/ocnfGWYO4VHdR0zBbf39PQlnzVCVVD+wEEs6/qY= +github.com/a-h/templ v0.2.793/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= @@ -26,6 +28,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/invopop/ctxi18n v0.6.0 h1:Qm3ZL/kK4EKvmLI3U2ETN2rWrtSTaxXrcA6ZUY9aVGE= github.com/invopop/ctxi18n v0.6.0/go.mod h1:1Osw+JGYA+anHt0Z4reF36r5FtGHYjGQ+m1X7keIhPc= +github.com/invopop/ctxi18n v0.9.0 h1:BIia4u4OngaHVn/7gvK0w6lccOXVtad8xU0KgJ+mnVA= +github.com/invopop/ctxi18n v0.9.0/go.mod h1:1Osw+JGYA+anHt0Z4reF36r5FtGHYjGQ+m1X7keIhPc= github.com/invopop/gobl v0.200.0 h1:C3KD1tXS9xaI2Gl0UGi4E6/kCsfOh2++aphyjtbr5iE= github.com/invopop/gobl v0.200.0/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU= github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI= diff --git a/locales/de/app.yml b/locales/de/app.yml index c3c0c16..21cee39 100644 --- a/locales/de/app.yml +++ b/locales/de/app.yml @@ -82,9 +82,9 @@ de: online: "Zahlungslink" methods: card: "Bankkarte" - credit_transfer: "Banküberweisung" + credit-transfer: "Banküberweisung" cash: "Bargeld" - direct_debit: "Lastschrift" + direct-debit: "Lastschrift" online: "Online" terms: key: "Zahlungsbedingungen" diff --git a/locales/el/app.yml b/locales/el/app.yml index dc6b40b..b8525d3 100644 --- a/locales/el/app.yml +++ b/locales/el/app.yml @@ -83,9 +83,9 @@ el: online: "Σύνδεσμος πληρωμής" methods: card: "Κάρτα τραπέζης" - credit_transfer: "Τραπεζική μεταφορά" + credit-transfer: "Τραπεζική μεταφορά" cash: "Μετρητά" - direct_debit: "Άμεση πίστωση" + direct-debit: "Άμεση πίστωση" online: "Διαδικτυακά" terms: key: "Όροι πληρωμής" diff --git a/locales/en/app.yml b/locales/en/app.yml index 1b29112..ee1dab9 100644 --- a/locales/en/app.yml +++ b/locales/en/app.yml @@ -84,10 +84,11 @@ en: online: "Payment Link" methods: card: "Bank card" - credit_transfer: "Bank transfer" + credit-transfer: "Bank transfer" cash: "Cash" - direct_debit: "Direct debit" + direct-debit: "Direct debit" online: "Online" + cheque: "Cheque" terms: key: "Payment Terms" notes: "Payment Terms Notes" diff --git a/locales/es/app.yml b/locales/es/app.yml index ab470e7..a6c4660 100644 --- a/locales/es/app.yml +++ b/locales/es/app.yml @@ -84,10 +84,11 @@ es: online: "Link de pago" methods: card: "Tarjeta bancaria" - credit_transfer: "Transferencia bancaria" + credit-transfer: "Transferencia bancaria" cash: "Efectivo" - direct_debit: "Domiciliación bancaria" + direct-debit: "Domiciliación bancaria" online: "En línea" + cheque: "Cheque" terms: key: "Términos de Pago" notes: "Notas de Términos de Pago" diff --git a/locales/fr/app.yml b/locales/fr/app.yml index 6589b34..fe08bdd 100644 --- a/locales/fr/app.yml +++ b/locales/fr/app.yml @@ -74,10 +74,11 @@ fr: online: "Lien de paiement" methods: card: "Carte bancaire" - credit_transfer: "Virement bancaire" + credit-transfer: "Virement bancaire" cash: "Espèces" - direct_debit: "Prélèvement automatique" + direct-debit: "Prélèvement automatique" online: "En ligne" + cheque: "Cheque" terms: key: "Conditions de paiement" notes: "Notes sur les conditions de paiement" diff --git a/locales/it/app.yml b/locales/it/app.yml index 3f00935..87fe58a 100644 --- a/locales/it/app.yml +++ b/locales/it/app.yml @@ -74,9 +74,9 @@ it: online: "Link di pagamento" methods: card: "Carta di credito" - credit_transfer: "Bonifico bancario" + credit-transfer: "Bonifico bancario" cash: "Contanti" - direct_debit: "Addebito diretto" + direct-debit: "Addebito diretto" online: "Online" terms: key: "Termini di pagamento" diff --git a/locales/pl/app.yml b/locales/pl/app.yml index 7a896a0..3e67631 100644 --- a/locales/pl/app.yml +++ b/locales/pl/app.yml @@ -81,9 +81,9 @@ pl: online: "Link do płatności" methods: card: "Karta bankowa" - credit_transfer: "Przelew bankowy" + credit-transfer: "Przelew bankowy" cash: "Gotówka" - direct_debit: "Polecenie zapłaty" + direct-debit: "Polecenie zapłaty" online: "Online" terms: key: "Warunki płatności" diff --git a/locales/pt/app.yml b/locales/pt/app.yml index de3e0a8..b382eb0 100644 --- a/locales/pt/app.yml +++ b/locales/pt/app.yml @@ -82,9 +82,9 @@ pt: online: "Link de pagamento" methods: card: "Cartão bancário" - credit_transfer: "Transferência bancária" + credit-transfer: "Transferência bancária" cash: "Dinheiro" - direct_debit: "Débito direto" + direct-debit: "Débito direto" online: "Online" terms: key: "Condições de Pagamento"