coopcycle-web icon indicating copy to clipboard operation
coopcycle-web copied to clipboard

Details from recurrent rules not showing on tasks

Open AdrienSICKLO opened this issue 3 years ago • 2 comments

When filling details on the recurrent rules, the contact and phone number details are not displayed nor on the dispatch nor on the APp for the courier. See pictures

image Screenshot_2022-07-05-16-45-20-277_fr coopcycle

AdrienSICKLO avatar Jul 05 '22 14:07 AdrienSICKLO

The contactName is not displayed by the app actually, even for "normal" tasks

https://github.com/coopcycle/coopcycle-app/blob/8ce1f42f36a480875acc420a540b993255a53b06/src/navigation/task/components/Details.js#L45-L47

Would need a small change on the app to display it properly.

alexsegura avatar Jul 06 '22 12:07 alexsegura

For the phone number, we need to investigate. Indeed, the telephone property seems to be correctly stored in the task_rrule.template column in database (the JSON is correct, it is stored at address.telephone).

Maybe it's the same issue as #3306.

alexsegura avatar Jul 06 '22 13:07 alexsegura

Seems like an issue with address updating. When creating a recurrent rule the address is half saved (contactName, company and telephone are not saved). When creating new tasks from recurrent rule, it does not update the address even though it has more data in template.

biologeek avatar Oct 09 '22 20:10 biologeek

This should have been fixed here 5064c0a0883bedfb5bd693b463b7fa10368f440e...69713f2bf58f302450d74f121784d6eb1aa1ac57

alexsegura avatar Oct 10 '22 08:10 alexsegura