1
0
Quellcode durchsuchen

[Fixed] Payment method not set in shortgs payments

Awesome vor 1 Woche
Ursprung
Commit
f5d9226fa0
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      locations/shortgs.qsrc

+ 4 - 4
locations/shortgs.qsrc

@@ -834,8 +834,8 @@ if $ARGS[0] = 'payments':
 	!! Construct payment call
 
 	if $epayments['item_variable'] ! '':
-		$construct_cash = '<a href="exec: money -= <<epayments[''value'']>> & <<$epayments[''item_variable'']>> += <<epayments[''quantity'']>> & gs ''shortgs'', ''paymentcomplete'' ">Cash</a>'
-		$construct_card = '<a href="exec: karta -= <<epayments[''value'']>> & <<$epayments[''item_variable'']>> += <<epayments[''quantity'']>> & gs ''shortgs'', ''paymentcomplete'' ">Card</a>'
+		$construct_cash = '<a href="exec: $epayments[''method''] = ''cash'' & money -= <<epayments[''value'']>> & <<$epayments[''item_variable'']>> += <<epayments[''quantity'']>> & gs ''shortgs'', ''paymentcomplete'' ">Cash</a>'
+		$construct_card = '<a href="exec: $epayments[''method''] = ''card'' & karta -= <<epayments[''value'']>> & <<$epayments[''item_variable'']>> += <<epayments[''quantity'']>> & gs ''shortgs'', ''paymentcomplete'' ">Card</a>'
 	else
 		$construct_cash = '<a href="exec: $epayments[''method''] = ''cash'' & money -= <<epayments[''value'']>> & gs ''shortgs'', ''paymentcomplete'' ">Cash</a>'
 		$construct_card = '<a href="exec: $epayments[''method''] = ''card'' & karta -= <<epayments[''value'']>> & gs ''shortgs'', ''paymentcomplete'' ">Card</a>'
@@ -864,10 +864,10 @@ end
 if $ARGS[0] = 'paymentcomplete':
 	*clr & cla
 
-	'Thank you for your custom. Please come again!'
+	'Thank you for your purchase! We look forward to seeing you again.'
 	*nl
 
-	'You paid ' + epayments['value'] + '<b>₽</b>' + iif ($epayments['method']  = 'cash',' in cash', ' with your bank card') + ' for your ' + $epayments['description']
+	'You paid ' + epayments['value'] + '<b>₽</b>' + iif($epayments['method'] = 'cash', ' in cash', ' with your bank card') + ' for your ' + $epayments['description']
 
 	gs 'stat'
 	!! clean up all the variables