@php
$fmt = function ($n) {
$n = (float) $n;
return number_format($n, fmod($n, 1) == 0 ? 2 : 4);
};
$currency = $po->currency ?: '';
$money = function ($n) use ($fmt, $currency) {
return trim($currency.' '.$fmt($n));
};
@endphp
To,
{{ $po->vendor_name ?? 'Valued Supplier' }}
@if($po->vendor_address ?? null)
{{ $po->vendor_address }}
@endif
@if($po->vendor_gst ?? null)
GST/VAT: {{ $po->vendor_gst }}
@endif
Dear Sir/Mam,
We are pleased to place the following purchase order with you for the supply of goods/services
as per the specifications and terms mentioned below.
@if($po->items && $po->items->count() > 0)
| # |
Item / Description |
SKU |
Qty |
Unit |
Price/Unit |
Discount |
Tax % |
Total |
@forelse($po->items as $i => $item)
| {{ $i + 1 }} |
{{ $item->product }}
@if($item->description)
{{ $item->description }}
@endif
|
{{ $item->sku ?? '-' }} |
{{ $fmt($item->quantity) }} |
{{ $item->unit ?? '-' }} |
{{ $money($item->unit_price) }} |
{{ $money($item->discount) }} |
{{ $item->tax_percent ?? '-' }} |
{{ $money($item->total) }} |
@empty
| No items |
@endforelse
@endif
@if($terms && $terms->count() > 0)
Terms & Conditions
@foreach($terms as $term)
- {{ $term->term }}
@endforeach
@endif
Price Summary
Subtotal
{{ $money($po->subtotal) }}
@if((float) $po->discount_total != 0)
Discount
- {{ $money($po->discount_total) }}
@endif
@if((float) $po->shipping_charges != 0)
Shipping / Freight
{{ $money($po->shipping_charges) }}
@endif
@if((float) $po->shipping_tax_amount != 0)
Shipping Tax{{ $po->shipping_tax_percent ? ' ('.$po->shipping_tax_percent.')' : '' }}
{{ $money($po->shipping_tax_amount) }}
@endif
@foreach($po->charges as $charge)
{{ $charge->label }}
{{ $money($charge->amount) }}
@if((float) $charge->tax_amount != 0)
{{ $charge->label }} Tax{{ $charge->tax_percent ? ' ('.$charge->tax_percent.')' : '' }}
{{ $money($charge->tax_amount) }}
@endif
@endforeach
@if((float) $po->taxable_amount != 0)
Taxable Amount
{{ $money($po->taxable_amount) }}
@endif
@if((float) $po->cgst != 0)
CGST
{{ $money($po->cgst) }}
@endif
@if((float) $po->sgst != 0)
SGST
{{ $money($po->sgst) }}
@endif
@if((float) $po->igst != 0)
IGST
{{ $money($po->igst) }}
@endif
@if((float) $po->other_taxes != 0)
Other Taxes
{{ $money($po->other_taxes) }}
@endif
Grand Total
{{ $money($po->grand_total) }}
@if($po->amount_in_words)
In Words: {{ $po->amount_in_words }}
@endif
@php
$hasDelivery = $po->delivery_method || $po->delivery_location || $po->freight_terms || $po->packaging_requirements;
$hasPayment = $po->payment_method || $po->bank_name || $po->bank_account_number;
@endphp
@if($hasDelivery || $hasPayment)
@if($hasDelivery)
Delivery Terms
@if($po->delivery_method)
Method: {{ $po->delivery_method }}
@endif
@if($po->delivery_location)
Location: {{ $po->delivery_location }}
@endif
@if($po->freight_terms)
Freight Terms: {{ $po->freight_terms }}
@endif
@if($po->packaging_requirements)
Packaging: {{ $po->packaging_requirements }}
@endif
@if($po->bill_to_address)
Bill To: {{ $po->bill_to_address }}
@endif
@if($po->ship_to_address)
Ship To: {{ $po->ship_to_address }}
@endif
@if($po->delivery_contact)
Delivery Contact: {{ $po->delivery_contact }}
@endif
@endif
@if($hasPayment)
Payment Details
@if($po->payment_method)
Method: {{ $po->payment_method }}
@endif
@if($po->payment_terms)
Terms: {{ $po->payment_terms }}
@endif
@if($po->bank_name)
Bank: {{ $po->bank_name }}
@endif
@if($po->bank_account_name)
Account Name: {{ $po->bank_account_name }}
@endif
@if($po->bank_account_number)
Account No.: {{ $po->bank_account_number }}
@endif
@if($po->bank_ifsc_swift)
IFSC/SWIFT: {{ $po->bank_ifsc_swift }}
@endif
@endif
@endif
@if($po->notes)
Notes / Special Instructions
{{ $po->notes }}
@endif
Please confirm your acceptance of this purchase order by returning a signed copy.
Authorization
For {{ strtoupper($account->name ?? config('app.name')) }}
Prepared By (Name / Designation / Date)
Approved By (Name / Designation / Date)
Authorized Signature & Stamp
Supplier Acknowledgement
We acknowledge and accept the above Purchase Order and agree to supply the goods/services according to the stated terms.
Authorized Person (Name / Designation)
Signature & Stamp / Date
Thank You
From, {{ $account->name ?? config('app.name') }}
@if($po->creator)
{{ $po->creator->name }}
@if($po->creator->phone)
{{ $po->creator->country_code }}{{ $po->creator->phone }}
@endif
@endif