fix:付款申请-发票信息添加税金等字段
This commit is contained in:
parent
1d4cd4bee0
commit
ab94d4729e
@ -16,6 +16,13 @@
|
||||
|
||||
doTemp.setHtmlEvent("Invoice_code_bak", "onChange", "checkInvoiceCodeBak");
|
||||
doTemp.setHtmlEvent("Invoice_number_bak", "onChange", "checkInvoiceNumberBak");
|
||||
|
||||
//自动计算税金及开票金额合计
|
||||
doTemp.setHtmlEvent("tax_rate", "onChange", "checkInvoiceMoney");
|
||||
doTemp.setHtmlEvent("tax_rate_bak", "onChange", "checkInvoiceMoney");
|
||||
doTemp.setHtmlEvent("Invoice_money", "onChange", "checkInvoiceMoney");
|
||||
doTemp.setHtmlEvent("Invoice_money_bak", "onChange", "checkInvoiceMoney");
|
||||
|
||||
//doTemp.setColTips("", "测试");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
@ -29,6 +36,26 @@
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
//自动计算税金及开票金额合计
|
||||
function checkInvoiceMoney(){
|
||||
var Invoice_money = parseFloat(getItemValue(0,getRow(0),"Invoice_money"));
|
||||
var tax_rate = parseFloat(getItemValue(0,getRow(0),"tax_rate"))/100;
|
||||
//开票金额(开票金额-挂车)/(1+税率)*税率 四舍五入保留两位小鼠
|
||||
var tax_due = roundOff(Invoice_money/(1+tax_rate)*tax_rate,2);//税金
|
||||
setItemValue(0,getRow(0),"tax_due",tax_due);
|
||||
|
||||
var Invoice_money_bak = parseFloat(getItemValue(0,getRow(0),"Invoice_money_bak"));
|
||||
var tax_rate_bak = parseFloat(getItemValue(0,getRow(0),"tax_rate_bak"))/100;
|
||||
//开票金额(开票金额-挂车)/(1+税率)*税率 四舍五入保留两位小鼠
|
||||
var tax_due_bak = roundOff(Invoice_money_bak/(1+tax_rate_bak)*tax_rate_bak,2);//税金
|
||||
setItemValue(0,getRow(0),"tax_due_bak",tax_due_bak);
|
||||
|
||||
//开票金额合计
|
||||
var Invoice_money_total=roundOff((Invoice_money+Invoice_money_bak),2);
|
||||
setItemValue(0,getRow(0),"Invoice_money_total",Invoice_money_total);
|
||||
}
|
||||
|
||||
//发票号码-挂车校验
|
||||
function checkInvoiceNumberBak(){
|
||||
//取值
|
||||
|
||||
@ -1317,6 +1317,10 @@
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
|
||||
<attribute name="tax_rate" label="税率" type="STRING" length="20"/>
|
||||
<attribute name="tax_rate_bak" label="税率_挂车" type="STRING" length="20"/>
|
||||
<attribute name="tax_due_total" label="税金合计" type="STRING" length="32"/>
|
||||
<attribute name="Invoice_money_total" label="开票金额合计" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -1349,6 +1353,10 @@
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
|
||||
<attribute name="tax_rate" label="税率" type="STRING" length="20"/>
|
||||
<attribute name="tax_rate_bak" label="税率_挂车" type="STRING" length="20"/>
|
||||
<attribute name="tax_due_total" label="税金合计" type="STRING" length="32"/>
|
||||
<attribute name="Invoice_money_total" label="开票金额合计" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -97,4 +97,23 @@ public interface LB_INVOICE_INFO{
|
||||
* 更新时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
|
||||
|
||||
/**
|
||||
* ˰ÂÊ STRING(100)<br>
|
||||
*/
|
||||
public static final String tax_rate = "tax_rate";
|
||||
/**
|
||||
* ˰ÂÊ_¹Ò³µ STRING(100)<br>
|
||||
*/
|
||||
public static final String tax_rate_bak = "tax_rate_bak";
|
||||
/**
|
||||
* ˰½ðºÏ¼Æ STRING(100)<br>
|
||||
*/
|
||||
public static final String tax_due_total = "tax_due_total";
|
||||
/**
|
||||
* ¿ªÆ±½ð¶îºÏ¼Æ STRING(100)<br>
|
||||
*/
|
||||
public static final String Invoice_money_total = "Invoice_money_total";
|
||||
|
||||
}
|
||||
@ -101,4 +101,21 @@ public interface LB_INVOICE_INFO_TEMP{
|
||||
* 更新时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
|
||||
/**
|
||||
* ˰ÂÊ STRING(100)<br>
|
||||
*/
|
||||
public static final String tax_rate = "tax_rate";
|
||||
/**
|
||||
* ˰ÂÊ_¹Ò³µ STRING(100)<br>
|
||||
*/
|
||||
public static final String tax_rate_bak = "tax_rate_bak";
|
||||
/**
|
||||
* ˰½ðºÏ¼Æ STRING(100)<br>
|
||||
*/
|
||||
public static final String tax_due_total = "tax_due_total";
|
||||
/**
|
||||
* ¿ªÆ±½ð¶îºÏ¼Æ STRING(100)<br>
|
||||
*/
|
||||
public static final String Invoice_money_total = "Invoice_money_total";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user