|
|
@ -64,12 +64,10 @@ |
|
|
qd.quote_tax_total_price, |
|
|
qd.quote_tax_total_price, |
|
|
qd.quote_tax_unit_price, |
|
|
qd.quote_tax_unit_price, |
|
|
qd.currency1, |
|
|
qd.currency1, |
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency1, |
|
|
|
|
|
qd.site) as currencyDesc1, |
|
|
|
|
|
|
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency1, qd.site) as currencyDesc1, |
|
|
qd.exchange_rate1, |
|
|
qd.exchange_rate1, |
|
|
qd.currency2, |
|
|
qd.currency2, |
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency2, |
|
|
|
|
|
qd.site) as currencyDesc2, |
|
|
|
|
|
|
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency2, qd.site) as currencyDesc2, |
|
|
qd.exchange_rate2, |
|
|
qd.exchange_rate2, |
|
|
qd.moq, |
|
|
qd.moq, |
|
|
qd.currency_total_cost1, |
|
|
qd.currency_total_cost1, |
|
|
@ -84,11 +82,9 @@ |
|
|
pp.plm_part_no, |
|
|
pp.plm_part_no, |
|
|
pp.ifs_part_no, |
|
|
pp.ifs_part_no, |
|
|
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate |
|
|
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate |
|
|
|
|
|
|
|
|
from plm_quote_detail qd |
|
|
from plm_quote_detail qd |
|
|
left join plm_quote q on qd.quote_id = q.id |
|
|
left join plm_quote q on qd.quote_id = q.id |
|
|
left join part pp |
|
|
|
|
|
on qd.part_no = pp.part_no and qd.site = pp.site |
|
|
|
|
|
|
|
|
left join part pp on qd.part_no = pp.part_no and qd.site = pp.site |
|
|
<where> |
|
|
<where> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
and qd.id = #{id} |
|
|
and qd.id = #{id} |
|
|
|