Add trade-in categories #66

This commit is contained in:
Kendrick Chan 2018-04-03 11:31:11 +08:00
parent 612479695d
commit cc132288f8
2 changed files with 6 additions and 3 deletions

View file

@ -4,11 +4,13 @@ namespace App\Ramcar;
class TradeInType extends NameValue
{
const MOTOLITE = 'motolite';
const OTHER = 'other';
const PREMIUM = 'premium';
const MOTOLITE = 'motolite';
const OTHER = 'other';
const COLLECTION = [
'motolite' => 'Motolite',
'premium' => 'Premium',
'motolite' => 'Non-premium',
'other' => 'Other',
];
}

View file

@ -37,6 +37,7 @@ class InvoiceCreator
public function getTradeInRate($trade_in)
{
// TODO: modify this with the prices based on size
if ($trade_in == 'motolite')
return self::TIRATE_MOTOLITE;