Edit Cash order telling driver to pay with pex card - other issues with instructing drivers to pay? #4661
This commit is contained in:
parent
97281f428a
commit
b0b1dba4ac
@ -2690,7 +2690,14 @@ class Crunchbutton_Order extends Crunchbutton_Order_Trackchange {
|
||||
return 'Do not pay the restaurant';
|
||||
}
|
||||
} else {
|
||||
if( $this->pay_type == 'cash' ){
|
||||
$driver = c::user();
|
||||
if( $driver->id_admin && $driver->hasPexCard() ){
|
||||
return 'Pay restaurant with your own cash, not PEX';
|
||||
} else {
|
||||
return 'Pay the restaurant with cash';
|
||||
}
|
||||
} else {
|
||||
if( $driver->id_admin && $driver->hasPexCard() ){
|
||||
return 'Pay the restaurant with PEX card';
|
||||
} else {
|
||||
@ -2698,6 +2705,7 @@ class Crunchbutton_Order extends Crunchbutton_Order_Trackchange {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function driverInstructionsFoodStatus(){
|
||||
// https://github.com/crunchbutton/crunchbutton/issues/2463#issue-28386594
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user