Beispiel #1
0
 public function updatePriceByPriceId($price_id)
 {
     $priceData = $this->fetchRow("id = " . $price_id)->toArray();
     $priceItemModel = new Erp_Model_Sale_Priceitems();
     $items = $priceItemModel->getItems($price_id);
     foreach ($items as $item) {
         $priceItemModel->update(array('active' => 1), "id = " . $item['items_id']);
         $priceItemModel->inactivePrice($price_id, $priceData['customer_id'], $item['items_type'], $item['items_code']);
     }
 }
Beispiel #2
0
 public function testAction()
 {
     $priceItemsModel = new Erp_Model_Sale_Priceitems();
     $itemsData = $priceItemsModel->getItems(7);
     echo '<pre>';
     print_r($itemsData);
     exit;
 }