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