|
@@ -343,7 +343,7 @@ class FinancialManager extends Base{
|
|
|
'goodNo','goodName','unit','num','goodPrice','totalPrice','cat_code','cat_name','tax','inv_fee','inv_buyer_code',
|
|
|
'inv_buyer_name','inv_number','inv_open_date','inv_type','inv_seller_code','inv_seller_name','inv_item_id','inv_good_name',
|
|
|
'inv_cat_code','inv_spec','inv_unit','inv_num','inv_subprice','inv_subtotal','inv_tax','inv_tax_total','inv_price','inv_total',
|
|
|
- 'cat_diff','tax_diff','remark'],
|
|
|
+ 'if(cat_diff=1,"一致","不一致") cat_diff','if(tax_diff=1,"一致","不一致") tax_diff','remark'],
|
|
|
["invoiceCode","type",'source','seller_code','seller_name','inv_number','inv_open_date','inv_type','inv_seller_code','inv_seller_name',
|
|
|
'inv_item_id','inv_good_name','inv_cat_code','inv_spec','inv_unit','inv_num','inv_subprice','inv_subtotal','inv_tax','inv_tax_total'],
|
|
|
[
|
|
@@ -355,7 +355,12 @@ class FinancialManager extends Base{
|
|
|
->field($fields[$param['channel']-1])
|
|
|
->where($where)
|
|
|
->order("id desc")
|
|
|
- ->select()->toArray();
|
|
|
+ ->select()->each(function (&$item){
|
|
|
+ $item['type'] = \app\cxinv\model\FinancialManager::$ManagerType[$item['type']]??"";
|
|
|
+ $item['source'] = \app\cxinv\model\FinancialManager::$ManagerSource[$item['source']]??"";
|
|
|
+ $item['goodType'] = \app\cxinv\model\FinancialManager::$ManagerGoodType[$item['goodType']]??"";
|
|
|
+ if(isset($item['inv_type'])) $item['inv_type'] =\app\cxinv\model\Invoice::$invoiceType[$item['inv_type']]??"";
|
|
|
+ })->toArray();
|
|
|
exportExcel($list,$heade[$param['channel']-1],"manager");
|
|
|
}
|
|
|
}
|