Beispiel #1
0
 public function refreshtotalAction()
 {
     $receive = new Erp_Model_Stock_receive();
     $items = new Erp_Model_Purchse_Receiveitems();
     $data = $receive->fetchAll("total = 0")->toArray();
     foreach ($data as $d) {
         $items->refreshReceiveTotal($d['id']);
     }
     exit;
 }