update cargo type input, add package count and carton count for shipment info
This commit is contained in:
@@ -50,6 +50,7 @@ class _CartonPackageFormState extends State<CartonPackageForm> {
|
||||
|
||||
List<CargoType> _cargoTypes = [];
|
||||
List<CargoType> _surchareItems = [];
|
||||
double _totalWeight = 0;
|
||||
|
||||
int currentStep = 0;
|
||||
double _length = 0;
|
||||
@@ -188,6 +189,7 @@ class _CartonPackageFormState extends State<CartonPackageForm> {
|
||||
consignee: widget.consignee,
|
||||
cargoTypes: _cargoTypes,
|
||||
surchargeItems: _surchareItems,
|
||||
totalWeight: _totalWeight,
|
||||
onContinue: (cargoTypes, customDuties) {
|
||||
setState(() {
|
||||
_cargoTypes = List.from(cargoTypes);
|
||||
@@ -195,8 +197,9 @@ class _CartonPackageFormState extends State<CartonPackageForm> {
|
||||
currentStep += 1;
|
||||
});
|
||||
},
|
||||
onPrevious: (cargoTypes, customDuties) {
|
||||
onPrevious: (cargoTypes, customDuties, totalWeight) {
|
||||
setState(() {
|
||||
_totalWeight = totalWeight;
|
||||
_cargoTypes = List.from(cargoTypes);
|
||||
_surchareItems = List.from(customDuties);
|
||||
currentStep -= 1;
|
||||
|
||||
Reference in New Issue
Block a user