Rights to Disallow Selling below or above Item Base Price
SoftIQ Technologies Ltd.
6-6-18
Hello,

My client asked for an Access right to disallow specific users to sell below or above the base price on the item card which I created 2 action rights that check on the Record Action and all working ok. The challenge is that in a Sales Invoice where there are several rows the error message "Price is lower than recommended Selling Price" appears as expected when you try to save the Invoice but it does not highlight which Item is being sold below base price.

Please assist as it is difficult to trace which item is below Base price for an Invoice with say 50 rows. The RecordCheck is as below:

global
updating function LongInt IVVcRecordCheck(record IVVc IVp,record IVVc IV2p,LongInt stat,LongInt long4)
begin
LongInt res;   

//JNM-Added - 2018-04-12 --- Cust. BEGIN
if (DisallowPriceLowerBase_IVVc(IVp)) then begin
RecordCheckError(1000057,"",i,"IVrw.ArtCode");
res = -1;
goto L99;
end;

Version 8.3 2017-07-16
Build 83250800

/John Maina [2018/06/06 10:00 AM]
------------------------------------------------------------------------

Martins Gulbis
6-6-18
Hello John,

From what I understand, HAL coding was used to add the new Access Right. In this case HAL consulting need to be done according to the price list.
Another solution would be to include the features in standard by writing a wish.

HansaWorld Latvija
SoftIQ Technologies Ltd.
6-6-18
Created byMartins Gulbis11:59 6 Jun 2018
Hello John, From what I understand, HAL coding was used to add the new Access Right. In this case HAL consulting need to be done according to the price list. Another solution would be to include the features in standard by writing a wish. HansaWorld La
Hello Martins,

Yes, it is a Customization I did for the client. Can the primitive recordCheckError show which record does not meet the condition in a matrix row?
Will consider logging it as a wish though the client had some urgency to it.

/John Maina [2018/06/06 14:00 PM]
------------------------------------------------------------------------


Paul Timms
6-11-18
I think the line:

RecordCheckError(1000057,"",i,"IVrw.ArtCode");

should be:

RecordCheckError(1000057,"",i,"ArtCode");

Paul
SoftIQ Technologies Ltd.
6-11-18
Created byPaul Timms17:32 11 Jun 2018
I think the line: RecordCheckError(1000057,"",i,"IVrw.ArtCode"); should be: RecordCheckError(1000057,"",i,"ArtCode"); Paul
Dear Paul,

I tried changing as your example but unfortunately this does not highlight which row the item is being sold below base price.

I also tried this but it still did not work:

RecordCheckError(1000057," " & tstr,i,"ArtCode");

Regards,
John.
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
Hi there, Server – tried both Windows Server 2022 and Linux Version - 2025-08-11 and 2026-05-25 We were testing a new version (2025-08-11) with a Halcust that we had migrated from the existing ...
10:11 4 Aug 2026
Kevin Stepper
Hi, years ago we used to have the email and conference module. Did not need it so we dropped it. We hav recently implemented global users, which are all named users and therefor seem to need a m...
18:07 3 Aug 2026