accountingAdd*: initial (working maybe)

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-18 10:12:52 +07:00
parent f68c856340
commit b662469176
3 changed files with 71 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
import { GeneralService } from '../share/generalservice.js'
export class AccountingAddService {
constructor() {
this.generalService = new GeneralService()
}
async getAccountingAdd(database, name) {
const sql = `
SELECT
actseq,
actnam
FROM ${database}.actmst
WHERE actnam = $1
`
const params = [name]
const result = await this.generalService.executeQueryParam(database, sql, params);
return result
}
}