Commit 194a1184 by Nattana Chaiyamat

ทะเบียนบริษัท

parent 4637f0fb
......@@ -135,7 +135,10 @@ export class CompanyRegistrationPageComponent {
}
dataListCheck() {
const dataCheck = this.dataListFilter();
this.isDataListCheckedAll = dataCheck.length ? dataCheck.every(x => x.check) : false;
this.isDataListCheckedAll = dataCheck.length ? dataCheck.filter(x => x.data.code != '100').every(x => x.check) : false;
if (dataCheck.length == 1 && dataCheck.find(x => x.data.code == '100')) {
this.isDataListCheckedAll = false
}
this.numDataListChecked = this.dataList.filter(x => x.check).length;
if (this.dataList.some(x => x.check && x.data.code == '100')) {
this.numDataListChecked = this.numDataListChecked - 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment