add update shipments
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import 'package:fcs/domain/entities/box.dart';
|
||||
import 'package:fcs/domain/entities/carton.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/localization/app_translations.dart';
|
||||
import 'package:fcs/pages/box/model/box_model.dart';
|
||||
import 'package:fcs/pages/carton/model/carton_model.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class BoxAddition extends StatefulWidget {
|
||||
final Box box;
|
||||
final Carton box;
|
||||
BoxAddition({this.box});
|
||||
|
||||
@override
|
||||
@@ -16,7 +16,7 @@ class BoxAddition extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _BoxAdditionState extends State<BoxAddition> {
|
||||
Box _box = new Box();
|
||||
Carton _box = new Carton();
|
||||
bool _isLoading = false;
|
||||
|
||||
@override
|
||||
@@ -34,7 +34,7 @@ class _BoxAdditionState extends State<BoxAddition> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var boxModel = Provider.of<BoxModel>(context);
|
||||
var boxModel = Provider.of<CartonModel>(context);
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:fcs/domain/entities/box.dart';
|
||||
import 'package:fcs/domain/entities/carton.dart';
|
||||
import 'package:fcs/domain/entities/cargo_type.dart';
|
||||
import 'package:fcs/domain/entities/custom_duty.dart';
|
||||
import 'package:fcs/domain/entities/discount.dart';
|
||||
@@ -63,7 +63,7 @@ class _InvoiceEditorState extends State<InvoiceEditor> {
|
||||
|
||||
Invoice _invoice;
|
||||
bool _isLoading = false;
|
||||
List<Box> _boxes = [];
|
||||
List<Carton> _boxes = [];
|
||||
bool isSwitched = false;
|
||||
int deliveryfee = 0;
|
||||
double customFee = 10.0;
|
||||
@@ -76,7 +76,7 @@ class _InvoiceEditorState extends State<InvoiceEditor> {
|
||||
PaymentMethod paymentMethod;
|
||||
double volumetricRatio = 0;
|
||||
|
||||
List<Box> selectedBoxes = [];
|
||||
List<Carton> selectedBoxes = [];
|
||||
List<CustomDuty> customs = [];
|
||||
|
||||
List<CargoType> _cargoTypes = [
|
||||
@@ -130,7 +130,7 @@ class _InvoiceEditorState extends State<InvoiceEditor> {
|
||||
}
|
||||
|
||||
_boxes = [
|
||||
Box(
|
||||
Carton(
|
||||
shipmentNumber: "A202",
|
||||
receiverNumber: "3",
|
||||
receiverName: "Ko Myo Min",
|
||||
@@ -152,7 +152,7 @@ class _InvoiceEditorState extends State<InvoiceEditor> {
|
||||
CargoType(name: 'Medicine', weight: 20),
|
||||
CargoType(name: 'Dangerous Cargo', weight: 30)
|
||||
]),
|
||||
Box(
|
||||
Carton(
|
||||
shipmentNumber: "A202",
|
||||
receiverNumber: "3",
|
||||
receiverName: "Ko Myo Min",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:fcs/domain/entities/box.dart';
|
||||
import 'package:fcs/domain/entities/carton.dart';
|
||||
import 'package:fcs/domain/entities/cargo_type.dart';
|
||||
import 'package:fcs/domain/entities/custom_duty.dart';
|
||||
import 'package:fcs/domain/entities/discount.dart';
|
||||
@@ -63,7 +63,7 @@ class _InvoiceInfoPageState extends State<InvoiceInfoPage> {
|
||||
|
||||
Invoice _invoice;
|
||||
bool _isLoading = false;
|
||||
List<Box> _boxes = [];
|
||||
List<Carton> _boxes = [];
|
||||
bool isSwitched = false;
|
||||
int deliveryfee = 0;
|
||||
double customFee = 0;
|
||||
@@ -75,7 +75,7 @@ class _InvoiceInfoPageState extends State<InvoiceInfoPage> {
|
||||
PaymentMethod paymentMethod;
|
||||
double volumetricRatio = 0;
|
||||
|
||||
List<Box> selectedBoxes = [];
|
||||
List<Carton> selectedBoxes = [];
|
||||
List<CustomDuty> customs = [];
|
||||
|
||||
List<CargoType> _cargoTypes = [
|
||||
@@ -122,7 +122,7 @@ class _InvoiceInfoPageState extends State<InvoiceInfoPage> {
|
||||
}
|
||||
|
||||
_boxes = [
|
||||
Box(
|
||||
Carton(
|
||||
shipmentNumber: "A202",
|
||||
receiverNumber: "3",
|
||||
receiverName: "Ko Myo Min",
|
||||
@@ -144,7 +144,7 @@ class _InvoiceInfoPageState extends State<InvoiceInfoPage> {
|
||||
CargoType(name: 'Medicine', weight: 20),
|
||||
CargoType(name: 'Dangerous Cargo', weight: 30)
|
||||
]),
|
||||
Box(
|
||||
Carton(
|
||||
shipmentNumber: "A202",
|
||||
receiverNumber: "3",
|
||||
receiverName: "Ko Myo Min",
|
||||
|
||||
Reference in New Issue
Block a user