diff --git a/htdocs/langs/en_US/stocks.lang b/htdocs/langs/en_US/stocks.lang index 340ae1bf9e7..59f510a6bf2 100644 --- a/htdocs/langs/en_US/stocks.lang +++ b/htdocs/langs/en_US/stocks.lang @@ -241,7 +241,7 @@ StockAtDatePastDesc=You can view here the stock (real stock) at a given date in StockAtDateFutureDesc=You can view here the stock (virtual stock) at a given date in future CurrentStock=Current stock InventoryRealQtyHelp=Set value to 0 to reset qty
Keep field empty, or remove line, to keep unchanged -UpdateByScaning=Update by scaning +UpdateByScaning=Fill real qty by scaning UpdateByScaningProductBarcode=Update by scan (product barcode) UpdateByScaningLot=Update by scan (lot|serial barcode) DisableStockChangeOfSubProduct=Deactivate the stock change for all the subproducts of this Kit during this movement. @@ -251,5 +251,6 @@ SelectAStockMovementFileToImport=select a stock movement file to import InfoTemplateImport=Uploaded file needs to have this format (* are mandatory fields):
Source Warehouse* | Target Warehouse* | Product* | Quantity* | Lot/serial number
CSV character separator must be "%s" LabelOfInventoryMovemement=Inventory %s ReOpen=Reopen -ConfirmFinish=Confirm closing -ObjectNotFound=%s not found \ No newline at end of file +ConfirmFinish=Do you confirm the closing of the inventory ? This will generate all stock movements to update your stock. +ObjectNotFound=%s not found +MakeMovementsAndClose=Generate movements and close \ No newline at end of file diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php index 30f3a5347dd..f6bbaa47a5b 100644 --- a/htdocs/product/inventory/inventory.php +++ b/htdocs/product/inventory/inventory.php @@ -384,6 +384,15 @@ if ($object->id > 0) { print dol_get_fiche_end(); + print '
'; + print ''; + print ''; + print ''; + if ($backtopage) { + print ''; + } + + // Buttons for actions if ($action != 'record') { print '
'."\n"; @@ -402,64 +411,71 @@ if ($object->id > 0) { } } - if ($object->status == Inventory::STATUS_VALIDATED) { + // Save + if ($object->status == $object::STATUS_VALIDATED) { + if ($object->status == Inventory::STATUS_VALIDATED) { + if ($permissiontoadd) { + print ''.$langs->trans("MakeMovementsAndClose").''."\n"; + } else { + print ''.$langs->trans('MakeMovementsAndClose').''."\n"; + } + } + if ($permissiontoadd) { - /* - if (!empty($conf->barcode->enabled)) { - print ''.$langs->trans("UpdateByScaningProductBarcode").''; - } - if (!empty($conf->productbatch->enabled)) { - print ''.$langs->trans('UpdateByScaningLot').''; - }*/ - if (!empty($conf->barcode->enabled) || !empty($conf->productbatch->enabled)) { - print ''.$langs->trans("UpdateByScaning").''; - } - } else { - print ''.$langs->trans("Save").''."\n"; + print ''.$langs->trans("Cancel").''."\n"; } } - - if ($object->status == Inventory::STATUS_VALIDATED) { - if ($permissiontoadd) { - print ''.$langs->trans("Cancel").''."\n"; - print ''.$langs->trans("Close").''."\n"; - } else { - print ''.$langs->trans('Finish').''."\n"; - } - } - - /*if ($object->status == Inventory::STATUS_VALIDATED) - { - if ($permissiontoadd) - { - print ''.$langs->trans("RecordVerb").''."\n"; - } - else - { - print ''.$langs->trans('RecordVerb').''."\n"; - } - }*/ } print '
'."\n"; } - if ($action == 'updatebyscaning') { - print '
'; - print 'TODO'; + + if ($object->status == Inventory::STATUS_VALIDATED) { + print '
'; + if ($permissiontoadd) { + /* + if (!empty($conf->barcode->enabled)) { + print ''.$langs->trans("UpdateByScaningProductBarcode").''; + } + if (!empty($conf->productbatch->enabled)) { + print ''.$langs->trans('UpdateByScaningLot').''; + }*/ + if (!empty($conf->barcode->enabled) || !empty($conf->productbatch->enabled)) { + print ''.$langs->trans("UpdateByScaning").''; + } + } else { + print ''.$langs->trans("Save").''."\n"; + } + print '
'; + print '
'; + print '
'; + } + + + if ($action == 'updatebyscaning') { + print '
'; + print '
Barcode scanner tool...

'; + + print 'Scan a product barcode
'; + print '     Qty
'; + + print '
'.$langs->trans("or").'
'; + + print '
'; + + print 'Scan a product lot or serial number
'; + print '     Qty
'; + + print '
'; + print ''.$langs->trans("FeatureNotYetAvailable").''; + + // TODO Add javascript so each scan will add qty into the inventory page + an ajax save. print '
'; } - print ''; - print ''; - print ''; - print ''; - if ($backtopage) { - print ''; - } - print '
'; //print '
'; print '
'; @@ -495,7 +511,7 @@ if ($object->id > 0) { print $formproduct->selectWarehouses((GETPOSTISSET('fk_warehouse') ? GETPOST('fk_warehouse', 'int') : $object->fk_warehouse), 'fk_warehouse', 'warehouseopen', 1, 0, 0, '', 0, 0, array(), 'maxwidth300'); print ''; print ''; - print $form->select_produits((GETPOSTISSET('fk_product') ? GETPOST('fk_product', 'int') : $object->fk_product), 'fk_product', '', 0, 0, 1, 2, '', 0, null, 0, '1', 0, 'maxwidth300'); + print $form->select_produits((GETPOSTISSET('fk_product') ? GETPOST('fk_product', 'int') : $object->fk_product), 'fk_product', '', 0, 0, -1, 2, '', 0, null, 0, '1', 0, 'maxwidth300'); print ''; if ($conf->productbatch->enabled) { print ''; @@ -593,15 +609,10 @@ if ($object->id > 0) { print ''; - // Save - if ($object->status == $object::STATUS_VALIDATED) { - print '
'; - print ''; - print '
'; - } - print '
'; + print '
'; + print '
'; print ''; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 23f694bec2c..47e2339b6ff 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -985,6 +985,19 @@ div.div-for-modal { z-index: 100; } +div.div-for-modal-topright { + /* display: none; */ + position:absolute; + top: 0; + right: 0; + width:50%; /* adjust as per your needs */ + height:250px; /* adjust as per your needs */ + background: #fff; + border: 1px solid #bbb; + box-shadow: 2px 2px 20px #ddd; + z-index: 1100; +} + browser->layout == 'phone') {