Advertisement
animdenis

Show_filter_hl

Feb 27th, 2021
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. CModule::IncludeModule('rbs.moyskladstocks');
  2.  
  3. $tableBundles = \Rbs\MoyskladStocks\HlCache\Bundles::getTableInfo();
  4.  
  5. $obUserField  = new \CUserTypeEntity;
  6.  
  7. if((int)$tableBundles['ID'] > 0){
  8.     $rs = \CUserTypeEntity::GetList([], [
  9.         'ENTITY_ID' => 'HLBLOCK_' . $tableBundles['ID']
  10.     ]);
  11.     while($ob = $rs->GetNext()){
  12.         $obUserField->Update($ob['ID'], ['SHOW_FILTER' => 'E']);
  13.     }
  14. }
  15.  
  16. $tableBundles = \Rbs\MoyskladStocks\HlCache\ExtCodes::getTableInfo();
  17.  
  18. if((int)$tableBundles['ID'] > 0){
  19.     $rs = \CUserTypeEntity::GetList([], [
  20.         'ENTITY_ID' => 'HLBLOCK_' . $tableBundles['ID']
  21.     ]);
  22.     while($ob = $rs->GetNext()){
  23.         $obUserField->Update($ob['ID'], ['SHOW_FILTER' => 'E']);
  24.     }
  25. }
  26.  
  27. $tableBundles = \Rbs\MoyskladStocks\HlCache\Stocks::getTableInfo();
  28.  
  29. if((int)$tableBundles['ID'] > 0){
  30.     $rs = \CUserTypeEntity::GetList([], [
  31.         'ENTITY_ID' => 'HLBLOCK_' . $tableBundles['ID']
  32.     ]);
  33.     while($ob = $rs->GetNext()){
  34.         $obUserField->Update($ob['ID'], ['SHOW_FILTER' => 'E']);
  35.     }
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement