Skip to content

Commit

Permalink
feat(minor): add raw data to doc to allow scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Apr 19, 2022
1 parent 2727166 commit 26e2903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ecommerce_integrations/unicommerce/invoice.py
Expand Up @@ -382,6 +382,7 @@ def create_sales_invoice(
si.delivery_date = so.delivery_date
si.ignore_pricing_rule = 1
si.update_stock = update_stock
si.flags.raw_data = si_data
si.insert()

_verify_total(si, si_data)
Expand Down
1 change: 1 addition & 0 deletions ecommerce_integrations/unicommerce/order.py
Expand Up @@ -202,6 +202,7 @@ def _create_order(order: UnicommerceOrder, customer) -> None:
}
)

so.flags.raw_data = order
so.save()
so.submit()

Expand Down

0 comments on commit 26e2903

Please sign in to comment.