out of stock notification

This commit is contained in:
denisdulici
2017-11-21 23:37:15 +03:00
parent aee5be5b01
commit 83d9fc703c
9 changed files with 127 additions and 0 deletions

View File

@ -153,6 +153,10 @@ class Bills extends Controller
$item_object = Item::find($item['item_id']);
$item_sku = $item_object->sku;
// Increase stock (item bought)
$item_object->quantity++;
$item_object->save();
}
$tax = $tax_id = 0;