@extends('garage.layouts.app') @section('title', ($glOrder ?? 'Order').' vouchers') @section('content')
Advance journal: Dr Orders Account, Cr Customer. Editing the order and saving again updates the same active voucher (no duplicate).
| Purpose | Voucher | Date | Type | Status | Amount | Action |
|---|---|---|---|---|---|---|
| {{ str_replace('_', ' ', (string) ($v->purpose ?? 'order')) }} | {{ $v->voucher_no }} | {{ $v->voucher_date }} | {{ $v->voucher_type }} | {{ $v->status ?? '—' }} | {{ number_format((float) ($v->total_amount ?? $v->link_amount ?? 0), 2) }} | Open |
| No vouchers linked to this {{ strtolower($glOrder ?? 'order') }}. @if(isset($repairOrder->advance_amount) && (float) $repairOrder->advance_amount > 0) Advance is recorded — edit the order and save again to post the journal. @endif | ||||||