mirror of
https://github.com/inventree/inventree-app.git
synced 2025-10-14 05:12:21 +00:00
Re-order barcode scanning priority (#693)
* Re-order barcode scanning priority - Closes https://github.com/inventree/inventree-app/issues/692 * dart format * Try with removed line * Try without pythonscript * just pub get * try with fvm * Remove fvm * set working dir * try just pub get * Install python first * Updates * Use fvm * Adjust CI
This commit is contained in:
23
.github/workflows/ci.yaml
vendored
23
.github/workflows/ci.yaml
vendored
@@ -30,6 +30,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -53,20 +58,18 @@ jobs:
|
|||||||
- name: Collect Translation Files
|
- name: Collect Translation Files
|
||||||
run: |
|
run: |
|
||||||
cd lib/l10n
|
cd lib/l10n
|
||||||
python3 collect_translations.py
|
python collect_translations.py
|
||||||
|
|
||||||
- name: Static Analysis Tests
|
- name: Static Analysis Tests
|
||||||
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
python3 find_dart_files.py
|
python ./find_dart_files.py
|
||||||
flutter pub get
|
dart pub global activate fvm
|
||||||
flutter analyze
|
fvm install
|
||||||
|
fvm flutter pub get
|
||||||
|
fvm flutter analyze
|
||||||
dart format --output=none --set-exit-if-changed .
|
dart format --output=none --set-exit-if-changed .
|
||||||
|
|
||||||
- name: Install Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
|
|
||||||
- name: Start InvenTree Server
|
- name: Start InvenTree Server
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel g++
|
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel g++
|
||||||
@@ -82,7 +85,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: |
|
run: |
|
||||||
flutter test --coverage
|
fvm flutter test --coverage
|
||||||
|
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
### 0.19.3 - September 2025
|
||||||
|
---
|
||||||
|
|
||||||
|
- Fixes incorrect priority of barcode scanner results
|
||||||
|
|
||||||
### 0.19.2 - August 2025
|
### 0.19.2 - August 2025
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -13,6 +13,8 @@ from pathlib import Path
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
dart_files = Path("lib").rglob("*.dart")
|
dart_files = Path("lib").rglob("*.dart")
|
||||||
|
|
||||||
|
print("Discovering dart files...");
|
||||||
|
|
||||||
with open("test/coverage_helper_test.dart", "w") as f:
|
with open("test/coverage_helper_test.dart", "w") as f:
|
||||||
f.write("// ignore_for_file: unused_import\n\n")
|
f.write("// ignore_for_file: unused_import\n\n")
|
||||||
f.write("// dart format off\n\n")
|
f.write("// dart format off\n\n")
|
||||||
|
@@ -250,12 +250,12 @@ class BarcodeScanHandler extends BarcodeHandler {
|
|||||||
|
|
||||||
// The following model types can be matched with barcodes
|
// The following model types can be matched with barcodes
|
||||||
List<String> validModels = [
|
List<String> validModels = [
|
||||||
InvenTreePart.MODEL_TYPE,
|
|
||||||
InvenTreeCompany.MODEL_TYPE,
|
|
||||||
InvenTreeStockItem.MODEL_TYPE,
|
InvenTreeStockItem.MODEL_TYPE,
|
||||||
InvenTreeStockLocation.MODEL_TYPE,
|
|
||||||
InvenTreeSupplierPart.MODEL_TYPE,
|
InvenTreeSupplierPart.MODEL_TYPE,
|
||||||
InvenTreeManufacturerPart.MODEL_TYPE,
|
InvenTreeManufacturerPart.MODEL_TYPE,
|
||||||
|
InvenTreePart.MODEL_TYPE,
|
||||||
|
InvenTreeStockLocation.MODEL_TYPE,
|
||||||
|
InvenTreeCompany.MODEL_TYPE,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (InvenTreeAPI().supportsOrderBarcodes) {
|
if (InvenTreeAPI().supportsOrderBarcodes) {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
name: inventree
|
name: inventree
|
||||||
description: InvenTree stock management
|
description: InvenTree stock management
|
||||||
|
|
||||||
version: 0.19.2+101
|
version: 0.19.3+102
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.8.1
|
sdk: ^3.8.1
|
||||||
|
Reference in New Issue
Block a user