Skip to content

Rewrite on-disk order/invoice/bom.json after Executor execution #190

Description

@JEJodesty

order.json/invoice.json/bom.json under data/input/data/output are only ever written before
Executor.execute() runs (by Service.initBOMcar()/getEnhancedBom()), never rewritten after.
Their order_cid value matches the final Invoice's, but the files still only reflect the bootstrap-stage BOM/Invoice/log shape (e.g. log_cid: null) rather than the fully executed one.

Related: the following can where the post-execution write-back is added

AC:

  • After Executor.execute()/Service.execute() return, the final bom/invoice/order are written
    back to their on-disk paths (data/output/bom.json, data/output/invoice.json,
    data/input/order.json), overwriting the bootstrap-stage versions
  • docs/DEMO.md/docs/TEST.md are updated if the on-disk file semantics change as a result

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions