|
@@ -2323,15 +2323,14 @@ class Payment extends Base
|
|
b.goodUnit '单位',(b.goodNum-b.thNum) '商品数量',b.goodPrice'商品单价',b.totalPrice'总货款',
|
|
b.goodUnit '单位',(b.goodNum-b.thNum) '商品数量',b.goodPrice'商品单价',b.totalPrice'总货款',
|
|
if(b.cxCode='',b.qrdCode,b.cxCode) 销售主单号,b.goodNo 商品编码,b.goodName 商品名称,c.cat_name 货物和劳务名称,c.merge_code 商品开票类目,c.short_name 商品和服务分类简称,
|
|
if(b.cxCode='',b.qrdCode,b.cxCode) 销售主单号,b.goodNo 商品编码,b.goodName 商品名称,c.cat_name 货物和劳务名称,c.merge_code 商品开票类目,c.short_name 商品和服务分类简称,
|
|
c.tax/100 开票税率,c.inv_good_name 开票商品名称,if(b.open_type =1,'原商品开票',if(b.open_type =2,'子商品开票','')) 开票类型")
|
|
c.tax/100 开票税率,c.inv_good_name 开票商品名称,if(b.open_type =1,'原商品开票',if(b.open_type =2,'子商品开票','')) 开票类型")
|
|
- ->select()
|
|
|
|
- ->toArray();
|
|
|
|
|
|
+ ->select()->toArray();
|
|
|
|
+
|
|
if(empty($cgdlist))$cgdlist=["暂无数据"=>''];
|
|
if(empty($cgdlist))$cgdlist=["暂无数据"=>''];
|
|
else{
|
|
else{
|
|
- $cgdlist->each(function (&$item){
|
|
|
|
- $item['采购单可关联金额']= bcsub($item['总货款'],InvoiceOrder::getInvoiceOrderTotalFee($item['采购单编号']),2);
|
|
|
|
|
|
+ array_walk($cgdlist, function (&$item) {
|
|
|
|
+ $item['采购单可关联金额']= bcsub($item['总货款'],InvoiceOrder::getInvoiceOrderTotalFee($item['采购单编号']),2);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
excelExport("{$param['payNo']}对账采购单详情",array_keys($cgdlist[0]),$cgdlist);
|
|
excelExport("{$param['payNo']}对账采购单详情",array_keys($cgdlist[0]),$cgdlist);
|
|
}
|
|
}
|
|
/** 导出对账单采购单信息
|
|
/** 导出对账单采购单信息
|