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;
Swati D.
9-24-20
Hi Aldevinas

We will get a response for you asap

Thank you for your question

Swati 9.24
David Delač
9-25-20
Hi Aldevinas,

I'm not able to see an issue with the piece of code that you have pasted here. Maybe you could open a bug report with halcust attached and repeatable situation that I can look at?

Best Regards,
David D.
Aldevinas Katkus
9-25-20
Created byDavid Delač16:36 25 Sep 2020
Hi Aldevinas, I'm not able to see an issue with the piece of code that you have pasted here. Maybe you could open a bug report with halcust attached and repeatable situation that I can look at? Best Regards, David D.
Hi David,
This code is being executed by maintenance to process import files from a specific location on the server. Maybe this is why it does not work for me?
Swati D.
10-1-20
Hi Aldevinas

Is this sorted for you now? Or do you still need help?

Swati 1.10
Aldevinas Katkus
10-5-20
Reported bug: SL>>Invoices>>Official ser. No. blank after saving
No hals are needed to replicate this bug.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Gastón Salomone
Hi David, I´ve done lost of test, including rebuild database, add more level of verbosity, click on every check on Log Messages on database and still, once that function is called server crash. ...
15:59 9 May 2025
Paul Timms
From what I've read, using these will store the updated records in memory and then write them to the database in bulk, instead of each record writing to the database in turn. So perhaps there&apo...
17:53 29 Apr 2025