main system
This commit is contained in:
parent
0baac018a2
commit
a96d7d5c77
115 changed files with 4589 additions and 557 deletions
|
|
@ -16,26 +16,41 @@ class Payment
|
|||
'appointed' => "offen",
|
||||
'failed' => "abbruch",
|
||||
'extern' => "extern",
|
||||
'open' => "offen",
|
||||
'invoice_open' => "Re. offen",
|
||||
'invoice_paid' => "Re. bezahlt",
|
||||
'invoice_non' => "keine Zahlung",
|
||||
'invoice_non' => "Re. keine Zahlung",
|
||||
'non' => "keine Zahlung",
|
||||
'NULL' => 'keine Zahlung',
|
||||
];
|
||||
|
||||
public static $txaction_invoice = [
|
||||
'invoice_open' => "Re. offen",
|
||||
'invoice_paid' => "Re. bezahlt",
|
||||
'invoice_non' => 'keine Zahlung',
|
||||
'open' => "offen",
|
||||
'paid' => "bezahlt",
|
||||
'non' => "keine Zahlung",
|
||||
/*'open_vor' => "Vorkasse offen",
|
||||
'paid_vor' => "Vorkasse bezahlt",
|
||||
'non_vor' => "Vorkasse keine Zahlung",
|
||||
'invoice_open' => "Rechung offen",
|
||||
'invoice_paid' => "Rechung bezahlt",
|
||||
'invoice_non' => 'Rechung keine Zahlung',*/
|
||||
|
||||
];
|
||||
|
||||
public static $txaction_color = [
|
||||
'paid' => "success",
|
||||
'appointed' => "warning",
|
||||
'failed' => "danger",
|
||||
'extern' => "success",
|
||||
'open' => "warning",
|
||||
'paid' => "success",
|
||||
'non' => "danger",
|
||||
'open_vor' => "warning",
|
||||
'paid_vor' => "success",
|
||||
'non_vor' => "danger",
|
||||
'invoice_open' => "warning",
|
||||
'invoice_paid' => "success",
|
||||
'invoice_non' => "failed",
|
||||
'invoice_non' => "danger",
|
||||
|
||||
];
|
||||
|
||||
|
||||
|
|
@ -71,8 +86,9 @@ class Payment
|
|||
}
|
||||
|
||||
|
||||
/* public static function paymentStatusPaidAction(ShoppingOrder $shopping_order, $paid){
|
||||
public static function paymentStatusPaidAction(ShoppingOrder $shopping_order, $paid){
|
||||
$send_link = false;
|
||||
|
||||
$shopping_order->setUserHistoryValue(['status' => 8]);
|
||||
Shop::userOrders();
|
||||
$shopping_order->paid = $paid;
|
||||
|
|
@ -83,6 +99,7 @@ class Payment
|
|||
foreach($shopping_order->shopping_order_items as $shopping_order_item){
|
||||
if($shopping_order_item->product){
|
||||
if($shopping_order_item->product->action){
|
||||
|
||||
$user = User::findOrFail($shopping_order->auth_user_id);
|
||||
$user->save();
|
||||
$send_link = true;
|
||||
|
|
@ -93,12 +110,13 @@ class Payment
|
|||
}
|
||||
foreach ($shopping_order_item->product->action as $do){
|
||||
if($shopping_order_item->product->getActionName($do) === 'payment_for_account'){
|
||||
$user->payment_order_id = $shopping_order_item->product->id; //34
|
||||
// $user->payment_order_id = $shopping_order_item->product->id; //34
|
||||
$user->payment_account = $date;
|
||||
$user->wizard = 100;
|
||||
$user->payment_credit = $shopping_order_item->product->price;
|
||||
$shopping_order->setUserHistoryValue(['status' => 9]);
|
||||
}
|
||||
if($shopping_order_item->product->getActionName($do) === 'payment_for_shop'){
|
||||
/*if($shopping_order_item->product->getActionName($do) === 'payment_for_shop'){
|
||||
$user->payment_order_id = $shopping_order_item->product->id; //35
|
||||
$user->payment_shop = $date;
|
||||
$user->wizard = 100;
|
||||
|
|
@ -115,7 +133,7 @@ class Payment
|
|||
if($shopping_order_item->product->upgrade_to_id){
|
||||
$user->m_level = $shopping_order_item->product->upgrade_to_id;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
$user->save();
|
||||
}
|
||||
}
|
||||
|
|
@ -125,7 +143,7 @@ class Payment
|
|||
}
|
||||
|
||||
return $send_link;
|
||||
}*/
|
||||
}
|
||||
|
||||
public static function paymentStatusSendMail(ShoppingOrder $shopping_order, $shopping_payment, $data){
|
||||
$bcc = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue