Variables 如何使用基于公式的水晶报表显示税收价格?
有一个3变量Variables 如何使用基于公式的水晶报表显示税收价格?,variables,crystal-reports,Variables,Crystal Reports,有一个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_p
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
但仍然没有结果
如何使其工作?即使是Craig公式也可以工作,但如果要存储在变量中,下面是代码
// {@tax_price}
{r_sa_pesanan_lampiran;1.total_net} - ({r_sa_pesanan_lampiran;1.total_net}/1.1)
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;
您是在crystal中作为独立应用程序还是在编码中执行此操作?@Siva我正在我的公式编辑器中执行此操作