bug fixed

This commit is contained in:
nutchayut
2024-12-25 16:50:33 +07:00
parent e6e3de4b6a
commit f6b69c6c56
6 changed files with 114 additions and 33 deletions

View File

@@ -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) => {