fix(checkout): pull company from intake_data (compliance has no customer_company col)
compliance_orders stores company in intake_data JSON, not a column; read it from there (company/legal_name/entity_name) with graceful fallback. Fix e2e test seed accordingly.
This commit is contained in:
parent
9987b1e30d
commit
3c65dd8748
2 changed files with 15 additions and 3 deletions
|
|
@ -25,9 +25,10 @@ try {
|
|||
await pool.query(
|
||||
`INSERT INTO compliance_orders
|
||||
(order_number, service_slug, service_name, customer_name, customer_email,
|
||||
customer_company, payment_method, payment_status, total_cents, service_fee_cents)
|
||||
payment_method, payment_status, total_cents, service_fee_cents, intake_data)
|
||||
VALUES ($1,'dot-drug-alcohol','DOT Drug & Alcohol Compliance Program',
|
||||
'E2E Tester','${EMAIL}','E2E Co','paypal','pending_payment',14900,14900)`,
|
||||
'E2E Tester','${EMAIL}','paypal','pending_payment',14900,14900,
|
||||
'{"company":"E2E Co"}'::jsonb)`,
|
||||
[ORDER],
|
||||
);
|
||||
ok(`seeded pending compliance order ${ORDER}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue