updates on tran flow

This commit is contained in:
2025-09-01 23:53:53 +02:00
parent 6e2f91d2c0
commit 0bdabe55cc
7 changed files with 52 additions and 5 deletions

View File

@@ -114,4 +114,36 @@ class TransactionController extends ChangeNotifier {
model.repeatFormData = data;
notifyListeners();
}
clearFormData() {
model.formData = FormData(
id: '',
type: '',
billClientId: '',
debitRef: '',
debitCurrency: '',
amount: '',
debitPhone: '',
debitAccount: '',
creditAccount: '',
creditPhone: '',
creditName: '',
creditEmail: '',
billName: '',
errorMessage: '',
status: 'PENDING',
paymentProcessorLabel: '',
charge: '',
gatewayCharge: '',
tax: '',
totalAmount: '',
paymentProcessorName: '',
paymentProcessorImage: '',
providerImage: '',
userId: '',
providerLabel: '',
);
notifyListeners();
}
}