Page 1 of 1

Setting the SOLDFOR price

Posted: Tue Jul 30, 2019 8:53 am
by JeffGrant
Hi,

I have a script which picks up STOCK-> H as the SOLDFOR price - no drama.

The line is Contents->SoldFor = GetField("H") - all good.

How do I then assign the value of Contents->SoldFor to be the "Sell Price" in the Invoice Items Screen?

Thanks

UPDATE: Re: Setting the SOLDFOR price

Posted: Tue Jul 30, 2019 5:14 pm
by JeffGrant
UPDATE...
I have been able to write the vale that I require, where it is needed, using
WriteItemValue("UNITSELL", GetField('H'))

However, for some reason after this step completes, the required value is overwritten by the ListPriceExGSt value?

As Professor Sum De Miller used to say - Why is that so?

thanks

Re: Setting the SOLDFOR price

Posted: Tue Jul 30, 2019 6:51 pm
by JeffGrant
Ok, I figured out that I amusing the wrong script hook. I am using R-STOH.mac.

For now I am using this hook to echo a message to remind me to enter the price I require.

Is there a hook that gets activated right after the Invoice Item line gets populated?

None of the MAC files listed in the help files seem to be around this point.

Thanks

Re: Setting the SOLDFOR price - SOLVED

Posted: Mon Aug 05, 2019 1:05 pm
by JeffGrant
This thread is closed. The correct script to use is r-cspend.mac