Check saved invoice record
Aldevinas Katkus
9-24-20
Operating system: macOS
I am importing invoices from an external system. I noticed that after saving Official Ser. Number becomes blank if it does not conform rules. There is no recordcheck error in this case (checked manually). The Ofic. Number just becomes blank.
How can I detect that Official number has become blank after saving the record?
The following does not work
if (RecordStore(IVr,true)) then begin
IVr2.SerNr=IVr.SerNr;
if (ReadFirstMain(IVr2,1,true)) then begin

if (blank(IVr2.OfficialSerNr)) then begin
StopAlert(IVr2.SerNr & " with no ofic. Nr.");
problemf=true;


end;
end;
end;
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Aldevinas Katkus
8.5 2023-04-19 (build 85550290) In the server on the first run: 2025-10-29 09:07:29 Requesting Lookup address 2025-10-29 09:07:29 Failed to create e-mail back, unknown source register What th...
08:20 29 Oct 2025
Standard ERP 8.5 2024-10-16 Build 85556468 Currently the employee register and the contact register share the same number series. For the Employee form, clients want the code to be the Employee I...
06:51 29 Oct 2025