Resolve "Bug in employee discount computation" #893
1 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ class InvoiceCreator
|
||||||
$discount = round($total['sell_price'] * $rate, 2);
|
$discount = round($total['sell_price'] * $rate, 2);
|
||||||
break;
|
break;
|
||||||
case DiscountApply::OPL:
|
case DiscountApply::OPL:
|
||||||
$discount = round($total['sell_price'] * 0.6 / 0.7 * $rate, 2);
|
// $discount = round($total['sell_price'] * 0.6 / 0.7 * $rate, 2);
|
||||||
|
$discount = round($total['sell_price'] * (1 - 1.5 / 0.7 * $rate), 2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue