Skip to content

Commit

Permalink
feat: default quantity for new item shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
joseandrespg committed Mar 22, 2019
1 parent 31be9c8 commit aaa2baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/order/orderData/orderData.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function newItem() {
* @param mixed $quantity
* @return OneFlowItem
*/
public function newSKUItem($skuCode, $sourceItemId, $quantity) {
public function newSKUItem($skuCode, $sourceItemId, $quantity = 1) {
$item = new OneFlowItem();
$item->setSourceItemId($sourceItemId);
$item->setQuantity($quantity);
Expand All @@ -89,7 +89,7 @@ public function newSKUItem($skuCode, $sourceItemId, $quantity) {
* @param mixed $shipmentIndex
* @return OneFlowStockItem
*/
public function newStockItem($stockCode, $quantity) {
public function newStockItem($stockCode, $quantity = 1) {
$stockItem = new OneFlowStockItem();
$stockItem->setCode($stockCode);
$stockItem->setQuantity($quantity);
Expand Down

0 comments on commit aaa2baf

Please sign in to comment.