修改发票类型

master
ELF 5 years ago
parent 0f0d52c78f
commit c87b61d94b

@ -383,9 +383,11 @@ class CompanyStatementController extends ThinkController
$data['receive_company'] = $data['first_party_info']; $data['receive_company'] = $data['first_party_info'];
$data['pay_company'] = $data['second_party_info']; $data['pay_company'] = $data['second_party_info'];
} }
if($data['receive_company']['invoice_type'] == 1){ if($data['receive_company']['invoice_type'] == 0){
$data['receive_company']['invoice_type']="无";
} elseif($data['receive_company']['invoice_type'] == 1){
$data['receive_company']['invoice_type']="专票"; $data['receive_company']['invoice_type']="专票";
}else{ } else{
$data['receive_company']['invoice_type']="普票"; $data['receive_company']['invoice_type']="普票";
} }
if ($data['company_belong'] == 9) {//上游 if ($data['company_belong'] == 9) {//上游

@ -157,9 +157,11 @@ class VerifyBillController extends Controller {
$data['receive_company'] = $data['first_party_info']; $data['receive_company'] = $data['first_party_info'];
$data['pay_company'] = $data['second_party_info']; $data['pay_company'] = $data['second_party_info'];
} }
if($data['receive_company']['invoice_type'] == 1){ if($data['receive_company']['invoice_type'] == 0){
$data['receive_company']['invoice_type']="无";
} elseif ($data['receive_company']['invoice_type'] == 1) {
$data['receive_company']['invoice_type']="专票"; $data['receive_company']['invoice_type']="专票";
}else{ } else {
$data['receive_company']['invoice_type']="普票"; $data['receive_company']['invoice_type']="普票";
} }
if ($data['company_belong'] == 9) {//上游 if ($data['company_belong'] == 9) {//上游

@ -186,7 +186,7 @@
<td class="l"><i class="mustmark">*</i>开票类型:</td> <td class="l"><i class="mustmark">*</i>开票类型:</td>
<td class="r"> <td class="r">
<select name="invoice_type" id="invoice_type" class="select_gallery"> <select name="invoice_type" id="invoice_type" class="select_gallery">
<option value="" selected></option> <option value="0" selected></option>
<option value="1">专票</option> <option value="1">专票</option>
<option value="2">普票</option> <option value="2">普票</option>
</select> </select>

@ -274,6 +274,7 @@
<td class="r"> <td class="r">
<div class="input-list input-list-game search_label_rehab"> <div class="input-list input-list-game search_label_rehab">
<select id="invoice_type" name="invoice_type" class="select_gallery" disabled> <select id="invoice_type" name="invoice_type" class="select_gallery" disabled>
<option value="0" <if condition="$data['payinfo']['invoice_type'] eq 0">selected</if>>无</option>
<option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option> <option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option>
<option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option> <option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option>
</select> </select>

@ -269,6 +269,7 @@
<td class="r"> <td class="r">
<div class="input-list input-list-game search_label_rehab"> <div class="input-list input-list-game search_label_rehab">
<select id="invoice_type" name="invoice_type" class="select_gallery" disabled> <select id="invoice_type" name="invoice_type" class="select_gallery" disabled>
<option value="0" <if condition="$data['payinfo']['invoice_type'] eq 0">selected</if>>无</option>
<option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option> <option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option>
<option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option> <option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option>
</select> </select>
@ -351,10 +352,18 @@
<td class="r"> <td class="r">
<div class="input-list input-list-game search_label_rehab"> <div class="input-list input-list-game search_label_rehab">
<select id="invoice_type" name="invoice_type" data-change="${type}.invoice_type" class="select_gallery"> <select id="invoice_type" name="invoice_type" data-change="${type}.invoice_type" class="select_gallery">
{@if party_info.invoice_type==0}
<option value="0" selected></option>
<option value="1">专票</option>
<option value="2">普票</option>
{@/if}
{@if party_info.invoice_type==1} {@if party_info.invoice_type==1}
<option value="0"></option>
<option value="1" selected>专票</option> <option value="1" selected>专票</option>
<option value="2">普票</option> <option value="2">普票</option>
{@else} {@/if}
{@if party_info.invoice_type==2}
<option value="0"></option>
<option value="1">专票</option> <option value="1">专票</option>
<option value="2" selected>普票</option> <option value="2" selected>普票</option>
{@/if} {@/if}

@ -289,6 +289,7 @@
<td class="r"> <td class="r">
<div class="input-list input-list-game search_label_rehab"> <div class="input-list input-list-game search_label_rehab">
<select id="invoice_type" name="invoice_type" class="select_gallery" disabled> <select id="invoice_type" name="invoice_type" class="select_gallery" disabled>
<option value="0" <if condition="$data['payinfo']['invoice_type'] eq 0">selected</if>>无</option>
<option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option> <option value="1" <if condition="$data['payinfo']['invoice_type'] eq 1">selected</if>>专票</option>
<option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option> <option value="2" <if condition="$data['payinfo']['invoice_type'] eq 2">selected</if>>普票</option>
</select> </select>

Loading…
Cancel
Save