Hi...
The script I need to use involves two tables. I am using the PO Receipt Header and adding the PO Receipt Tax Summary file. If there is a Use Tax amount in that added file, then the script needs to add a Y for the Use Tax in the Receipt Header. I'm getting errors or it is just not working. Here is an example of what I'm trying to do. Maybe you can help...
Thank you.
B
ponumb = ""
usetx = ""
usetxamt = 0
retVal = oBusObj.GetValue ("PurchaseOrderNo$", ponumb)
retVal = oBusObj.GetValue ("UseTax$", usetx)
Set oRecTx = oSession.AsObject(oSession.GetObject("PO_ReceiptTaxSummary_bus"))
retVal = oRecTx.SetKeyValue("UseTaxAmt", usetxamt)
if usetxamt > 0 then
usetx = Y
retVal = oBusObj.SetValue("UseTax$, usetx)
End If