Skip to content

Commit

Permalink
Fix incorrect condition to detect non-stock item in confirm_despatch …
Browse files Browse the repository at this point in the history
…action
  • Loading branch information
steveblamey committed Feb 3, 2016
1 parent dae590c commit 838290a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function confirm_despatch()
$despatches->load($sh);

foreach ($despatches as $despatch) {
if ($data['stitem_id'] != '') {
if ($despatch->stitem_id != '') {
// Create transaction pair for Dispatch
$data = array();
$data['qty'] = $despatch->despatch_qty;
Expand Down

0 comments on commit 838290a

Please sign in to comment.