Add trade-in categories #66
This commit is contained in:
parent
612479695d
commit
cc132288f8
2 changed files with 6 additions and 3 deletions
|
|
@ -4,11 +4,13 @@ namespace App\Ramcar;
|
||||||
|
|
||||||
class TradeInType extends NameValue
|
class TradeInType extends NameValue
|
||||||
{
|
{
|
||||||
const MOTOLITE = 'motolite';
|
const PREMIUM = 'premium';
|
||||||
const OTHER = 'other';
|
const MOTOLITE = 'motolite';
|
||||||
|
const OTHER = 'other';
|
||||||
|
|
||||||
const COLLECTION = [
|
const COLLECTION = [
|
||||||
'motolite' => 'Motolite',
|
'premium' => 'Premium',
|
||||||
|
'motolite' => 'Non-premium',
|
||||||
'other' => 'Other',
|
'other' => 'Other',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ class InvoiceCreator
|
||||||
|
|
||||||
public function getTradeInRate($trade_in)
|
public function getTradeInRate($trade_in)
|
||||||
{
|
{
|
||||||
|
// TODO: modify this with the prices based on size
|
||||||
if ($trade_in == 'motolite')
|
if ($trade_in == 'motolite')
|
||||||
return self::TIRATE_MOTOLITE;
|
return self::TIRATE_MOTOLITE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue