Compare commits
No commits in common. "production" and "1.5.1-production.1" have entirely different histories.
production
...
1.5.1-prod
|
@ -42,16 +42,9 @@ export default <ReportConfigEntity>{
|
||||||
},
|
},
|
||||||
|
|
||||||
column_configs: [
|
column_configs: [
|
||||||
// {
|
|
||||||
// column: 'main__payment_date',
|
|
||||||
// query: `to_char(main.payment_date, 'DD-MM-YYYY')`,
|
|
||||||
// label: 'Tgl. Pendapatan',
|
|
||||||
// type: DATA_TYPE.DIMENSION,
|
|
||||||
// format: DATA_FORMAT.TEXT,
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
column: 'main__payment_date',
|
column: 'main__payment_date',
|
||||||
query: `to_char(cast(to_timestamp(main.created_at/1000) as date),'DD-MM-YYYY')`,
|
query: `to_char(main.payment_date, 'DD-MM-YYYY')`,
|
||||||
label: 'Tgl. Pendapatan',
|
label: 'Tgl. Pendapatan',
|
||||||
type: DATA_TYPE.DIMENSION,
|
type: DATA_TYPE.DIMENSION,
|
||||||
format: DATA_FORMAT.TEXT,
|
format: DATA_FORMAT.TEXT,
|
||||||
|
@ -289,22 +282,15 @@ export default <ReportConfigEntity>{
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
filter_configs: [
|
filter_configs: [
|
||||||
// {
|
|
||||||
// filed_label: 'Tgl. Pembatalan',
|
|
||||||
// filter_column: 'main__payment_date',
|
|
||||||
// field_type: FILTER_FIELD_TYPE.date_range_picker,
|
|
||||||
// filter_type: FILTER_TYPE.DATE_IN_RANGE_TIMESTAMP,
|
|
||||||
// // date_format: 'DD-MM-YYYY',
|
|
||||||
// date_format: 'YYYY-MM-DD',
|
|
||||||
// },
|
|
||||||
|
|
||||||
{
|
{
|
||||||
filed_label: 'Tgl. Pembatalan',
|
filed_label: 'Tgl. Pembatalan',
|
||||||
filter_column: 'main__payment_date',
|
filter_column: 'main__payment_date',
|
||||||
field_type: FILTER_FIELD_TYPE.date_range_picker,
|
field_type: FILTER_FIELD_TYPE.date_range_picker,
|
||||||
filter_type: FILTER_TYPE.DATE_IN_RANGE_TIMESTAMP,
|
filter_type: FILTER_TYPE.DATE_IN_RANGE_TIMESTAMP,
|
||||||
date_format: 'DD-MM-YYYY',
|
// date_format: 'DD-MM-YYYY',
|
||||||
|
date_format: 'YYYY-MM-DD',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
filed_label: 'Sumber',
|
filed_label: 'Sumber',
|
||||||
filter_column: 'main__type',
|
filter_column: 'main__type',
|
||||||
|
@ -406,9 +392,8 @@ export default <ReportConfigEntity>{
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
customQueryColumn(column) {
|
customQueryColumn(column) {
|
||||||
// if (column === 'main__payment_date') return 'main.payment_date';
|
if (column === 'main__payment_date') return 'main.payment_date';
|
||||||
// else if (column === 'refund__refund_date') return 'refund.refund_date';
|
else if (column === 'refund__refund_date') return 'refund.refund_date';
|
||||||
if (column === 'refund__refund_date') return 'refund.refund_date';
|
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -255,14 +255,7 @@ export default <ReportConfigEntity>{
|
||||||
{
|
{
|
||||||
column: 'main__payment_card_information',
|
column: 'main__payment_card_information',
|
||||||
query: 'main.payment_card_information',
|
query: 'main.payment_card_information',
|
||||||
label: 'Card Information',
|
label: 'Information',
|
||||||
type: DATA_TYPE.DIMENSION,
|
|
||||||
format: DATA_FORMAT.TEXT,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
column: 'main__payment_code_reference',
|
|
||||||
query: 'main.payment_code_reference',
|
|
||||||
label: 'Payment Reference',
|
|
||||||
type: DATA_TYPE.DIMENSION,
|
type: DATA_TYPE.DIMENSION,
|
||||||
format: DATA_FORMAT.TEXT,
|
format: DATA_FORMAT.TEXT,
|
||||||
},
|
},
|
||||||
|
@ -341,18 +334,6 @@ export default <ReportConfigEntity>{
|
||||||
field_type: FILTER_FIELD_TYPE.input_tag,
|
field_type: FILTER_FIELD_TYPE.input_tag,
|
||||||
filter_type: FILTER_TYPE.TEXT_MULTIPLE_CONTAINS,
|
filter_type: FILTER_TYPE.TEXT_MULTIPLE_CONTAINS,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
filed_label: 'Card Information',
|
|
||||||
filter_column: 'main__payment_card_information',
|
|
||||||
field_type: FILTER_FIELD_TYPE.input_tag,
|
|
||||||
filter_type: FILTER_TYPE.TEXT_IN_MEMBER,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
filed_label: 'Payment Reference',
|
|
||||||
filter_column: 'main__payment_code_reference',
|
|
||||||
field_type: FILTER_FIELD_TYPE.input_tag,
|
|
||||||
filter_type: FILTER_TYPE.TEXT_IN_MEMBER,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
filed_label: 'Tgl. Pengembalian',
|
filed_label: 'Tgl. Pengembalian',
|
||||||
filter_column: 'refund__refund_date',
|
filter_column: 'refund__refund_date',
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { TaxModel } from '../tax/data/models/tax.model';
|
||||||
import { ItemModel } from 'src/modules/item-related/item/data/models/item.model';
|
import { ItemModel } from 'src/modules/item-related/item/data/models/item.model';
|
||||||
import { UpdateTransactionSettingManager } from './domain/usecases/managers/update-transaction-setting.manager';
|
import { UpdateTransactionSettingManager } from './domain/usecases/managers/update-transaction-setting.manager';
|
||||||
import { TransactionModel } from '../transaction/data/models/transaction.model';
|
import { TransactionModel } from '../transaction/data/models/transaction.model';
|
||||||
import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
import { CouchService } from 'src/modules/configuration/couch/data/services/couch.service';
|
||||||
|
|
||||||
@Global()
|
@Global()
|
||||||
@Module({
|
@Module({
|
||||||
|
@ -40,7 +40,6 @@ import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
||||||
CONNECTION_NAME.DEFAULT,
|
CONNECTION_NAME.DEFAULT,
|
||||||
),
|
),
|
||||||
CqrsModule,
|
CqrsModule,
|
||||||
CouchModule,
|
|
||||||
],
|
],
|
||||||
controllers: [
|
controllers: [
|
||||||
SalesPriceFormulaDataController,
|
SalesPriceFormulaDataController,
|
||||||
|
@ -58,6 +57,7 @@ import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
||||||
|
|
||||||
SalesPriceFormulaDataOrchestrator,
|
SalesPriceFormulaDataOrchestrator,
|
||||||
SalesPriceFormulaReadOrchestrator,
|
SalesPriceFormulaReadOrchestrator,
|
||||||
|
CouchService,
|
||||||
],
|
],
|
||||||
exports: [SalesPriceFormulaDataService, SalesPriceFormulaReadService],
|
exports: [SalesPriceFormulaDataService, SalesPriceFormulaReadService],
|
||||||
})
|
})
|
||||||
|
|
|
@ -46,7 +46,7 @@ import { PaymentMethodModel } from '../payment-method/data/models/payment-method
|
||||||
import { TransactionDemographyModel } from './data/models/transaction-demography.model';
|
import { TransactionDemographyModel } from './data/models/transaction-demography.model';
|
||||||
import { PriceCalculator } from './domain/usecases/calculator/price.calculator';
|
import { PriceCalculator } from './domain/usecases/calculator/price.calculator';
|
||||||
import { ItemModel } from 'src/modules/item-related/item/data/models/item.model';
|
import { ItemModel } from 'src/modules/item-related/item/data/models/item.model';
|
||||||
import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
import { CouchService } from 'src/modules/configuration/couch/data/services/couch.service';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
exports: [TransactionReadService],
|
exports: [TransactionReadService],
|
||||||
|
@ -70,7 +70,6 @@ import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
||||||
CONNECTION_NAME.DEFAULT,
|
CONNECTION_NAME.DEFAULT,
|
||||||
),
|
),
|
||||||
CqrsModule,
|
CqrsModule,
|
||||||
CouchModule,
|
|
||||||
],
|
],
|
||||||
controllers: [TransactionDataController, TransactionReadController],
|
controllers: [TransactionDataController, TransactionReadController],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -102,6 +101,8 @@ import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
||||||
|
|
||||||
TransactionDataOrchestrator,
|
TransactionDataOrchestrator,
|
||||||
TransactionReadOrchestrator,
|
TransactionReadOrchestrator,
|
||||||
|
|
||||||
|
CouchService,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class TransactionModule {}
|
export class TransactionModule {}
|
||||||
|
|
Loading…
Reference in New Issue