Skip to content

Commit

Permalink
Fix summary update (#172)
Browse files Browse the repository at this point in the history
* Delete purchase_invoice, line_items on failed exports from hh2, type-check for current_state

* Fix the updation of accounting summary
  • Loading branch information
Hrishabh17 authored May 24, 2024
1 parent 221e8a9 commit 30b65c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/sage300/exports/direct_cost/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def poll_operation_status(workspace_id: int, last_export: bool):
accounting_export.exported_at = datetime.now()
accounting_export.save()

if last_export:
update_accounting_export_summary(workspace_id=workspace_id)

resolve_errors_for_exported_accounting_export(accounting_export)

if last_export:
update_accounting_export_summary(workspace_id=workspace_id)
4 changes: 2 additions & 2 deletions apps/sage300/exports/purchase_invoice/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ def poll_operation_status(workspace_id: int, last_export: bool):
accounting_export.save()
resolve_errors_for_exported_accounting_export(accounting_export)

if last_export:
update_accounting_export_summary(workspace_id=workspace_id)
if last_export:
update_accounting_export_summary(workspace_id=workspace_id)

0 comments on commit 30b65c8

Please sign in to comment.