Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-mbs committed Jul 19, 2024
1 parent 61bb77f commit bdf58e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion www/app/pages/report/outcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ private function generateReport() {
$totsum += ($row['summa'] + $row['navar']);
}
}
if( $totsum >0) {
if( $totsumself > 0) {
$totnavarproc = 100*$totnavar/$totsumself ;
}

Expand Down
8 changes: 4 additions & 4 deletions www/app/pages/service/armfood.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ARMFood extends \App\Pages\Base
private $_worktype = 0;
private $_pos;
private $_store;
public $_pt = -1;
public $_pt = -1;


private $_doc;
Expand Down Expand Up @@ -340,7 +340,7 @@ public function OnAutoItem($sender) {
$text = trim($sender->getText());
$like = Item::qstr('%' . $text . '%');

return Item::findArray('itemname',"disabled<>1 and item_type in (1,4 ) and (itemname like {$like} or item_code like {$like} ) and cat_id in (select cat_id from item_cat where detail not like '%<nofastfood>1</nofastfood>%') " );
return Item::findArray('itemname',"disabled<>1 and item_type in (1,4,5 ) and (itemname like {$like} or item_code like {$like} ) and cat_id in (select cat_id from item_cat where detail not like '%<nofastfood>1</nofastfood>%') " );


}
Expand Down Expand Up @@ -574,7 +574,7 @@ public function onCatBtnClick($sender) {
$this->_catlist = $catlist;
$this->docpanel->catpan->catlist->Reload();
} else {
$this->_prodlist = Item::find('disabled<>1 and item_type in (1,4 ) and cat_id=' . $cat->cat_id);
$this->_prodlist = Item::find('disabled<>1 and item_type in (1,4,5 ) and cat_id=' . $cat->cat_id);
$this->docpanel->catpan->setVisible(false);
$this->docpanel->prodpan->setVisible(true);
$this->docpanel->prodpan->prodlist->Reload();
Expand Down Expand Up @@ -1405,7 +1405,7 @@ public function createdoc() {
$this->_doc->headerdata['pos'] = $this->_pos->pos_id;
$this->_doc->headerdata['pos_name'] = $this->_pos->pos_name;
$this->_doc->headerdata['store'] = $this->_store;
$this->_doc->headerdata['pricetype'] = $this->_pt;
$this->_doc->headerdata['pricetype'] = $this->_pricetype;

$this->_doc->firm_id = $this->_pos->firm_id;
$this->_doc->username = System::getUser()->username;
Expand Down
2 changes: 1 addition & 1 deletion www/app/widgets/itemsel.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function onCatBtnClick($sender) {
$this->_catlist = $catlist;
$this->wcatpan->wcatlist->Reload();
} else {
$this->_prodlist = Item::find('disabled<>1 and item_type in (1,4 ) and cat_id=' . $cat->cat_id);
$this->_prodlist = Item::find('disabled<>1 and item_type in (1,4,5 ) and cat_id=' . $cat->cat_id);
$this->wcatpan->setVisible(false);
$this->wprodpan->setVisible(true);
$this->wprodpan->wprodlist->Reload();
Expand Down

0 comments on commit bdf58e8

Please sign in to comment.