Compare commits
4 Commits
4ddbb14d09
...
a842618d20
Author | SHA1 | Date | |
---|---|---|---|
a842618d20 | |||
1e1f0a6989 | |||
fbf7842c17 | |||
64acc93c0d |
@ -50,16 +50,14 @@
|
|||||||
<x-leenooks::form.select name="product_id" icon="fa-list" label="Product" :helper="$o->product->category_name"
|
<x-leenooks::form.select name="product_id" icon="fa-list" label="Product" :helper="$o->product->category_name"
|
||||||
:value="$o->product_id"
|
:value="$o->product_id"
|
||||||
:options="Product::get()
|
:options="Product::get()
|
||||||
->filter(fn($item)=>($item->category === $o->product->category))
|
->filter(fn($item)=>$item->active && ($item->category === $o->product->category))
|
||||||
->sortBy('name')
|
->sortBy('name')
|
||||||
->map(fn($item)=>[
|
->map(fn($item)=>[
|
||||||
'id'=>$item->id,
|
'id'=>$item->id,
|
||||||
'value'=>sprintf('%s $%3.2f [%s/%3.2f]',
|
'value'=>sprintf('%s (%3.2f/%3.2f)',
|
||||||
$item->name,
|
$item->name,
|
||||||
$o->account->taxed($item->base_charge)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY),
|
$o->account->taxed($item->base_charge)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY),
|
||||||
$item->supplied->name,
|
$o->account->taxed($item->base_cost)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY))])" :required="true"/>
|
||||||
$o->account->taxed($item->base_cost)*Invoice::billing_change($item->billing_interval,Invoice::BILL_MONTHLY),
|
|
||||||
)])" :required="true"/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user