FIX: send ERP sync request before drawer sync

This commit is contained in:
Frede Hundewadt 2023-06-13 10:16:20 +02:00
parent 323a1404c6
commit 3465509d4b

View file

@ -226,6 +226,7 @@ public partial class AdvisorCustomerViewEditPage : IDisposable
if (string.IsNullOrWhiteSpace(_companyId))
{
_companyId = CompanyId;
_ = await HistoryRepo.RequestErpSync(CompanyId, _company.HistorySync, false);
_invoiceDrawer = await DrawerService.GetInvoiceDrawerAsync(CompanyId, true);
_inventoryDrawer = await DrawerService.GetInventoryDrawerAsync(CompanyId, true);
_activityDrawer = await DrawerService.GetActivityDrawerAsync(CompanyId, true);