當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Inventory::remove方法代碼示例

本文整理匯總了PHP中Inventory::remove方法的典型用法代碼示例。如果您正苦於以下問題:PHP Inventory::remove方法的具體用法?PHP Inventory::remove怎麽用?PHP Inventory::remove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Inventory的用法示例。


在下文中一共展示了Inventory::remove方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: makeSell

 function makeSell()
 {
     $date = "{$_POST['date']} 02:02:02";
     db("insert into sell (vendorIndex,vendor,memoNo,rawPrice,extraCost,extraCostDescr,shippingCost,commission,discount,totalPrice,paid,due,date,currDue,sellType) \n\t\t\tvalues ('{$this->clientIndex}','client','{$this->memoNo}','{$this->rawPrice}','{$this->extraCost}','{$this->extraCostDescr}','{$this->shippingCost}','{$this->commission}','{$this->discount}','{$this->totalPrice}','{$this->paid}','{$this->due}','{$date}','{$this->currDue}','clientPurchase')");
     for ($index = 0; $index < $this->productList; $index++) {
         $product = $this->product[$index];
         db("insert into sell_log\n\t\t\t(memoNo,pid,descr,qty,sp,cpDoz,date) values ('{$this->memoNo}','{$product->pid}','{$product->descr}','{$product->qty}','{$product->sp}','{$product->cpDoz}','{$date}')");
         Inventory::remove($product);
     }
 }
開發者ID:n-sakib,項目名稱:juierp,代碼行數:10,代碼來源:sell.php

示例2: makePurchaseReturn

 function makePurchaseReturn()
 {
     $date = "{$_POST['date']} 02:02:02";
     $this->purchaseType = "factoryReturn";
     //insert into sell and sellLog
     //vendorType = [factory, factory, staff, bank, addition]
     //
     //do this in distraction free mode shift+f11
     //first field name, then field value, type both at once first
     db("insert into purchase\n\t\t\t(vendorIndex,vendor,memoNo,rawPrice,paid,due,date,purchaseType)\n\t\t\tvalues\n\t\t\t('{$this->factoryIndex}','factory','{$this->memoNo}','{$this->rawPrice}','{$this->paid}','{$this->due}','{$date}','{$this->purchaseType}')\n\t\t\t");
     for ($index = 0; $index < $this->productList; $index++) {
         $product = $this->product[$index];
         //echo "('$this->memoNo','$product->pid','$product->descr','$product->qty','$product->sp','$product->cpDoz')";
         db("insert into purchase_log\n\t\t\t\t(memoNo,pid,descr,qty,sp,cpDoz,date)\n\t\t\t\tvalues\n\t\t\t\t('{$this->memoNo}','{$product->pid}','{$product->descr}','{$product->qty}','{$product->sp}','{$product->cpDoz}','{$date}')\n\t\t\t\t");
         Inventory::remove($product);
     }
 }
開發者ID:n-sakib,項目名稱:juierp,代碼行數:17,代碼來源:purchaseReturn.php


注:本文中的Inventory::remove方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。