bug fixed
This commit is contained in:
@@ -24,25 +24,37 @@ class _TopUpHistoryState extends State<TransferHistory> {
|
||||
getTransaction() {
|
||||
listTrans.clear();
|
||||
var date = DateTime.now();
|
||||
var start = DateFormat('yyyy-MM-dd').format(DateTime.now());
|
||||
var end = DateFormat('yyyy-MM-dd').format(DateTime(date.year - 1, date.month, date.day));
|
||||
var start = DateFormat('yyyy-MM-dd').format(DateTime(date.year - 1, date.month, date.day));
|
||||
var end = DateFormat('yyyy-MM-dd').format(DateTime.now());
|
||||
|
||||
var param = jsonEncode(<dynamic, dynamic>{
|
||||
"id": "",
|
||||
"payeeUserAccountId": "",
|
||||
"payerUserAccountId": profile!.id,
|
||||
"requestUserID": profile!.id,
|
||||
"invoiceId": "",
|
||||
"referencE1": "",
|
||||
"referencE2": "",
|
||||
"referencE3": "",
|
||||
"paymentStatus": "",
|
||||
"paymentChannel": "",
|
||||
"qrId": "",
|
||||
"createDatefrom": null,
|
||||
"createDateto": null,
|
||||
"sattleDate": null,
|
||||
"voidDate": null,
|
||||
"refundDate": null,
|
||||
"cancelDate": null
|
||||
"createDatefrom": start,
|
||||
"createDateto": end,
|
||||
"requestName": "",
|
||||
"fullName": ""
|
||||
// "id": "",
|
||||
// "payeeUserAccountId": "",
|
||||
// "payerUserAccountId": profile!.id,
|
||||
// "invoiceId": "",
|
||||
// "referencE1": "",
|
||||
// "referencE2": "",
|
||||
// "referencE3": "",
|
||||
// "paymentStatus": "",
|
||||
// "paymentChannel": "",
|
||||
// "qrId": "",
|
||||
// "createDatefrom": null,
|
||||
// "createDateto": null,
|
||||
// "sattleDate": null,
|
||||
// "voidDate": null,
|
||||
// "refundDate": null,
|
||||
// "cancelDate": null
|
||||
});
|
||||
|
||||
Api.post(context, Api.getTransaction, param).then((value) => {
|
||||
|
||||
Reference in New Issue
Block a user