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]
------------------------------------------------------------------------