User Order all Margins / Checkout
This commit is contained in:
parent
a96d7d5c77
commit
224bf9e951
92 changed files with 3551 additions and 561 deletions
34
app/Services/Yard/Commission.php
Normal file
34
app/Services/Yard/Commission.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
namespace App\Services\Yard;
|
||||
|
||||
|
||||
use App\Services\Util;
|
||||
|
||||
class Commission
|
||||
{
|
||||
public $price_net;
|
||||
public $single_price_net;
|
||||
public $single_value_commission;
|
||||
public $single_partner_commission;
|
||||
public $single_amount_commission;
|
||||
public $single_price_net_commission;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->price_net = 0;
|
||||
$this->single_price_net = 0;
|
||||
$this->single_amount_commission = 0;
|
||||
$this->single_partner_commission = 0;
|
||||
$this->single_value_commission = 0;
|
||||
$this->single_price_net_commission = 0;
|
||||
}
|
||||
|
||||
public function isCommission(){
|
||||
return ($this->single_value_commission > 0) ? true : false;
|
||||
}
|
||||
|
||||
public function getFormatted($key)
|
||||
{
|
||||
return isset($this->{$key}) ? Util::formatNumber($this->{$key}) : "";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue