Disallow Posting POS Invoices if past Invoices exist (Chronology)
SoftIQ Technologies Ltd.
8-25-17
Hello;

My client in retail using POS Module has experienced an issue where past POS Invoices which have not been finished are being taken advantage of by Users. What they want is if there is an existing POS Invoice that was not finished in the past the system to disallow posting until they are either finished or deleted.

I had tried to use the same logic used in “Force chronology for Invoice” but it is not working please assist.

This is what I have in Tools>>StockTools4.hal

switch (MainStockRec.Chronology) begin
case 1: keystr = "LocOK";
case 2: keystr = "OKFlagTransDate";
end;
if (ReadFirstKey(keystr,IVCashr,3,matchf) and (IVCashr.OKFlag==0) and
(IVCashr.TransDate<dp) and ((fnr!="IVCashVc") or (IVCashr.SerNr!=SerNr))) then begin
errcode = 1990;
res = true;
goto LExistStockTrans;
end;

Version: 8.3 2017-07-16
Build 83250800

/John Maina [2017/08/25 19:30 PM]
------------------------------------------------------------------------
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
Piotr Wycichowski
Is it something when a user tried to use any of AI commands in SERP? /Piotr W....
10:07 8 Nov 2024
Brittany McGrath
Thank you for your post Lilian. I see this post has been submitted twice and the second post is being addressed so I will close this duplicate. Thank you. ...
09:41 5 Nov 2024