Skip to content

Commit

Permalink
Merge pull request #33 from Oneflow/development
Browse files Browse the repository at this point in the history
feat: default quantity for new item shortcuts
  • Loading branch information
joseandrespg authored Mar 22, 2019
2 parents 31be9c8 + aaa2baf commit 29938fc
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 29938fc

Please sign in to comment.