Update card.php
This commit is contained in:
parent
bc375ad007
commit
cf34d07d5d
@ -1199,7 +1199,7 @@ if ($action == 'create') {
|
|||||||
if (count($warehousePicking) == 1 || !($line->fk_product > 0) || empty($conf->stock->enabled)) { // If warehouse was already selected or if product is not a predefined, we go into this part with no multiwarehouse selection
|
if (count($warehousePicking) == 1 || !($line->fk_product > 0) || empty($conf->stock->enabled)) { // If warehouse was already selected or if product is not a predefined, we go into this part with no multiwarehouse selection
|
||||||
print '<!-- Case warehouse already known or product not a predefined product -->';
|
print '<!-- Case warehouse already known or product not a predefined product -->';
|
||||||
//ship from preselected location
|
//ship from preselected location
|
||||||
$stock = + isset($product->stock_warehouse[$warehouse_id]->real) ? $product->stock_warehouse[$warehouse_id]->real : 0; // Convert to number
|
$stock = + (isset($product->stock_warehouse[$warehouse_id]->real) ? $product->stock_warehouse[$warehouse_id]->real : 0); // Convert to number
|
||||||
$deliverableQty = min($quantityToBeDelivered, $stock);
|
$deliverableQty = min($quantityToBeDelivered, $stock);
|
||||||
if ($deliverableQty < 0) {
|
if ($deliverableQty < 0) {
|
||||||
$deliverableQty = 0;
|
$deliverableQty = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user