From b0eb08331ddd7077fcfd561e8f2358be2628d2f9 Mon Sep 17 00:00:00 2001 From: Kevin Kempf Date: Wed, 16 Nov 2022 11:34:53 +0000 Subject: [PATCH 1/3] fix wrong variable name --- ebill_paynet/messages/invoice-2013A-invocloud.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ebill_paynet/messages/invoice-2013A-invocloud.xml b/ebill_paynet/messages/invoice-2013A-invocloud.xml index 4d278da..e5c6cd6 100644 --- a/ebill_paynet/messages/invoice-2013A-invocloud.xml +++ b/ebill_paynet/messages/invoice-2013A-invocloud.xml @@ -17,17 +17,17 @@ {{ invoice.name }} - {{ format_date() }} + {{ format_date(invoice.invoice_date) }} - {{ format_date(invoice.date_invoice) }} + {{ format_date(invoice.invoice_date) }} {{ invoice.name }} - {{ format_date(invoice.date_invoice) }} + {{ format_date(invoice.invoice_date) }} @@ -121,7 +121,7 @@ - {{ format_date(invoice.date_due or invoice.date_invoice) }} + {{ format_date(invoice.invoice_date_due or invoice.invoice_date) }} From f4428d28fabb2ee49083ce9d41132a5534d79f40 Mon Sep 17 00:00:00 2001 From: Kevin Kempf Date: Wed, 16 Nov 2022 12:16:57 +0000 Subject: [PATCH 2/3] change Paynet to E-Bill --- ebill_paynet/data/ir_cron.xml | 2 +- ebill_paynet/data/mail_activity_type.xml | 2 +- ebill_paynet/data/transmit.method.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ebill_paynet/data/ir_cron.xml b/ebill_paynet/data/ir_cron.xml index 7df5131..9a01504 100644 --- a/ebill_paynet/data/ir_cron.xml +++ b/ebill_paynet/data/ir_cron.xml @@ -1,7 +1,7 @@ - Paynet - Poll for shipments + E-Bill - Poll for shipments 1 hours -1 diff --git a/ebill_paynet/data/mail_activity_type.xml b/ebill_paynet/data/mail_activity_type.xml index 9d6f9c4..46df9b1 100644 --- a/ebill_paynet/data/mail_activity_type.xml +++ b/ebill_paynet/data/mail_activity_type.xml @@ -2,7 +2,7 @@ - Paynet System Error + E-Bill System Error fa-warning 0 99 diff --git a/ebill_paynet/data/transmit.method.xml b/ebill_paynet/data/transmit.method.xml index 13a13f0..3b490b6 100644 --- a/ebill_paynet/data/transmit.method.xml +++ b/ebill_paynet/data/transmit.method.xml @@ -1,7 +1,7 @@ - Paynet + E-Bill paynet From cc8c0ce21c46e5057637238f3d319392a319c537 Mon Sep 17 00:00:00 2001 From: Kevin Kempf Date: Sun, 20 Nov 2022 18:31:13 +0000 Subject: [PATCH 3/3] add to send the is_move_sent --- ebill_paynet/models/account_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ebill_paynet/models/account_invoice.py b/ebill_paynet/models/account_invoice.py index 616a91b..e087cd4 100644 --- a/ebill_paynet/models/account_invoice.py +++ b/ebill_paynet/models/account_invoice.py @@ -39,6 +39,7 @@ class AccountInvoice(models.Model): raise UserError(_("Error generating Paynet message")) message.send_to_paynet() self.invoice_exported = True + self.is_move_sent = True return "Paynet invoice generated and in state {}".format(message.state) def create_paynet_message(self):