Browse Source

YT-1588创建开票申请,未税金额没有四舍五入;修改未税金额后,含税金额不对

intex_20241211
张立 2 months ago
parent
commit
4313ec6848
  1. 7
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

7
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

@ -143,9 +143,9 @@ const onChange = (field, cur, formRef)=>{
}
const inputNumberChange = (field, index, row, val) => {
console.log('inputNumberChange',field, index, row, val)
console.log(row['beforeTaxAmount'])
console.log(row['taxAmount'])
// = +,2
row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount']
// /-
row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price']
@ -156,6 +156,9 @@ const inputNumberChange = (field, index, row, val) => {
// taxAmount */100,2
row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //
// = +,2
row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount']
}
const flag = ref(false)

Loading…
Cancel
Save