|
|
@@ -1428,7 +1428,7 @@ class OrderForm extends Model
|
|
|
|
|
|
try {
|
|
|
$sysConfig = Cache::getSystemConfig();
|
|
|
- $divideLine = (int)$sysConfig['monthPcsPvFxCondition']['VALUE'];
|
|
|
+ $divideLine = (float)$sysConfig['monthPcsPvFxCondition']['VALUE'];
|
|
|
|
|
|
$orderTotalBv = $order->PV;
|
|
|
|
|
|
@@ -1462,6 +1462,10 @@ class OrderForm extends Model
|
|
|
$periodCount = floor($orderTotalBv / $divideLine);
|
|
|
$remainderBv = $orderTotalBv % $divideLine;
|
|
|
|
|
|
+ LoggerTool::notice([
|
|
|
+ $lastAmpPeriod, $startPeriodNum, $divideLine
|
|
|
+ ]);
|
|
|
+
|
|
|
$ampPeriods = [];
|
|
|
for ($i = 1; $i <= $periodCount; $i++) {
|
|
|
$currentBv = $i < $periodCount ? $divideLine : ($divideLine + $remainderBv);
|