orders I place paid fully by gift card are still charging my credit card a portion of the order #3140
This commit is contained in:
parent
5ed7589aa0
commit
d933656b40
@ -589,7 +589,8 @@ class Crunchbutton_Order extends Cana_Table {
|
||||
|
||||
public function debitFromUserCredit( $id_user ){
|
||||
if( $this->pay_type == 'card' ){
|
||||
Crunchbutton_Credit::debitFromUserCredit( $this->final_price, $id_user, $this->id_restaurant, $this->id_order );
|
||||
$final_price = $this->final_price_plus_delivery_markup;
|
||||
Crunchbutton_Credit::debitFromUserCredit( $final_price, $id_user, $this->id_restaurant, $this->id_order );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user