> For the complete documentation index, see [llms.txt](https://kythuat.dtechvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kythuat.dtechvn.com/luong/cac-loi-thuong-gap.md).

# CÁC LỖI THƯỜNG GẶP

## 1. Hạch toán lương sinh ra bút toán có giá trị trong khoảng \[1,12]&#x20;

* giá trị \[1,12] là tháng xử lý
* do khai báo tài khoản hạch toán default có giá trị nên sinh bút toán hạch toán, với giá trị là tháng ( cột tháng trên bảng lương)

```sql
//Câu lệnh kiểm tra giá trị
select identitykey,tenhienthi,ten,fielddefault,* from LuongConfig where nhomluong = 3 and fieldDefault<>''

/// select xong, nhìn dòng đầu tiên, thường là cột tháng, ko có tên hiển thị lấy giá trị cột identityKey để where update

update luongconfig set fieldDefault='', fieldDefault2='',fieldDefault3='',fieldDefault4='',fieldDefault5='',modidate=getdate()
where identitykey=93933
```
