Created byDavid Delač16:29 10 May 2023
Are you calling it inside ImportSalesInvoicesFromArea or before that qupdating function is called?
It is like this. Just checked again. As you can see ImportSalesInvoicesFromArea() forgets DecimalSeparator.
2023-07-04 17:15:48 AD executing WebStoreTabInvoice CurrentCompany=1 DecimalSeparator=,
2023-07-04 17:15:48 AD ImportSalesInvoicesFromArea DecimalSeparator=
global
updating procedure ImportSalesInvoicesFromArea(...)
begin
Logtext(0,"ImportSalesInvoicesFromArea DecimalSeparator=" & DecimalSeparator);
...
end;
global
procedure WebStoreTabInvoice()
begin
LogText(0,"executing WebStoreTabInvoice CurrentCompany=" & CurrentCompany & " DecimalSeparator=" & DecimalSeparator);
qupdating.ImportSalesInvoicesFromArea(..) //removing qupdating helps to remember DecimalSeparator
queued.StoreResultsEMail(Mailr);
end;
global
procedure WebExtraAPI()
begin
...
oldcomp = CurrentCompany;
//if (newcomp!=oldcomp) then begin <- commenting this out didn't help
if (SetCompany(newcomp,false)) then begin
WebStoreTabInvoice();
end;
end;