Revize 6e7f71f2
Přidáno uživatelem Ondřej Fibich před téměř 5 roky(ů)
application/controllers/works.php | ||
---|---|---|
try
|
||
{
|
||
// calculate suggested amount
|
||
$suggest_amount =
|
||
$form_data['hours'] * $form_data['payment_per_hour'] +
|
||
$form_data['km'] * $form_data['price_per_kilometre'];
|
||
$suggest_amount = $form_data['hours'] * $form_data['payment_per_hour'];
|
||
if (!empty($form_data['km']) && !empty($form_data['price_per_kilometre']))
|
||
{
|
||
$suggest_amount += $form_data['km'] * $form_data['price_per_kilometre'];
|
||
}
|
||
|
||
// creates new work
|
||
$work = new Job_Model();
|
Také k dispozici: Unified diff
Issue #1139: Fix work adding on PHP 7.3 [develop]