|
|
@ -695,10 +695,10 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
" temp1.开票数量,\n" + |
|
|
|
" temp1.收货与交货差异,\n" + |
|
|
|
" ISNULL( temp3.Qty, 0 ) 退货数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) 实际发货数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) - ISNULL( temp1.开票数量, 0 ) 未结数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) 未结数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) - ISNULL( temp1.开票数量, 0 ) 实际发货数量,\n" + |
|
|
|
" ISNULL( TEMP2.Price, 0 ) AS 定价,\n" + |
|
|
|
" ISNULL( TEMP2.Price, 0 ) * ( ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) ) 实际发货总金额 \n" + |
|
|
|
" ISNULL( TEMP2.Price, 0 ) * ( ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) - ISNULL( temp1.开票数量, 0 ) ) 实际发货总金额 \n" + |
|
|
|
" FROM\n" + |
|
|
|
" (\n" + |
|
|
|
" SELECT\n" + |
|
|
@ -755,10 +755,10 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
" temp1.开票数量,\n" + |
|
|
|
" temp1.收货与交货差异,\n" + |
|
|
|
" ISNULL( temp3.Qty, 0 ) 退货数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) 实际发货数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) - ISNULL( temp1.开票数量, 0 ) 未结数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) 未结数量,\n" + |
|
|
|
" ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) - ISNULL( temp1.开票数量, 0 ) 实际发货数量,\n" + |
|
|
|
" ISNULL( TEMP2.Price, 0 ) AS 定价,\n" + |
|
|
|
" ISNULL( TEMP2.Price, 0 ) * ( ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) ) 实际发货总金额 \n" + |
|
|
|
" ISNULL( TEMP2.Price, 0 ) * (ISNULL( temp1.发货数量, 0 ) - ISNULL( temp3.Qty, 0 ) - ISNULL( temp1.开票数量, 0 ) ) 实际发货总金额 \n" + |
|
|
|
" FROM\n" + |
|
|
|
" (\n" + |
|
|
|
" SELECT\n" + |
|
|
|