fix(webstatement): perbaiki logika kondisi periode kosong di job processing
- Memperbaiki kondisi pengecekan `$this->period` yang salah (ekstra tanda kurung) pada beberapa job processing, seperti: 1. `ProcessAtmTransactionJob` 2. `ProcessBillDetailDataJob` 3. `ProcessCategoryDataJob` 4. `ProcessCompanyDataJob` 5. `ProcessCustomerDataJob` 6. `ProcessDataCaptureDataJob` 7. `ProcessFundsTransferDataJob` 8. `ProcessStmtEntryDataJob` 9. `ProcessTellerDataJob` - Menambahkan kejelasan logging untuk kasus ketika periode tidak disediakan (`period === ''`). - Menghapus kode komentar tidak terpakai di `ProcessFtTxnTypeConditionJob`. Perubahan ini memastikan bahwa logika untuk kondisi periode kosong berjalan dengan benar dan menghindari potensi error di runtime. Signed-off-by: Daeng Deni Mardaeni <ddeni05@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
try {
|
||||
set_time_limit(24 * 60 * 60);
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for ATM transaction data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for bill detail data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for category data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for company data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for customer data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for data capture processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -45,11 +45,6 @@ class ProcessFtTxnTypeConditionJob implements ShouldQueue
|
||||
}
|
||||
|
||||
foreach ($this->periods as $period) {
|
||||
// Skip the _parameter folder
|
||||
/*if ($period === '_parameter') {
|
||||
Log::info("Skipping _parameter folder");
|
||||
continue;
|
||||
}*/
|
||||
|
||||
// Construct the filepath based on the period folder name
|
||||
$filePath = "$period/{$this->filename}";
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for funds transfer data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
$processedCount = 0;
|
||||
$errorCount = 0;
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for statement entry data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
try {
|
||||
set_time_limit(24 * 60 * 60);
|
||||
|
||||
if ($this->period === '')) {
|
||||
if ($this->period === '') {
|
||||
Log::warning('No period provided for teller data processing');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user