temp fix #5041
This commit is contained in:
parent
41ba95c6cc
commit
e4f7c8bb77
|
|
@ -261,6 +261,14 @@ class Order extends Model implements OrderContract
|
|||
*/
|
||||
public function canCancel(): bool
|
||||
{
|
||||
if ($this->status == 'cashondelivery' && core()->getConfigData('sales.paymentmethods.cashondelivery.generate_invoice')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->status == 'moneytransfer' && core()->getConfigData('sales.paymentmethods.moneytransfer.generate_invoice')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->status === self::STATUS_FRAUD) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue