Have you put 'set trace on' at the top of your eep, and added watch variables 
so you can see what's happening?

Karen

 

 

 

-----Original Message-----
From: Albert Berry <[email protected]>
To: rbase-l <[email protected]>
Sent: Thu, Aug 17, 2017 11:37 am
Subject: Re: [RBASE-L] - This worked previously as a on click eep but not now 
under version X





Some ideas
- Does Costs have a PK that is not being updated with a new value on the insert?
- Should your insert include the value of the current row for reference?


Albert



On Aug 17, 2017, at 8:01 AM, DB GEOINFO <[email protected]> wrote:



Simple problem. Old fashioned. This just calculates a 10% tax except when less 
is levied or sometimes zero. Simple but doesn’t work anymore. Nothing happens. 
Gst is not updated. How should I re-write it?
 
 
EEP
*(calc_gst)
*(Y = 10% gst, N = 0 gst, X = manual gst entry)
 
SET VAR vgst1 = .CGST
SET VAR vcamt = .CAmt
SET VAR vynx = .GstYN
SET VAR vgst = 0
SWITCH (.vynx)
  CASE 'Y'
    SET VAR vgst = (.vcamt/11)
    BREAK
  CASE 'N'
    SET VAR vgst = 0
    BREAK
  CASE 'X'
    SET VAR vgst = .vgst1
    BREAK
ENDSW
 
INSERT INTO Costs (CGst) VALUES (.vgst)
 
RECALC VARIABLES
RETURN
 
Drake-Brockman Geoinfo Pty Ltd 
404 Great Eastern Highway 
Woodbridge, Perth, WA, Australia, 6056
Tel +61 8 9274 5477 
Mob +61427 525952 
Email [email protected]
Web www. dbgeoinfo.net.au
Dropbox URL:  https://www.hightail.com/u/DBGEOINFO
 



-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.




-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to