From: fomichev Date: Mon, 28 Apr 2025 09:54:52 +0000 (+0300) Subject: Merge branch 'refs/heads/develop' into feature_fomichev_erp-412_add_delivery_to_ready... X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=b68318ff546b2f31cd250229cdd5d11ac9bc86cd;p=erp24_rep%2Fyii-erp24%2F.git Merge branch 'refs/heads/develop' into feature_fomichev_erp-412_add_delivery_to_readyto_1c # Conflicts: # erp24/records/MarketplaceOrders.php --- b68318ff546b2f31cd250229cdd5d11ac9bc86cd diff --cc erp24/records/MarketplaceOrders.php index 96d757d5,71a46927..095d5038 --- a/erp24/records/MarketplaceOrders.php +++ b/erp24/records/MarketplaceOrders.php @@@ -35,8 -35,7 +35,9 @@@ use Yii * @property string|null $telegram_error ошибка телеграмма * @property string|null $status_processing_1c Статус обработки заказа в 1С * @property string|null $order_link Ссылка на заказ в МП + * @property string|null $delivery_to Сроки доставки заказа + * @property int $readyto_1c Готовность к отправке в 1С: 0 - не готов, 1 - готов. Зависит от наполения $delivery_to + * @property string|null $order_photo Ссылка на фото собранного заказа для МП */ class MarketplaceOrders extends \yii\db\ActiveRecord { @@@ -85,13 -86,13 +88,15 @@@ { return [ [['store_id', 'warehouse_guid', 'returned_at', 'return_data', 'raw_data', 'guid'], 'default', 'value' => null], - [['cancel_requested', 'status_telegram'], 'default', 'value' => 0], + [['cancel_requested', 'status_telegram', 'readyto_1c'], 'default', 'value' => 0], [['marketplace_order_id', 'marketplace_id', 'marketplace_name', 'status_id', 'substatus_id', 'creation_date', 'updated_at', 'total', 'delivery_total', 'buyer_total_before_discount', 'tax_system', 'payment_type', 'payment_method'], 'required'], + [['store_id', 'status_id', 'substatus_id', 'fake', 'cancel_requested', 'status_1c', 'status_processing_1c', 'order_link', 'delivery_to'], 'default', 'value' => null], + [['store_id', 'status_id', 'substatus_id', 'fake', 'cancel_requested', 'status_1c', 'status_processing_1c', 'order_link', 'order_photo'], 'default', 'value' => null], [[ 'fake'], 'default', 'value' => 0], - [['store_id', 'status_id', 'substatus_id', 'fake', 'cancel_requested', 'status_1c', 'marketplace_id', 'status_telegram', 'status_processing_1c'], 'integer'], + [['store_id', 'status_id', 'substatus_id', 'fake', 'cancel_requested', 'status_1c', 'marketplace_id', 'status_telegram', 'status_processing_1c', 'readyto_1c'], 'integer'], [['creation_date', 'updated_at', 'returned_at'], 'safe'], + [['return_data', 'raw_data', 'marketplace_name', 'telegram_error', 'order_link', 'delivery_to'], 'string'], + [['return_data', 'raw_data', 'marketplace_name', 'telegram_error', 'order_link', 'order_photo'], 'string'], [['total', 'delivery_total', 'buyer_total_before_discount'], 'number'], [['marketplace_order_id'], 'string', 'max' => 64], [['number_1c'], 'string', 'max' => 100], @@@ -136,8 -137,7 +141,9 @@@ 'telegram_error' => 'Ошибка телеграмма', 'status_processing_1c' => 'Статус обработки заказа в 1С', 'order_link' => 'Ссылка на заказ в МП', + 'delivery_to' => 'Сроки доставки заказа', + 'readyto_1c' => 'Готовность к отправке в 1С', + 'order_photo' => 'Ссылка на фото собранного заказа для МП', ]; }