|
@@ -11,7 +11,7 @@ use think\App;
|
|
|
use think\facade\Validate;
|
|
|
class InvoiceItem extends Base{
|
|
|
public function __construct(App $app) {
|
|
|
- $this->noLogin=["*"];
|
|
|
+
|
|
|
parent::__construct($app);
|
|
|
$this->model = new \app\cxinv\model\InvoiceItem();
|
|
|
}
|
|
@@ -220,6 +220,8 @@ class InvoiceItem extends Base{
|
|
|
->column('b.sequenceNo,b.goodNo,b.goodName,(b.goodNum-thNum) as goodNum,b.goodPrice,b.totalPrice,b.ainv_fee,b.winv_fee,b.apay_fee,b.wpay_fee,
|
|
|
c.merge_code,c.cat_code,c.cat_name,c.short_name,c.tax,c.inv_good_name',"b.sequenceNo");
|
|
|
$orderItem=[];
|
|
|
+ var_dump($cgdInfo);
|
|
|
+ var_dump(array_sum(array_column($param['list'],"total_amount")));
|
|
|
foreach($param["list"] as $v){
|
|
|
if(!$listValid->check($v)) return error($listValid->getError());
|
|
|
if(!isset($itemArr[$v['itemId']])) return error("发票明细不存在");
|