Merge branch 'master' of tzw/fcs into master
This commit is contained in:
@@ -25,6 +25,7 @@ class RateDataProvider {
|
|||||||
.doc(rate_doc_id)
|
.doc(rate_doc_id)
|
||||||
.snapshots();
|
.snapshots();
|
||||||
await for (var snap in snapshot) {
|
await for (var snap in snapshot) {
|
||||||
|
print(snap.data());
|
||||||
Rate rate = Rate.fromMap(snap.data() as Map<String, dynamic>);
|
Rate rate = Rate.fromMap(snap.data() as Map<String, dynamic>);
|
||||||
yield rate;
|
yield rate;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,9 @@ class _DeliveryAddressEditorState extends State<DeliveryAddressEditor> {
|
|||||||
title: LocalText(context, 'delivery_address',
|
title: LocalText(context, 'delivery_address',
|
||||||
color: primaryColor, fontSize: 18),
|
color: primaryColor, fontSize: 18),
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
_isNew
|
||||||
|
? Container()
|
||||||
|
: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.delete,
|
Icons.delete,
|
||||||
color: primaryColor,
|
color: primaryColor,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class FcsShipmentModel extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _loadFcsShipments() async {
|
Future<void> _loadFcsShipments() async {
|
||||||
if (user == null || !user!.hasFcsShipments()) throw "No Privilege";
|
if (user == null || !user!.hasFcsShipments()) return;
|
||||||
String path = "/$fcs_shipment_collection/";
|
String path = "/$fcs_shipment_collection/";
|
||||||
if (listener != null) listener!.cancel();
|
if (listener != null) listener!.cancel();
|
||||||
_fcsShipments = [];
|
_fcsShipments = [];
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class StaffModel extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _loadEmployees() async {
|
Future<void> _loadEmployees() async {
|
||||||
if (user == null || !user!.hasStaffs()) throw "No Privilege";
|
if (user == null || !user!.hasStaffs()) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (listener != null) listener!.cancel();
|
if (listener != null) listener!.cancel();
|
||||||
|
|||||||
@@ -90,7 +90,13 @@ class _TermEditState extends State<TermEdit> {
|
|||||||
],
|
],
|
||||||
bottom: TabBar(
|
bottom: TabBar(
|
||||||
onTap: (index) {
|
onTap: (index) {
|
||||||
// Tab index when user select it, it start from zero
|
if (index == 0) {
|
||||||
|
_focusNodeEng = new FocusNode();
|
||||||
|
FocusScope.of(context).requestFocus(_focusNodeEng);
|
||||||
|
} else {
|
||||||
|
_focusNodeMm = new FocusNode();
|
||||||
|
FocusScope.of(context).requestFocus(_focusNodeMm);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
tabs: [
|
tabs: [
|
||||||
Tab(
|
Tab(
|
||||||
|
|||||||
Reference in New Issue
Block a user