Money
Money
Pure money columns are unsignedBigInteger cents in DB. Eloquent exposes USD floats via MoneyCast and App\Support\Money.
Orders store aggregates (subtotal, tax_total, grand_total, total_paid, remaining_balance). Detail charges live in order_line_items and order_pricing_snapshots. Status timestamps use order_status_history.
BelongsToCompany models have company_id but there is NO global company scope — filter explicitly with scopeByCompany or where company_id.