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,11 +2690,19 @@ class Crunchbutton_Order extends Crunchbutton_Order_Trackchange {
|
|||||||
return 'Do not pay the restaurant';
|
return 'Do not pay the restaurant';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$driver = c::user();
|
if( $this->pay_type == 'cash' ){
|
||||||
if( $driver->id_admin && $driver->hasPexCard() ){
|
$driver = c::user();
|
||||||
return 'Pay the restaurant with PEX card';
|
if( $driver->id_admin && $driver->hasPexCard() ){
|
||||||
|
return 'Pay restaurant with your own cash, not PEX';
|
||||||
|
} else {
|
||||||
|
return 'Pay the restaurant with cash';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return 'Pay the restaurant';
|
if( $driver->id_admin && $driver->hasPexCard() ){
|
||||||
|
return 'Pay the restaurant with PEX card';
|
||||||
|
} else {
|
||||||
|
return 'Pay the restaurant';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user