Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/lib/internals/ |
Upload File : |
<?php namespace Bitrix\Sale\Internals; use Bitrix\Main; use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); /** * Class ShipmentItemStoreTable * * Fields: * <ul> * <li> ID int mandatory * <li> BASKET_ID int mandatory * <li> BARCODE string(100) optional * <li> STORE_ID int mandatory * <li> QUANTITY double mandatory * <li> DATE_CREATE datetime optional * <li> DATE_MODIFY datetime optional * <li> CREATED_BY int optional * <li> MODIFIED_BY int optional * </ul> * * @package Bitrix\Sale * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_ShipmentItemStore_Query query() * @method static EO_ShipmentItemStore_Result getByPrimary($primary, array $parameters = []) * @method static EO_ShipmentItemStore_Result getById($id) * @method static EO_ShipmentItemStore_Result getList(array $parameters = []) * @method static EO_ShipmentItemStore_Entity getEntity() * @method static \Bitrix\Sale\Internals\EO_ShipmentItemStore createObject($setDefaultValues = true) * @method static \Bitrix\Sale\Internals\EO_ShipmentItemStore_Collection createCollection() * @method static \Bitrix\Sale\Internals\EO_ShipmentItemStore wakeUpObject($row) * @method static \Bitrix\Sale\Internals\EO_ShipmentItemStore_Collection wakeUpCollection($rows) */ class ShipmentItemStoreTable extends Main\Entity\DataManager { /** * Returns DB table name for entity. * * @return string */ public static function getTableName() { return 'b_sale_store_barcode'; } /** * Returns entity map definition. * * @return array */ public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_ID_FIELD'), ), 'ORDER_DELIVERY_BASKET_ID' => array( 'data_type' => 'integer', 'required' => true, 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_ORDER_DELIVERY_BASKET_ID_FIELD'), ), 'ORDER_DELIVERY_BASKET' => array( 'data_type' => 'Bitrix\Sale\Internals\ShipmentItem', 'reference' => array( '=this.ORDER_DELIVERY_BASKET_ID' => 'ref.ID' ) ), 'BASKET_ID' => array( 'data_type' => 'integer', 'required' => true, 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_BASKET_ID_FIELD'), ), 'BARCODE' => array( 'data_type' => 'string', 'validation' => array(__CLASS__, 'validateBarcode'), 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_BARCODE_FIELD'), ), 'MARKING_CODE' => array( 'data_type' => 'string', 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_MARKING_CODE_FIELD'), ), 'STORE_ID' => array( 'data_type' => 'integer', 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_STORE_ID_FIELD'), ), 'QUANTITY' => array( 'data_type' => 'float', 'required' => true, 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_QUANTITY_FIELD'), ), 'DATE_CREATE' => array( 'data_type' => 'datetime', 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_DATE_CREATE_FIELD'), ), 'DATE_MODIFY' => array( 'data_type' => 'datetime', 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_DATE_MODIFY_FIELD'), ), 'CREATED_BY' => array( 'data_type' => 'integer', 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_CREATED_BY_FIELD'), ), 'MODIFIED_BY' => array( 'data_type' => 'integer', 'title' => Loc::getMessage('STORE_BARCODE_ENTITY_MODIFIED_BY_FIELD'), ), ); } /** * Returns validators for BARCODE field. * * @return array */ public static function validateBarcode() { return array( new Main\Entity\Validator\Length(null, 100), ); } }