|
@@ -1201,7 +1201,9 @@ sql
|
|
|
$date = $month ?: date("Y-m");
|
|
$date = $month ?: date("Y-m");
|
|
|
if ($isToB) $type = "|B|";
|
|
if ($isToB) $type = "|B|";
|
|
|
else $type = "|C|";
|
|
else $type = "|C|";
|
|
|
- if (!Cache::has($date . $type . $owner)) $this->orderQuantityCompensationLogic($owner);
|
|
|
|
|
|
|
+ if (!Cache::has($date . $type . $owner)) {
|
|
|
|
|
+ $this->orderQuantityCompensationLogic($owner, null, $date);
|
|
|
|
|
+ }
|
|
|
return Cache::get($date . $type . $owner);
|
|
return Cache::get($date . $type . $owner);
|
|
|
}
|
|
}
|
|
|
|
|
|