mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix 3rd decimal bug with purchase orders
This commit is contained in:
@@ -211,7 +211,7 @@
|
|||||||
this.submit(route('api.transaction.po.create', this.data.id), 'post', this.section, true, true);
|
this.submit(route('api.transaction.po.create', this.data.id), 'post', this.section, true, true);
|
||||||
},
|
},
|
||||||
successHandler(){
|
successHandler(){
|
||||||
if(this.poTotal === this.data.amount){
|
if((Math.round((this.poTotal + Number.EPSILON) * 100) / 100).toFixed(2) === (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2)){
|
||||||
this.submitted = true;
|
this.submitted = true;
|
||||||
}
|
}
|
||||||
this.updateList()
|
this.updateList()
|
||||||
|
|||||||
Reference in New Issue
Block a user