Compare commits

..

4 Commits

Author SHA1 Message Date
4ddbb14d09 Fixes for supplier configuration product links
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 42s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
2025-05-18 22:07:29 +10:00
7fd1ce9584 Add edit supplier products (phone) 2025-05-18 22:07:29 +10:00
ac702397a6 Fixes for invoice rounding, where invoice total was different from reporting 2025-05-18 22:07:29 +10:00
622147d584 Add product selection to service update 2025-05-18 22:07:29 +10:00

View File

@ -50,14 +50,16 @@
<x-leenooks::form.select name="product_id" icon="fa-list" label="Product" :helper="$o->product->category_name"
:value="$o->product_id"
:options="Product::get()
->filter(fn($item)=>$item->active && ($item->category === $o->product->category))
->filter(fn($item)=>($item->category === $o->product->category))
->sortBy('name')
->map(fn($item)=>[
'id'=>$item->id,
'value'=>sprintf('%s (%3.2f/%3.2f)',
'value'=>sprintf('%s $%3.2f [%s/%3.2f]',
$item->name,
$o->account->taxed($item->base_charge)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY),
$o->account->taxed($item->base_cost)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY))])" :required="true"/>
$item->supplied->name,
$o->account->taxed($item->base_cost)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY),
)])" :required="true"/>
</div>
</div>
<hr>