fixed order error

This commit is contained in:
2026-05-28 13:13:06 +03:30
parent 1a62630b6b
commit e86ba672ea
+1 -1
View File
@@ -368,7 +368,7 @@ class MontzarService
$providerOrderId = $parsed['provider_id'] ?? null;
if (isset($data['order']) && $data['order'] instanceof Order) {
if ($providerOrderId !== null) {
if ($providerOrderId !== null && Schema::hasColumn('orders', 'provider_id')) {
$data['order']->provider_id = $providerOrderId;
}