update rate

This commit is contained in:
Thinzar Win
2020-06-29 16:15:25 +06:30
parent 02450c003e
commit 8e65a533db
25 changed files with 746 additions and 136 deletions

View File

@@ -1,6 +1,8 @@
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:fcs/vo/custom.dart';
import 'package:fcs/vo/discount.dart';
import 'package:fcs/vo/rate.dart';
import 'package:logging/logging.dart';
@@ -22,7 +24,17 @@ class ShipmentRateModel extends BaseModel {
price: 8),
];
int freeDeliveryWeight=10;
List<Custom> customs = [
Custom(productType: 'Phone', fee: 40),
Custom(productType: 'Max Book', fee: 40)
];
List<Discount> discountsByWeight = [
Discount(weight: 10, discountRate: 3),
Discount(weight: 20, discountRate: 5)
];
int freeDeliveryWeight = 10;
void initUser(user) {
super.initUser(user);