Change pricing for tire repair service #161
This commit is contained in:
parent
397f3d144a
commit
2fe3448e8f
1 changed files with 16 additions and 1 deletions
|
|
@ -290,6 +290,20 @@ class InvoiceCreator
|
|||
$total['vat'] = 216;
|
||||
}
|
||||
|
||||
public function processTireRepair(&$total, $invoice)
|
||||
{
|
||||
$item = new InvoiceItem();
|
||||
$item->setInvoice($invoice)
|
||||
->setTitle('Service - Flat Tire')
|
||||
->setQuantity(1)
|
||||
->setPrice(200.00);
|
||||
$invoice->addItem($item);
|
||||
|
||||
$total['total_price'] = 200;
|
||||
$total['vat_ex_price'] = 176;
|
||||
$total['vat'] = 24;
|
||||
}
|
||||
|
||||
public function processRefuel(&$total, $invoice, $ftype)
|
||||
{
|
||||
$item = new InvoiceItem();
|
||||
|
|
@ -381,7 +395,8 @@ class InvoiceCreator
|
|||
$this->processReplacement($total, $invoice);
|
||||
break;
|
||||
case ServiceType::TIRE_REPAIR:
|
||||
$this->processOtherServices($total, $invoice, $stype);
|
||||
$this->processTireRepair($total, $invoice);
|
||||
// $this->processOtherServices($total, $invoice, $stype);
|
||||
break;
|
||||
case ServiceType::OVERHEAT_ASSISTANCE:
|
||||
$this->processOverheat($total, $invoice);
|
||||
|
|
|
|||
Loading…
Reference in a new issue