mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -671,10 +671,16 @@ export default {
|
|||||||
this.clearAddLine()
|
this.clearAddLine()
|
||||||
},
|
},
|
||||||
onUnitPriceRMB: function () {
|
onUnitPriceRMB: function () {
|
||||||
|
if (!this.form.addLine.unit_price_rmb) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.form.addLine.unit_price_rm = (+this.form.addLine.unit_price_rmb / +this.rate).toFixed(2)
|
this.form.addLine.unit_price_rm = (+this.form.addLine.unit_price_rmb / +this.rate).toFixed(2)
|
||||||
this.form.addLine.total = (+this.form.addLine.unit_price_rm * +this.form.addLine.quantity).toFixed(2)
|
this.form.addLine.total = (+this.form.addLine.unit_price_rm * +this.form.addLine.quantity).toFixed(2)
|
||||||
},
|
},
|
||||||
onUnitPriceRM: function () {
|
onUnitPriceRM: function () {
|
||||||
|
if (!this.form.addLine.unit_price_rm) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.form.addLine.unit_price_rmb = (this.form.addLine.unit_price_rm * this.rate).toFixed(2)
|
this.form.addLine.unit_price_rmb = (this.form.addLine.unit_price_rm * this.rate).toFixed(2)
|
||||||
this.form.addLine.total = (+this.form.addLine.unit_price_rm * +this.form.addLine.quantity).toFixed(2)
|
this.form.addLine.total = (+this.form.addLine.unit_price_rm * +this.form.addLine.quantity).toFixed(2)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user