// Stage 2 for erp_project, second process: invoice_to_credit. Run from the Manager root, one instruction per line.
// Lines starting with // are notes for the reader. Ask the 🔴 decisions in requirements.md (R2, R8, R27) when implementing.
// The project erp_project/ exists (order_to_credit). This process takes over two values order_to_credit only read:
// c_orderline.qtyinvoiced (R25) and c_bpartner.so_creditused (R27).

add the tables of invoice_to_credit to erp_project (python erp_project_modernization/build_dev_db.py invoice_to_credit --into erp_project/database/db.sqlite)

apply erp_project_modernization/invoice_to_credit/schema_changes.sql to erp_project, and rebuild its models (keep the relationship declared for order_to_credit R10, and declare the one for R10 here: c_invoicelinetax to its c_invoicetax on c_invoice_id, c_tax_id, recalculate = 'Y')

implement requirements erp_project_modernization/invoice_to_credit

create logic diagram for each requirement

create tests from rules, using default names

run the tests (ALL processes: order_to_credit and invoice_to_credit; the regression check)

run the requirements traceability report
