本文整理汇总了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);
}
}
示例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);
}
}