这是一个3变量。
Inclusive Price = Value from Stored Procedure
Base Price = Inclusive Price / 1.1
Tax Price = Inclusive Price - Base Price
我将该变量转换为代码
dim tax_price as int,dim base_price as int
base_price := {r_sa_pesanan_lampiran;1.total_net}/1.1;
tax_price := {r_sa_pesanan_lampiran;1.total_net} - taxnya;
return tax_price
仍然没有结果。
我怎样才能让它发挥作用?
答案 0 :(得分:0)
// {@tax_price}
{r_sa_pesanan_lampiran;1.total_net} - ({r_sa_pesanan_lampiran;1.total_net}/1.1)
答案 1 :(得分:0)
即使Craig公式也可以使用,但如果想要存储在变量中,则下面是代码。
Local Numbervar tax_price;
Local Numbervar base_price;
base_price := {r_sa_pesanan_lampiran;1.total_net}/1.1;
tax_price := {r_sa_pesanan_lampiran;1.total_net} - base_price;
tax_price;