add update shipments

This commit is contained in:
Sai Naw Wun
2020-10-18 02:38:46 +06:30
parent fa9738f307
commit 4f8bde40b0
37 changed files with 596 additions and 455 deletions

View File

@@ -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",