2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

346 Commits

Author SHA1 Message Date
Oliver
3ea5f8934c
Sales order allocation (#464)
* New string

* Typo fix

* Add model for SalesOrderShipment

* Add placeholder button to sales order item

* Create a new shipment from the sales order detail view

* Fix API URL

* Add paginated shipment list

* Upate colors

* Add API form for allocation of stock to sales order

* Build out sales order line detail widge

* Use unallocated quantity

* Update release notes

* linting fix
2023-11-27 22:51:20 +11:00
Oliver
1ec1a867d9
Add part to sales order via barcode scan (#461)
* Add part to sales order via barcode scan

* Update release notes

* Remove unused imports
2023-11-22 00:14:55 +11:00
Oliver
bf3df770c7
Po barcode scan (#458)
* Refactor existing barcode scan endpoint

- Break out into new file just for purchase orders

* Handle scanning of salesorder

* Add new handler for adding items to PO via barcode

* Allocate with barcode

* Add new string
2023-11-20 23:48:42 +11:00
Oliver
1148f01d4a
New Crowdin updates (#455)
* New translations app_en.arb (French)

* New translations app_en.arb (Spanish)

* New translations app_en.arb (Bulgarian)

* New translations app_en.arb (Czech)

* New translations app_en.arb (Danish)

* New translations app_en.arb (German)

* New translations app_en.arb (Greek)

* New translations app_en.arb (Finnish)

* New translations app_en.arb (Hebrew)

* New translations app_en.arb (Hungarian)

* New translations app_en.arb (Italian)

* New translations app_en.arb (Japanese)

* New translations app_en.arb (Korean)

* New translations app_en.arb (Dutch)

* New translations app_en.arb (Norwegian)

* New translations app_en.arb (Polish)

* New translations app_en.arb (Portuguese)

* New translations app_en.arb (Russian)

* New translations app_en.arb (Slovenian)

* New translations app_en.arb (Swedish)

* New translations app_en.arb (Turkish)

* New translations app_en.arb (Chinese Simplified)

* New translations app_en.arb (Chinese Traditional)

* New translations app_en.arb (Vietnamese)

* New translations app_en.arb (Portuguese, Brazilian)

* New translations app_en.arb (Indonesian)

* New translations app_en.arb (Persian)

* New translations app_en.arb (Spanish, Mexico)

* New translations app_en.arb (Thai)

* New translations app_en.arb (Hindi)
2023-11-15 21:00:33 +11:00
Oliver
8cb5dd20f0
Barcode Scanning Updates (#448)
* Add new setting for controlling manual barcode scan

* Adds ability to pause and resume scanning with button

- Camera is still "live" during this

* Add UI elements

* Change scan setting

- "Continuous" scanning
- Enabled by default

* Update release notes

* Scanner updates

- Use "hold to pause" in continuous scan
- Use "tap to pause" in single scan

* Improve barcode scanning options

- Allow tap-to-pause or hold-to-pause
- More obvious user interactions

* Ensure consistent icon placement

* Remove separate setting for barcode pause mode
2023-11-14 07:39:06 +11:00
Oliver
20127c6090
New Crowdin updates (#454)
* New translations app_en.arb (French)

* New translations app_en.arb (Spanish)

* New translations app_en.arb (Czech)

* New translations app_en.arb (Danish)

* New translations app_en.arb (German)

* New translations app_en.arb (Greek)

* New translations app_en.arb (Finnish)

* New translations app_en.arb (Hebrew)

* New translations app_en.arb (Hungarian)

* New translations app_en.arb (Italian)

* New translations app_en.arb (Japanese)

* New translations app_en.arb (Korean)

* New translations app_en.arb (Dutch)

* New translations app_en.arb (Norwegian)

* New translations app_en.arb (Polish)

* New translations app_en.arb (Portuguese)

* New translations app_en.arb (Russian)

* New translations app_en.arb (Slovenian)

* New translations app_en.arb (Swedish)

* New translations app_en.arb (Turkish)

* New translations app_en.arb (Chinese Simplified)

* New translations app_en.arb (Chinese Traditional)

* New translations app_en.arb (Vietnamese)

* New translations app_en.arb (Portuguese, Brazilian)

* New translations app_en.arb (Indonesian)

* New translations app_en.arb (Persian)

* New translations app_en.arb (Spanish, Mexico)

* New translations app_en.arb (Thai)

* New translations app_en.arb (Hindi)

* New translations app_en.arb (Bulgarian)
2023-11-13 20:48:28 +11:00
Oliver
bb87d0dd6d
Item deplete fix (#452)
* Add status code information to server error message

* More informative error message for 404

* Update release note
2023-11-12 23:43:52 +11:00
Oliver
e22ba95214
New translations app_en.arb (German) (#450) 2023-11-12 23:26:07 +11:00
Oliver
bdd5470e68
Sales order support (#438)
* Add new models for SalesOrder

- Create generic Order and OrderLine models with common functionality

* Refactor

- Move some widgets around
- Cleanup directory structure

* Add link to home screen and nav drawer

* Add SalesOrder list widget

* Linting fixes

* Fix string

* Refactor PurchaseOrderDetailWidget

* Tweaks to existing code

* linting

* Fixes for drawer widget

* Add "detail" page for SalesOrder

* Add more tiles to SalesOrder detail

* Allow editing of salesorder

* add list filters for sales orders

* Display list of line items

* Customer updates

- Display customer icon on home screen
- Fetch sales orders for customer detail page

* Cleanup company detail view

* Create new sales order from list

* Stricter typing for formFields method

* Create new PurchaseOrder and SalesOrder from company deatil

* Status code updates

- Add function for name comparison
- Remove hard-coded values

* Update view permission checks for home widget

* Add ability to manually add SalesOrderLineItem

* Add nice progress bar widgets

* Display detail view for sales order line item

* edit SalesOrderLineItem

* Fix unused import

* Hide "shipped items" tab

- Will be added in a future update
2023-11-12 23:13:22 +11:00
Oliver
c1c0d46957
New translations app_en.arb (Chinese Simplified) (#447) 2023-11-10 20:16:10 +11:00
Oliver
cf83ae86b9
New Crowdin updates (#443)
* New translations app_en.arb (Chinese Simplified)

* New translations app_en.arb (Bulgarian)
2023-11-09 20:49:01 +11:00
Oliver
c641cea369
Scanner wedge mode (#437)
* Add code_scan_listener package

* Implement wedge controller widget

* Update barcode settings widget

- Allow user to choose which barcode scanner to use

* Fix typo

* Select barcode scanner widget based on user preference

* Fix rendering issues for wedge controller

* Update release notes

* Add unit test for wedge scanner widget

- Required some tweaks to other code

* Use better library

- https://github.com/fuadreza/flutter_barcode_listener
- Fork of https://github.com/shaxxx/flutter_barcode_listener
- Properly handles key "case" issues (shift, essentially)
- Verified that it works correctly for multiple character types

* Local copy of code, rather than relying on package which is not available on pub.dev

* Fix unit test
2023-10-25 22:40:49 +11:00
Oliver
76b6191a67
Token auth (#434)
* Embed device platform information into token request

* Remove username and password from userProfile

* Display icon to show if profile has associated user token

* Remove username / password from login settings screen

* Refactor login procedure around token auth

* Refactoring

* Add profile login screen

- Username / password values are not stored
- Just to fetch api token

* Login with basic auth

* Pass profile to API when connecting

* Remove _BASE_URL accessor

- Fixes URL caching bug

* Add more context to login screen

* Add helper functions for unit tests

- Change default port to 8000 (makes testing easier with local inventree instance)

* api.dart handles basic auth now

* fix api_test.dart

* Further test improvements

* linting fixes

* Provide feedback when login fails

* More linting

* Record user details on login, and display in "about" widget

* Fix string lookup

* Add extra debug

* Fix auth values

* Fix user profile test
2023-10-23 01:29:16 +11:00
Oliver
382c8461f9
New translations app_en.arb (Japanese) (#433) 2023-10-21 23:24:02 +11:00
Oliver
c65833cf6d
New Crowdin updates (#431)
* New translations app_en.arb (German)

* New translations app_en.arb (Japanese)
2023-10-19 23:29:33 +11:00
Bobbe
67fd6a564a
Add POReceiveBarcodeHandler to support barcode/po-receive/ endpoint (#421)
* Add POReceiveBarcodeHandler to support barcode/po-receive/ endpoint

* Remove german translation

* Add api version checks

* Add getOverlayText method to barcode handler

* Bump required API version to 139

* Update barcode.dart

The "quantity" field is not an integer, and can cause the app to crash if not handled correctly

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-10-19 23:28:32 +11:00
Oliver
c76309341b
New translations app_en.arb (German) (#430) 2023-10-08 20:18:14 +11:00
Oliver
f4be87e826
New Crowdin updates (#429)
* New translations app_en.arb (Russian)

* New translations app_en.arb (Chinese Simplified)
2023-10-05 00:17:44 +11:00
Oliver
a119bcc465
New translations app_en.arb (Spanish, Mexico) (#427) 2023-10-01 13:46:37 +11:00
Oliver
9203ee8a3f
New Crowdin updates (#417)
* New translations app_en.arb (Swedish)

* New translations app_en.arb (Russian)
2023-08-25 23:31:45 +10:00
Oliver
af09cde29e
New translations app_en.arb (French) (#414) 2023-08-21 17:50:11 +10:00
Oliver
e6ad1bcb98
New translations app_en.arb (Turkish) (#413) 2023-08-12 20:44:59 +10:00
Oliver
d81f0d532d
New translations app_en.arb (Russian) (#412) 2023-08-10 22:32:00 +10:00
Oliver
75c4e038f4
New translations app_en.arb (Vietnamese) (#410) 2023-08-09 21:57:41 +10:00
Oliver
72f243e1a5
New Crowdin updates (#409)
* New translations app_en.arb (Swedish)

* New translations app_en.arb (Hindi)

* New translations app_en.arb (Vietnamese)

* New translations app_en.arb (Russian)

* New translations app_en.arb (Russian)

* New translations app_en.arb (Russian)

* New translations app_en.arb (Russian)

* New translations app_en.arb (Vietnamese)
2023-08-08 20:30:44 +10:00
Oliver
d6460d58aa
New Crowdin updates (#407)
* New translations app_en.arb (Portuguese, Brazilian)

* New translations app_en.arb (Spanish, Mexico)
2023-07-27 09:50:19 +10:00
Oliver
2e2e9640d4
New translations app_en.arb (Hungarian) (#404) 2023-07-22 22:17:54 +10:00
Oliver
174f1b2f2d
New Crowdin updates (#402)
* New translations app_en.arb (Dutch)

* New translations app_en.arb (Chinese Traditional)
2023-07-21 22:28:43 +10:00
Oliver
7a11fdead8
Tweaks (#401)
* Improve collect_translations.py

* Cleanup

* Update translation support

* Update release notes
2023-07-17 21:17:23 +10:00
Oliver
3085d98ce1
New translations app_en.arb (Chinese Traditional) (#400) 2023-07-17 20:59:39 +10:00
Oliver
443e6e856c
Label print updates (#399)
* Allow download of printed label

* Add setting for controlling label printing

* Control display of label printing via setting

* Refactor label printing functionality

- Move to helpers.dart
- Will be used for other label types also

* Factor out request for label templates

* Add label printing support for part

* Support label printing for stock location

* update release notes
2023-07-16 00:51:11 +10:00
Oliver
d78affc1cb
New Crowdin updates (#397)
* New translations app_en.arb (Portuguese, Brazilian)

* New translations app_en.arb (French)
2023-07-13 22:05:10 +10:00
Oliver
7ef6da4b2a
Add extra filtering options for stock items (#394) 2023-07-07 21:47:27 +10:00
Oliver
637b058a8a
New Crowdin updates (#393)
* New translations app_en.arb (Turkish)

* New translations app_en.arb (Turkish)
2023-07-07 21:47:15 +10:00
Oliver
e39ab9ad78
New Crowdin updates (#391)
* New translations app_en.arb (German)

* New translations app_en.arb (French)
2023-07-05 09:35:56 +10:00
Oliver
9277e18028
New Crowdin updates (#390)
* New translations app_en.arb (Hungarian)

* New translations app_en.arb (Russian)

* New translations app_en.arb (French)

* New translations app_en.arb (Portuguese, Brazilian)
2023-07-04 19:27:45 +10:00
Oliver
23abcb48f2
New Crowdin updates (#387)
* New translations app_en.arb (Russian)

* New translations app_en.arb (Russian)
2023-06-30 22:30:51 +10:00
Oliver
d0d96166c4
New translations app_en.arb (Dutch) (#383) 2023-06-28 21:10:09 +10:00
Oliver
e9eb84eace
Stock display (#379)
* Display stock quantity more prominently

* Cleanup search widget

* Update for stock_detail widget

* More tweaks

* Change bottom bar icon

* Display boolean parameters appropriately

* Adds ability to edit part parameters

* Bump icon size a bit

* Improvements to filter options

- Allow filtering by "option" type
- To start with, filter stock by status code

* Remove debug message

* Remove getTriState method

- No longer needed
- Remove associated unit tests

* Adjust filters based on server API version

* Muted colors
2023-06-24 11:34:42 +10:00
Oliver
8076887e39
New translations app_en.arb (Portuguese, Brazilian) (#377) 2023-06-22 20:04:40 +10:00
Oliver
001450d3bb
New Crowdin updates (#373)
* New translations app_en.arb (Indonesian)

* New translations app_en.arb (Spanish, Mexico)
2023-06-18 00:23:13 +10:00
Oliver
71bf3ad049
App orientation (#369)
* Configurable screen orientation

- Follow system (default)
- Fixed in portrait
- Fixed in landscape

* Fix for dialog
2023-06-13 19:53:50 +10:00
Oliver
b051aeccda
Barcode refactor (#363)
* Move barcode.dart

* Fix

* Refactoring barcode scanner code:

- Abstract the "controller" class (for future development)
- Break barcode scanning code out into multiple files
- Add CameraBarcodeController class (qr_code_scanner)

* Add await

* Make barcode scan delay configurable

* remove unused import

* Handle camera exceptions

* Improve sequencing for camera scanner

- Show loading overlay
- Prevent reload if view is no longer mounted

* Update docstring

* Update release notes
2023-06-11 09:41:26 +10:00
Oliver
45fe79daf0
New translations app_en.arb (Finnish) (#362) 2023-06-10 20:17:40 +10:00
Oliver
7ca9a7ccc4
New Crowdin updates (#360)
* New translations app_en.arb (Finnish)

* New translations app_en.arb (Finnish)
2023-06-06 21:07:39 +10:00
Oliver
973f1fb002
New translations app_en.arb (Finnish) (#357) 2023-05-30 20:19:14 +10:00
Oliver
905cedf9af
New Crowdin updates (#350)
* New translations app_en.arb (Czech)

* New translations app_en.arb (Portuguese, Brazilian)

* New translations app_en.arb (Vietnamese)

* New translations app_en.arb (Vietnamese)

* New translations app_en.arb (Spanish, Mexico)

* New translations app_en.arb (Spanish, Mexico)
2023-05-13 20:48:38 +10:00
Oliver
99c768a2e1
New translations app_en.arb (Portuguese, Brazilian) (#346) 2023-04-29 20:06:35 +10:00
Oliver
383571707e
Stock test actions (#345)
* Use FAB for stock item test result

* Change long press to tap

* Add setting to control display of stock tests results

* Add question mark if no result recorded
2023-04-28 23:27:59 +10:00
Oliver
49226a5fce
New Crowdin updates (#343)
* New translations app_en.arb (Hungarian)

* New translations app_en.arb (Norwegian)

* New translations app_en.arb (Italian)

* New translations app_en.arb (Czech)

* New translations app_en.arb (Vietnamese)
2023-04-27 19:09:19 +10:00