Updates to 03-2025
This commit is contained in:
parent
6167273a48
commit
9b54eb0512
348 changed files with 34535 additions and 5774 deletions
|
|
@ -89,6 +89,11 @@ class Payment
|
|||
return '<span class="badge badge-pill badge-'.self::getFormattedTxactionColor($shopping_order->txaction).'">'.self::getFormattedTxaction($shopping_order->txaction).'</span>';
|
||||
}
|
||||
|
||||
public static function getPaymentForTypeBadge(ShoppingOrder $shopping_order){
|
||||
return '<span class="badge badge-pill badge-'.$shopping_order->getPaymentForColor().'">'.$shopping_order->getPaymentForType().'</span>';
|
||||
|
||||
}
|
||||
|
||||
public static function getShoppingPaymentBadge(ShoppingPayment $shopping_payment){
|
||||
if($shopping_payment->mode === 'test'){
|
||||
return '<span class="badge badge-pill badge-default">'.strtoupper($shopping_payment->mode).' - '.self::getFormattedTxaction($shopping_payment->txaction).'</span>';
|
||||
|
|
@ -207,14 +212,13 @@ class Payment
|
|||
}
|
||||
|
||||
}
|
||||
//if the order has action
|
||||
if($shopping_order->shopping_user->is_from === 'user_order' && $shopping_order->shopping_order_margin){
|
||||
//is margin -> set paid
|
||||
$shopping_order->shopping_order_margin->paid = true;
|
||||
$shopping_order->shopping_order_margin->save();
|
||||
}
|
||||
|
||||
}
|
||||
//if the order has action
|
||||
if(($shopping_order->shopping_user->is_from === 'user_order' || $shopping_order->shopping_user->is_from === 'shopping') && $shopping_order->shopping_order_margin){
|
||||
//is margin -> set paid
|
||||
$shopping_order->shopping_order_margin->order_paid = true;
|
||||
$shopping_order->shopping_order_margin->save();
|
||||
}
|
||||
return $send_link;
|
||||
}
|
||||
|
||||
|
|
@ -326,6 +330,14 @@ class Payment
|
|||
}
|
||||
}
|
||||
|
||||
public static function handelUserShopOrder(ShoppingOrder $shopping_order){
|
||||
//no user shop
|
||||
if($shopping_order->payment_for !== 8 || !$shopping_order->user_shop){
|
||||
return;
|
||||
}
|
||||
// need something to do?
|
||||
}
|
||||
|
||||
//add or remove form credit,
|
||||
//when done, put it back SalesController
|
||||
public static function handelUserPayCreditsPromotion(PromotionUserOrder $promotion_user_order, $do){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue