mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Stage changes of 27f9d70b566f894f60ef654a8af88fed23bb4801 (not ready yet)
This commit is contained in:
parent
e005c51b1a
commit
5c1814989a
@ -124,7 +124,7 @@ Example: Button "**P** Add as new product" can be "pressed" by using the `P` key
|
|||||||
|
|
||||||
Products can be directly added to the database via looking them up against external services by a barcode.
|
Products can be directly added to the database via looking them up against external services by a barcode.
|
||||||
|
|
||||||
This can be done in-place using the product picker workflow "External barcode lookup (via plugin)" (the workflow dialog is displayed when entering something unknown in any product input field).
|
This is currently only possible through the REST API.
|
||||||
|
|
||||||
There is no plugin included for any service, see the reference implementation in `data/plugins/DemoBarcodeLookupPlugin.php`.
|
There is no plugin included for any service, see the reference implementation in `data/plugins/DemoBarcodeLookupPlugin.php`.
|
||||||
|
|
||||||
|
@ -10,10 +10,6 @@
|
|||||||
|
|
||||||
### Stock
|
### Stock
|
||||||
|
|
||||||
- Added a new product picker workflow "External barcode lookup (via plugin)"
|
|
||||||
- This executes the configured barcode lookup plugin with the given barcode
|
|
||||||
- If the lookup was successful, the product edit page of the created product is displayed, where the product setup can be completed (if required)
|
|
||||||
- After that, the transaction is continued with that product
|
|
||||||
- When using/scanning a stock entry Grocycode on the transfer page, the "Use specific stock item" dropdown (and "From location") is now also prefilled accordingly
|
- When using/scanning a stock entry Grocycode on the transfer page, the "Use specific stock item" dropdown (and "From location") is now also prefilled accordingly
|
||||||
- Fixed that for the product's last price stock transactions with an empty or `0` price weren't ignored
|
- Fixed that for the product's last price stock transactions with an empty or `0` price weren't ignored
|
||||||
- Fixed that when copying a product, the field "Move on open" wasn't copied along
|
- Fixed that when copying a product, the field "Move on open" wasn't copied along
|
||||||
|
@ -249,8 +249,8 @@ $('#product_id_text_input').on('blur', function(e)
|
|||||||
Grocy.Components.ProductPicker.PopupOpen = false;
|
Grocy.Components.ProductPicker.PopupOpen = false;
|
||||||
window.location.href = U('/product/new?flow=InplaceNewProductWithBarcode&barcode=' + encodeURIComponent(input) + '&returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative + "?flow=InplaceAddBarcodeToExistingProduct&barcode=" + input + "&" + embedded) + "&" + embedded);
|
window.location.href = U('/product/new?flow=InplaceNewProductWithBarcode&barcode=' + encodeURIComponent(input) + '&returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative + "?flow=InplaceAddBarcodeToExistingProduct&barcode=" + input + "&" + embedded) + "&" + embedded);
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
barcodepluginlookup: {
|
/*barcodepluginlookup: {
|
||||||
label: '<strong>E</strong> ' + __t('External barcode lookup (via plugin)'),
|
label: '<strong>E</strong> ' + __t('External barcode lookup (via plugin)'),
|
||||||
className: 'btn-dark add-new-product-plugin-dialog-button responsive-button ' + addProductWorkflowsAdditionalCssClasses,
|
className: 'btn-dark add-new-product-plugin-dialog-button responsive-button ' + addProductWorkflowsAdditionalCssClasses,
|
||||||
callback: function()
|
callback: function()
|
||||||
@ -275,7 +275,7 @@ $('#product_id_text_input').on('blur', function(e)
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user