Compare commits
2 Commits
1.5.2-alph
...
developmen
Author | SHA1 | Date |
---|---|---|
|
e92f325807 | |
|
66d76634b7 |
|
@ -48,7 +48,9 @@ export class SalesPriceFormulaDataService extends BaseDataService<SalesPriceForm
|
||||||
}
|
}
|
||||||
|
|
||||||
async sentToBlackHole() {
|
async sentToBlackHole() {
|
||||||
const transactionSettingData = await this.transactionSetting.findOne({});
|
const transactionSettingData = await this.transactionSetting.findOne({
|
||||||
|
where: {},
|
||||||
|
});
|
||||||
const percentage = transactionSettingData?.value ?? 100;
|
const percentage = transactionSettingData?.value ?? 100;
|
||||||
|
|
||||||
// const transactionPercentage = Math.floor(Math.random() * 100) + 1;
|
// const transactionPercentage = Math.floor(Math.random() * 100) + 1;
|
||||||
|
|
|
@ -25,6 +25,7 @@ export class SalesPriceFormulaDataController {
|
||||||
return await this.orchestrator.update(data);
|
return await this.orchestrator.update(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Public(true)
|
||||||
@Put()
|
@Put()
|
||||||
async updateTransactionSetting(
|
async updateTransactionSetting(
|
||||||
@Body() data: TransactionSettingDto,
|
@Body() data: TransactionSettingDto,
|
||||||
|
|
|
@ -16,6 +16,7 @@ export class SalesPriceFormulaReadController {
|
||||||
return await this.orchestrator.detail();
|
return await this.orchestrator.detail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Public(true)
|
||||||
@Get('detail')
|
@Get('detail')
|
||||||
async getTransactionSetting(): Promise<any> {
|
async getTransactionSetting(): Promise<any> {
|
||||||
return await this.orchestrator.getTransactionSetting();
|
return await this.orchestrator.getTransactionSetting();
|
||||||
|
|
Loading…
Reference in New Issue