|
@@ -8,10 +8,13 @@ use think\Model;class ProductCheck extends Base
|
|
|
'id' =>'bigint',//
|
|
|
'checkCode' =>'varchar',//盘点编号
|
|
|
'product_id' =>'bigint',//财务商品id
|
|
|
- 'check_num' =>'bigint',//盘点数量
|
|
|
- 'diff_num' =>'bigint',//盈亏数量
|
|
|
+ 'check_num' =>'decimal',//盘点数量
|
|
|
+ 'diff_num' =>'decimal',//盈亏数量
|
|
|
+ 'stock_num'=>'decimal',//盘点库存数量'
|
|
|
+ 'unit_price'=>'decimal',//单价
|
|
|
'is_diff' =>'tinyint',//1盘盈0盘亏
|
|
|
'check_type' =>'tinyint',//1数据盘点2调整单
|
|
|
+ 'fz_date'=>'varchar',//盘点月份
|
|
|
'apply_id' =>'int',//盘点人
|
|
|
'apply_name' =>'varchar',//
|
|
|
'create_time' =>'datetime',//
|
|
@@ -63,6 +66,7 @@ use think\Model;class ProductCheck extends Base
|
|
|
'type'=>$model->is_diff==1?3:4,
|
|
|
'order_item_id'=>$model->id,
|
|
|
'product_id'=>$id,
|
|
|
+ 'fz_date'=>$model->fz_date,
|
|
|
'num'=>abs($model->diff_num),
|
|
|
'unit_price'=>$product->unit_price,
|
|
|
'rate'=>$product->cat_tax,
|