home *** CD-ROM | disk | FTP | other *** search
- create apt proc inval_1() as
- begin
- useform sntr_3
- variable status int
-
- call clcst_1(quantity, discount, price, total, status)
-
- if status = 0
- begin
- return
- end
-
- submit
- sqlbegin
- insert sales values ({sqlexpr(storeid)}, {sqlexpr(ordernum)},
- {sqlexpr(orderdate)}, convert(smallint, '{quantity}'),
- {sqlexpr(terms)}, {sqlexpr(titleid)} )
- sqlend
-
- if $channel:errors is NULL
- begin
- print "Values successfully inserted"
- end
- else
- begin
- print "Insert failed"
- $channel:errors = NULL
- end
-
- return
- end
-