mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-19 19:32:52 -04:00
Show correct quantity in item form
invert ternary condittions to show correct quantity at any time
This commit is contained in:
@@ -127,7 +127,7 @@ foreach($stock_locations as $key=>$location_detail)
|
||||
'id'=>$key.'_quantity',
|
||||
'class'=>'quantity',
|
||||
'size'=>'8',
|
||||
'value'=>isset($item_info->item_id)?0:$location_detail['quantity'])
|
||||
'value'=>isset($item_info->item_id)?$location_detail['quantity']:0:)
|
||||
);?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -390,4 +390,4 @@ $(document).ready(function()
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user