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
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024
Bror-Erik Kotiranta
In NC you hace operations&gt;&gt;ai chats. They are used for these Br, Bror-Erik...
05:12 21 Nov 2024