// Copyright (C), 2015, CEU Co., Ltd. // USR Changed by 2015-01-26T15:23:23 Fandy Xie 谢宇帆 // Version : 1.0 // Description : 得到订单行的税率 // Return : static void taxValue(Args _args) { TaxOnItem taxOnItem; percent taxValue; taxGroupData taxGroupData; taxGroup parmTaxGroup = "VAT"; TaxItemGroup parmTaxItemGroup = "VAT17"; ; while select taxGroupData where taxGroupData.TaxGroup == parmTaxGroup join taxOnItem where taxOnItem.TaxCode == taxGroupData.TaxCode && taxOnItem.TaxItemGroup == parmTaxItemGroup { taxValue += taxGroupData.showTaxValue(); } info(strfmt("%1,%2,%3", parmTaxGroup, parmTaxItemGroup, taxValue)); }