invoiceninja / admin-portal

Invoice Ninja: Desktop/mobile admin portal built with Flutter
https://demo.invoiceninja.com
Other
1.56k stars 521 forks source link

frequency id must be an integer (scheduled emails) #618

Closed bananacy closed 6 months ago

bananacy commented 7 months ago

When creating a schedule to email a statement, if i set Frequency to once I get this error : https://ibb.co/PggGjR1

turbo124 commented 7 months ago

@hillelcoren I believe we only allow once to be set when emailing entities?

hillelcoren commented 7 months ago

For entities that's correct however this issue is for statements.

It looks like the React app doesn't provide this option but I think it should probably be supported.

The Flutter app is sending an empty string for once, let me know if you'd like me to change it.

turbo124 commented 7 months ago

@hillelcoren noted, the api only supports no frequency being set for emailing entities

hillelcoren commented 7 months ago

Ok, thanks! I'll change to null in the AP which should fix it.

hillelcoren commented 6 months ago

The 'Once' option has been removed, you can set the remaining cycles to 1 to achieve the same results.