예제 #1
0
 public function OnAutoItem($sender)
 {
     $text = $sender->getValue();
     $store_id = $this->docform->store->getValue();
     return Stock::findArrayEx("store_id={$store_id} and closed <> 1 and  itemname  like '%{$text}%' ");
 }
예제 #2
0
 public function OnAutocompleteItem($sender)
 {
     //ищем  партии  ТМЦ  на  оптовом складе
     $text = $sender->getValue();
     $store_id = $this->docform->storeto->getValue();
     return Stock::findArrayEx("store_id={$store_id} and closed <> 1 and  itemname  like '%{$text}%' and   stock_id in(select stock_id  from  erp_account_subconto  where  account_id= " . $this->editdetail->edittype->getValue() . ") ");
 }