@ -122,7 +122,12 @@
IFNULL(j.price_rate,0) contractPrice,
IFNULL(j.price_rate,0) contractPrice,
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_storage_poundlist a
from jg_warehousing_storage_poundlist a
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -134,6 +139,7 @@
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_storage_id in
where a.warehousing_storage_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -166,7 +172,12 @@
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
c.business_order_id businessOrderId
c.business_order_id businessOrderId,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_storage_poundlist a
from jg_warehousing_storage_poundlist a
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -179,6 +190,7 @@
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_storage_id in
where a.warehousing_storage_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -211,7 +223,12 @@
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
c.business_order_id businessOrderId
c.business_order_id businessOrderId,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_storage_poundlist a
from jg_warehousing_storage_poundlist a
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -224,6 +241,7 @@
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_storage_id in
where a.warehousing_storage_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -255,7 +273,12 @@
IFNULL(j.price_rate,0) contractPrice,
IFNULL(j.price_rate,0) contractPrice,
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_storage_poundlist a
from jg_warehousing_storage_poundlist a
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -268,7 +291,7 @@
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_warehousing_storage_product l on l.warehousing_storage_id = b.id
LEFT JOIN jg_warehousing_storage_product l on l.warehousing_storage_id = b.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_storage_id in
where a.warehousing_storage_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -302,7 +325,12 @@
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
c.business_order_id businessOrderId
c.business_order_id businessOrderId,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_outbound_poundlist a
from jg_warehousing_outbound_poundlist a
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -314,6 +342,7 @@
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_outbound_id in
where a.warehousing_outbound_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -345,7 +374,12 @@
IFNULL(j.price_rate,0) contractPrice,
IFNULL(j.price_rate,0) contractPrice,
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_outbound_poundlist a
from jg_warehousing_outbound_poundlist a
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -358,6 +392,7 @@
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_outbound_id in
where a.warehousing_outbound_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -390,7 +425,12 @@
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice,
c.business_order_id businessOrderId
c.business_order_id businessOrderId,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_outbound_poundlist a
from jg_warehousing_outbound_poundlist a
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -403,6 +443,7 @@
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_warehousing_outbound_product l on l.warehousing_outbound_id = b.id
LEFT JOIN jg_warehousing_outbound_product l on l.warehousing_outbound_id = b.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_outbound_id in
where a.warehousing_outbound_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">
@ -435,7 +476,12 @@
IFNULL(j.price_rate,0) contractPrice,
IFNULL(j.price_rate,0) contractPrice,
f.unit settlementUnit,
f.unit settlementUnit,
k.name productName,
k.name productName,
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice
IFNULL(ROUND(c.purchase_amount / f.net_weight, 6),0) settlementPrice,
m.business_price businessPrice,
m.tax tax,
m.tax_count taxCount,
m.not_tax_price notTaxPrice,
m.not_tax_count notTaxCount
from jg_warehousing_outbound_poundlist a
from jg_warehousing_outbound_poundlist a
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
LEFT JOIN jg_voucher c on a.voucher_id = c.id
@ -448,6 +494,7 @@
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract i on h.contract_id = i.id
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_contract_commodity j on (j.contract_id = i.id and f.product_id = j.product_id)
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_product k on f.product_id = k.id
LEFT JOIN jg_business_order_product_relational m on (h.id = m.business_order_id and c.order_no = m.ord_ln)
where a.warehousing_outbound_id in
where a.warehousing_outbound_id in
<foreach item= "item" index= "index" collection= "storageIdList"
<foreach item= "item" index= "index" collection= "storageIdList"
open="(" separator="," close=")">
open="(" separator="," close=")">