diff --git a/burundi_compliance/burundi_compliance/api_classes/add_stock_movement.py b/burundi_compliance/burundi_compliance/api_classes/add_stock_movement.py index 8ab351e..3bbf1bb 100644 --- a/burundi_compliance/burundi_compliance/api_classes/add_stock_movement.py +++ b/burundi_compliance/burundi_compliance/api_classes/add_stock_movement.py @@ -33,7 +33,6 @@ def _update_integration_request(self, response, stock_movement_data, doc, status doc.error = "" doc.save() except Exception as e: - frappe.publish_realtime("msgprint", f"Problem while saving Integration Request: {str(e)}", user=frappe.session.user) frappe.log_error(f"Error saving Integration Request: {str(e)}") else: self.create_integration_request(stock_movement_data, str(response),'Null',doc, status=status) @@ -53,7 +52,6 @@ def post_stock_movement(self, stock_movement_data, doc): response_data = response.json() if response_data.get("success")==False: try: - frappe.publish_realtime("msgprint", f"Failed Check on:
{str(response_data)}
", user=frappe.session.user) self._update_integration_request(response_data, stock_movement_data,doc, status="Failed") except Exception as e: frappe.log_error(f"Error while creating Integration Request: {str(e)}") diff --git a/burundi_compliance/burundi_compliance/api_classes/base.py b/burundi_compliance/burundi_compliance/api_classes/base.py index ef4d2af..efac183 100644 --- a/burundi_compliance/burundi_compliance/api_classes/base.py +++ b/burundi_compliance/burundi_compliance/api_classes/base.py @@ -13,7 +13,7 @@ def authenticate(self, max_retries=1): try: return self.authenticate_with_retry() except AuthenticationError as auth_error: - time.sleep(10) + time.sleep(5) def authenticate_with_retry(self): auth_details = self.get_auth_details() diff --git a/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html index 4156256..5916fcb 100644 --- a/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html +++ b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html @@ -212,7 +212,7 @@

Le client

Nature de l’article ou service QUANTITE PU - PVHTVA + PVHTVA(BIF) @@ -228,17 +228,17 @@

Le client

TOTAL HTVA: - Fr. {{ '{:,.0f}'.format(doc.base_total | round) }} + {{ '{:,.0f}'.format(doc.base_total | round) }} {% if doc.exempt_from_sales_tax == 0 %} TVA: - Fr. {{ '{:,.0f}'.format(doc.base_total_taxes_and_charges | round) }} + {{ '{:,.0f}'.format(doc.base_total_taxes_and_charges | round) }} {% endif %} Total TVAC: - Fr. {{ '{:,.0f}'.format(doc.base_grand_total | round) }} + {{ '{:,.0f}'.format(doc.base_grand_total | round) }}