|
@@ -482,6 +482,8 @@ module.exports = app => {
|
|
|
updateData.m_tax_tp = this.ctx.helper.round(this.ctx.helper.mul(msbInfo.m_tp, (1 + this.ctx.helper.div(data.m_tax, 100))), this.ctx.material.decimal.tp);
|
|
|
} else if (needUp === 'm_up_risk' || needUp === 'm_down_risk' || needUp === 'basic_price') {
|
|
|
const basic_price = needUp === 'basic_price' ? data.basic_price : mbInfo.basic_price;
|
|
|
+ mbInfo.m_up_risk = data.m_up_risk !== undefined ? data.m_up_risk : mbInfo.m_up_risk;
|
|
|
+ mbInfo.m_down_risk = data.m_down_risk !== undefined ? data.m_down_risk : mbInfo.m_down_risk;
|
|
|
const [msg_spread, m_spread] = await this.getSpread(mbInfo, msbInfo.msg_tp, this.ctx.material.decimal.up, basic_price);
|
|
|
updateData.msg_spread = msg_spread;
|
|
|
updateData.m_spread = m_spread;
|