Fix for download link
This commit is contained in:
parent
46293cf7a6
commit
6b7f1ac860
|
|
@ -631,8 +631,7 @@ Future handleCreditAction(BuildContext context, List<BaseEntity> credits,
|
|||
case EntityAction.download:
|
||||
store.dispatch(StartLoading());
|
||||
await WebClient()
|
||||
.get(credit.invitationEInvoiceDownloadLink, state.token,
|
||||
rawResponse: true)
|
||||
.get(credit.invitationDownloadLink, state.token, rawResponse: true)
|
||||
.then((response) {
|
||||
store.dispatch(StopLoading());
|
||||
saveDownloadedFile(response.bodyBytes,
|
||||
|
|
|
|||
|
|
@ -829,7 +829,7 @@ void handlePurchaseOrderAction(BuildContext? context,
|
|||
break;
|
||||
case EntityAction.download:
|
||||
await WebClient()
|
||||
.get(purchaseOrder.invitationEInvoiceDownloadLink, state.token,
|
||||
.get(purchaseOrder.invitationDownloadLink, state.token,
|
||||
rawResponse: true)
|
||||
.then((response) {
|
||||
store.dispatch(StopLoading());
|
||||
|
|
|
|||
Loading…
Reference in New Issue