Compare commits

...

6 Commits

Author SHA1 Message Date
Mohamad Ihsan 5bafb81d8d bugs fixed topup station cashless 2026-01-12 12:54:50 +07:00
Mohamad Ihsan 1dd7860c0b enhancement for cash in sales station 2026-01-08 19:58:57 +07:00
Mohamad Ihsan 1cf06d1fdd bugs fixed query 2025-12-16 17:29:47 +07:00
Mohamad Ihsan be2cedc869 bug fixed completing data sales 2025-12-16 16:47:36 +07:00
Mohamad Ihsan f5f75381ca adding version and description 2025-10-30 21:08:19 +07:00
Mohamad Ihsan 5cbdccca11 update packages 2025-10-30 21:07:49 +07:00
4 changed files with 2620 additions and 8420 deletions
+2 -2
View File
@@ -583,7 +583,7 @@ const getPartnerReconSalesInternal = async (trx) => {
'tmp.c_account_sales_revenue',
'tmp.c_account_code_sales_ar',
trx.raw(`CASE WHEN to_char(tdpr.d_payment, 'YYYYMM') >= to_char(tdsi.d_invoice_date, 'YYYYMM')
THEN 'IP' ELSE 'OP'
THEN 'IP' ELSE 'IP'
END c_in_period`),
])
.from('trx.t_d_sales_internal AS tdskm')
@@ -627,7 +627,7 @@ const getPartnerReconTopUpCashlessInternal = async (trx) => {
'tmp.c_account_topup',
'tmp.c_account_code_topup',
trx.raw(`CASE WHEN to_char(tdpr.d_payment, 'YYYYMM') >= to_char(tdsi.d_invoice_date, 'YYYYMM')
THEN 'IP' ELSE 'OP'
THEN 'IP' ELSE 'IP'
END c_in_period`),
])
.from('trx.t_d_topup_cashless_internal AS tdskm')
+4
View File
@@ -170,6 +170,7 @@ const completingDataSalesInternal = async (ppn) => {
trx.t_d_sales_internal.is_complete is not true
AND trx.t_d_sales_internal.i_card_price > 0
AND trx.t_d_sales_internal.i_sales_invoice_internal is null
AND t_m_card_theme.c_status = 'A'
ORDER BY
trx.t_d_sales_internal.c_card_number,
t_m_card_theme.c_card_type_code,
@@ -214,6 +215,7 @@ const completingDataSalesInternal = async (ppn) => {
AND trx.t_d_sales_internal.i_old_card_price > 0
AND trx.t_d_sales_internal.c_category IN ('N', 'W')
AND trx.t_d_sales_internal.i_sales_invoice_internal is null
AND t_m_card_theme.c_status = 'A'
ORDER BY
trx.t_d_sales_internal.c_old_card_number,
t_m_card_theme.c_card_type_code,
@@ -275,6 +277,7 @@ const completingDataSalesNewCard = async (ppn) => {
trx.t_d_sales_internal.is_complete is not true
AND trx.t_d_sales_internal.i_card_price > 0
AND trx.t_d_sales_internal.i_sales_invoice_internal is null
AND t_m_card_theme.c_status = 'A'
ORDER BY
trx.t_d_sales_internal.c_card_number,
t_m_card_theme.c_card_type_code,
@@ -320,6 +323,7 @@ const completingDataSalesOldCard = async (ppn) => {
AND trx.t_d_sales_internal.i_old_card_price > 0
AND trx.t_d_sales_internal.c_category IN ('N', 'W')
AND trx.t_d_sales_internal.i_sales_invoice_internal is null
AND t_m_card_theme.c_status = 'A'
ORDER BY
trx.t_d_sales_internal.c_old_card_number,
t_m_card_theme.c_card_type_code,
+2606 -8412
View File
File diff suppressed because it is too large Load Diff
+8 -6
View File
@@ -1,7 +1,7 @@
{
"name": "topuponline",
"version": "1.6.2",
"description": "pos cms integration",
"name": "onlinetopup-v1",
"version": "1.6.3",
"description": "update packages",
"main": "index.js",
"scripts": {
"start": "nodemon index",
@@ -37,11 +37,13 @@
"moment": "^2.29.3",
"node-cron": "^3.0.1",
"pg": "^8.6.0",
"pm2": "^5.2.0",
"pm2": "^6.0.13",
"prom-client": "^14.2.0",
"redis": "^4.6.5",
"response-time": "^2.3.2",
"simple-update-notifier": "^2.0.0",
"sticky-session": "^0.1.0",
"superagent": "^10.2.3",
"winston": "^3.7.2",
"winston-daily-rotate-file": "^4.7.1",
"winston-loki": "^6.0.6",
@@ -50,8 +52,8 @@
},
"devDependencies": {
"jest": "^29.0.2",
"nodemon": "^2.0.7",
"supertest": "^6.2.4"
"nodemon": "^3.1.10",
"supertest": "^7.1.3"
},
"jest": {
"testEnvironment": "node",