docs format updated
This commit is contained in:
@@ -10,10 +10,12 @@ import 'package:pweb/utils/error/snackbar.dart';
|
||||
|
||||
import 'package:pweb/generated/i18n/app_localizations.dart';
|
||||
|
||||
|
||||
Future<void> downloadPaymentAct(
|
||||
BuildContext context, {
|
||||
required String gatewayService,
|
||||
required String operationRef,
|
||||
required String paymentRef,
|
||||
}) async {
|
||||
final organizations = context.read<OrganizationsProvider>();
|
||||
if (!organizations.isOrganizationSet) {
|
||||
@@ -21,7 +23,8 @@ Future<void> downloadPaymentAct(
|
||||
}
|
||||
final gateway = gatewayService.trim();
|
||||
final operation = operationRef.trim();
|
||||
if (gateway.isEmpty || operation.isEmpty) {
|
||||
final payment = paymentRef.trim();
|
||||
if (gateway.isEmpty || operation.isEmpty || payment.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -33,6 +36,7 @@ Future<void> downloadPaymentAct(
|
||||
organizations.current.id,
|
||||
gateway,
|
||||
operation,
|
||||
payment,
|
||||
);
|
||||
await downloadFile(file);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user