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/tax/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage sale * @copyright 2001-2014 Bitrix */ namespace Bitrix\Sale\Tax; use Bitrix\Sale; /** * Class RateLocationTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_RateLocation_Query query() * @method static EO_RateLocation_Result getByPrimary($primary, array $parameters = []) * @method static EO_RateLocation_Result getById($id) * @method static EO_RateLocation_Result getList(array $parameters = []) * @method static EO_RateLocation_Entity getEntity() * @method static \Bitrix\Sale\Tax\EO_RateLocation createObject($setDefaultValues = true) * @method static \Bitrix\Sale\Tax\EO_RateLocation_Collection createCollection() * @method static \Bitrix\Sale\Tax\EO_RateLocation wakeUpObject($row) * @method static \Bitrix\Sale\Tax\EO_RateLocation_Collection wakeUpCollection($rows) */ final class RateLocationTable extends Sale\Location\Connector { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_sale_tax2location'; } public static function getLinkField() { return 'TAX_RATE_ID'; } public static function getTargetEntityName() { return 'Bitrix\Sale\Tax\Rate'; } public static function getLocationLinkField() { return 'LOCATION_CODE'; } public static function getMap() { return array( 'TAX_RATE_ID' => array( 'data_type' => 'integer', 'required' => true, 'primary' => true ), 'LOCATION_CODE' => array( 'data_type' => 'string', 'required' => true, 'primary' => true ), 'LOCATION_TYPE' => array( 'data_type' => 'string', 'default_value' => self::DB_LOCATION_FLAG, 'required' => true, 'primary' => true ), // virtual 'LOCATION' => array( 'data_type' => '\Bitrix\Sale\Location\Location', 'reference' => array( '=this.LOCATION_CODE' => 'ref.CODE', '=this.LOCATION_TYPE' => array('?', self::DB_LOCATION_FLAG) ) ), 'GROUP' => array( 'data_type' => '\Bitrix\Sale\Location\Group', 'reference' => array( '=this.LOCATION_CODE' => 'ref.CODE', '=this.LOCATION_TYPE' => array('?', self::DB_GROUP_FLAG) ) ), 'RATE' => array( 'data_type' => static::getTargetEntityName(), 'reference' => array( '=this.TAX_RATE_ID' => 'ref.ID' ) ), ); } }