Advertisement
vitareinforce

bundle update pseudocode

Jul 9th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $inventoryParent = Inventories::find($existingInventory['ItemMasterId']);
  2. $inventoryParent->update($existingInventory['inventory']);
  3. $existingInventory2 = InventoryBranches::with('inventory','legalEntity', 'branch')->find($itemId);
  4. $existingInventory2->Quantity100 = $request->Quantity100;
  5. $existingInventory2->Quantity90 = $request->Quantity90;
  6. $existingInventory2->Quantity60 = $request->Quantity60;
  7. $existingInventory2->Quantity30 = $request->Quantity30;
  8. $existingInventory2->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement