08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
|
|
@ -32,8 +32,10 @@ class UserPaymentCredits
|
|||
}
|
||||
|
||||
public function addUserCreditItem($userBusiness)
|
||||
{
|
||||
$date = HTMLHelper::getMonth($userBusiness->month).' '.$userBusiness->year;
|
||||
{
|
||||
//HTMLHelper::getMonth($userBusiness->month)
|
||||
|
||||
$date = $userBusiness->month.'#'.$userBusiness->year;
|
||||
|
||||
if($userBusiness->commission_shop_sales > 0){
|
||||
if($this->hasNotUserCreditItem($userBusiness, 1)){
|
||||
|
|
@ -41,7 +43,9 @@ class UserPaymentCredits
|
|||
'user_id' => $userBusiness->user_id,
|
||||
'user_business_id' => $userBusiness->id,
|
||||
'credit' => $userBusiness->commission_shop_sales,
|
||||
'message' => 'Provision Shop '.$date,
|
||||
'message' => 'payment.commission_shop#'.$date,
|
||||
'from_month' => $userBusiness->month,
|
||||
'from_year' => $userBusiness->year,
|
||||
'status' => 1,
|
||||
]);
|
||||
}
|
||||
|
|
@ -52,7 +56,9 @@ class UserPaymentCredits
|
|||
'user_id' => $userBusiness->user_id,
|
||||
'user_business_id' => $userBusiness->id,
|
||||
'credit' => $userBusiness->commission_pp_total,
|
||||
'message' => 'Provision Payline '.$date,
|
||||
'message' => 'payment.commission_payline#'.$date,
|
||||
'from_month' => $userBusiness->month,
|
||||
'from_year' => $userBusiness->year,
|
||||
'status' => 2,
|
||||
]);
|
||||
}
|
||||
|
|
@ -63,7 +69,9 @@ class UserPaymentCredits
|
|||
'user_id' => $userBusiness->user_id,
|
||||
'user_business_id' => $userBusiness->id,
|
||||
'credit' => $userBusiness->commission_growth_total,
|
||||
'message' => 'Provision Wachstumsbonus '.$date,
|
||||
'message' => 'payment.commission_growth_bonus#'.$date,
|
||||
'from_month' => $userBusiness->month,
|
||||
'from_year' => $userBusiness->year,
|
||||
'status' => 5,
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue