Commit 7625a52e authored by 18083's avatar 18083

销项税发票校验调整

parent b119448f
...@@ -253,6 +253,8 @@ ...@@ -253,6 +253,8 @@
var invoice_hd_ids = ''; var invoice_hd_ids = '';
var invoice_kind = records[0].get('invoice_kind'); var invoice_kind = records[0].get('invoice_kind');
var invoice_type = records[0].get('invoice_type'); var invoice_type = records[0].get('invoice_type');
var invoice_kind_type = records[0].get('invoice_kind_type');
var full_elec_invoice_flag = records[0].get('full_elec_invoice_flag');
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
var invoice_status = records[i].get('invoice_status'); var invoice_status = records[i].get('invoice_status');
if (invoice_status != 'NEW' && invoice_status != 'REJECT') { if (invoice_status != 'NEW' && invoice_status != 'REJECT') {
...@@ -263,7 +265,7 @@ ...@@ -263,7 +265,7 @@
$L.showErrorMessage("提示", '普票和专票不能同时勾选!'); $L.showErrorMessage("提示", '普票和专票不能同时勾选!');
return; return;
} }
if(invoice_type != records[i].get('invoice_type')){ if(invoice_kind_type != records[i].get('invoice_kind_type')){
$L.showErrorMessage("提示", '纸质发票与电子发票不能同时勾选!'); $L.showErrorMessage("提示", '纸质发票与电子发票不能同时勾选!');
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment