diff --git a/grocy.openapi.json b/grocy.openapi.json index 5c6a6c15..6323195f 100644 --- a/grocy.openapi.json +++ b/grocy.openapi.json @@ -4372,7 +4372,10 @@ "last_price": { "type": "number", "format": "float" - } + }, + "note": { + "type": "string" + }, } }, "ExternalBarcodeLookupResponse": { diff --git a/migrations/0123.sql b/migrations/0123.sql new file mode 100644 index 00000000..b500d031 --- /dev/null +++ b/migrations/0123.sql @@ -0,0 +1,2 @@ +ALTER TABLE product_barcodes +ADD note TEXT; diff --git a/public/viewjs/productform.js b/public/viewjs/productform.js index 08f46c23..bd7893c9 100644 --- a/public/viewjs/productform.js +++ b/public/viewjs/productform.js @@ -288,7 +288,8 @@ var barcodeTable = $('#barcode-table').DataTable({ 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, - { 'visible': false, 'targets': 5 } + { 'visible': false, 'targets': 5 }, + { 'visible': false, 'targets': 6 } ].concat($.fn.dataTable.defaults.columnDefs) }); $('#barcode-table tbody').removeClass("d-none"); diff --git a/views/productbarcodeform.blade.php b/views/productbarcodeform.blade.php index fae74ea7..fa1e2ff6 100644 --- a/views/productbarcodeform.blade.php +++ b/views/productbarcodeform.blade.php @@ -90,6 +90,15 @@ value="1"> @endif +