add: more tests
This commit is contained in:
parent
fcd76cf130
commit
3d08b14f11
6 changed files with 154 additions and 36 deletions
|
@ -8,6 +8,8 @@ use RuntimeException;
|
|||
|
||||
class CsvAgentCost
|
||||
{
|
||||
public $agent_cost_calc;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->internal_percentage_to_deduct = (float) getenv('PRICE_INTERNAL_PERCENTAGE_TO_DEDUCT', null);
|
||||
|
|
|
@ -6,13 +6,11 @@ use App\Http\Controllers\CsvController\CsvCostCalc\CsvCostCalc;
|
|||
|
||||
class CsvDataHandling
|
||||
{
|
||||
private $calculate_agent_cost;
|
||||
private $csv_cost_calc;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->calculate_agent_cost = env('GITEA_CALCULATE_AGENT_COST');
|
||||
$this->csv_cost_calc = new CsvCostCalc();
|
||||
|
||||
}
|
||||
|
||||
function handle_agent_issue($agents_issue_time, $time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue