Bug #11: For customer 35131752 ('kd'), the 15% e-conomic discount was
configured on the customer but never applied to the draft invoice line
items. The customer discount was only used in the flag/preview service for
expected price calculations, not when actually building the draft invoice.
Changes:
- economicCustomers.php: log swallowed missing-currency-price errors so
silently-missing discounts (like customer 35131752) become visible in
the application log instead of vanishing.
- economic_invoice_draft.php: thread the customer discount percentage
through addOrderItemLines/addOrderItemLine and apply it at the line
level (e-conomic's draft invoice line API requires per-line
discountPercentage; an aggregate TotDiscount line is ignored when the
customer has a per-line discount configured).
- economic_invoices_draft_endpoint.php: forward the customer discount
percentage to the draft builder.
- collected_order_invoices_o.php: resolve the customer discount via
Redis cache + e-conomicCustomers, then pass it to add_orders.
- Tests: new EconomicInvoiceDraftCustomerDiscountTest covering the
customer 35131752 15% case, plus updates to the existing wiring tests
to account for the new parameter and the customer-discount guard on
the aggregate TotDiscount line.