Set service types to battery sales, warranty replacement, jumpstart, and warranty claim. #458
This commit is contained in:
parent
1dabdee4b0
commit
74039a8011
2 changed files with 7 additions and 1 deletions
|
|
@ -6,11 +6,13 @@ class CMBServiceType extends NameValue
|
||||||
{
|
{
|
||||||
const BATTERY_REPLACEMENT_NEW = 'battery_new';
|
const BATTERY_REPLACEMENT_NEW = 'battery_new';
|
||||||
const BATTERY_REPLACEMENT_WARRANTY = 'battery_warranty';
|
const BATTERY_REPLACEMENT_WARRANTY = 'battery_warranty';
|
||||||
|
const WARRANTY_CLAIM = 'warranty_claim';
|
||||||
const JUMPSTART = 'jumpstart';
|
const JUMPSTART = 'jumpstart';
|
||||||
|
|
||||||
const COLLECTION = [
|
const COLLECTION = [
|
||||||
'battery_new' => 'Battery Sales',
|
'battery_new' => 'Battery Sales',
|
||||||
'battery_warranty' => 'Under Warranty',
|
'battery_warranty' => 'Warranty Replacement',
|
||||||
|
'warranty_claim' => 'Warranty Claim',
|
||||||
'jumpstart' => 'Jumpstart',
|
'jumpstart' => 'Jumpstart',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,10 @@ class CMBInvoiceGenerator implements InvoiceGeneratorInterface
|
||||||
case CMBServiceType::BATTERY_REPLACEMENT_WARRANTY:
|
case CMBServiceType::BATTERY_REPLACEMENT_WARRANTY:
|
||||||
$this->processWarranty($total, $criteria, $invoice);
|
$this->processWarranty($total, $criteria, $invoice);
|
||||||
break;
|
break;
|
||||||
|
case CMBServiceType::WARRANTY_CLAIM:
|
||||||
|
// TODO: this will change once we confirm what needs to be computed
|
||||||
|
$this->processOtherServices($total, $invoice, $stype);
|
||||||
|
break;
|
||||||
//case ServiceType::POST_RECHARGED:
|
//case ServiceType::POST_RECHARGED:
|
||||||
// $this->processRecharge($total, $invoice);
|
// $this->processRecharge($total, $invoice);
|
||||||
// break;
|
// break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue