mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
API post request now uses HttpClient
This commit is contained in:
parent
71340da068
commit
b8c535560d
6 changed files with 118 additions and 103 deletions
|
|
@ -208,8 +208,6 @@ void showFormDialog(String title, {String acceptText, String cancelText, GlobalK
|
|||
if (key.currentState.validate()) {
|
||||
key.currentState.save();
|
||||
|
||||
print("Saving and closing the dialog");
|
||||
|
||||
// Close the dialog
|
||||
Navigator.pop(dialogContext);
|
||||
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
|
||||
void _transferStock(BuildContext context, InvenTreeStockLocation location) async {
|
||||
|
||||
double quantity = double.parse(_quantityController.text);
|
||||
double quantity = double.tryParse(_quantityController.text) ?? item.quantity;
|
||||
String notes = _notesController.text;
|
||||
|
||||
_quantityController.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue