csv field miss on download fixed
This commit is contained in:
parent
9c003e9a16
commit
068ff023ef
@ -1045,7 +1045,7 @@ export class DealerClaimController {
|
|||||||
|
|
||||||
const rows = items.map(item => {
|
const rows = items.map(item => {
|
||||||
// For Non-GST, we hide HSN (often stored in transactionCode)
|
// For Non-GST, we hide HSN (often stored in transactionCode)
|
||||||
const trnsUniqNo = isNonGst ? '' : (item.transactionCode || '');
|
const trnsUniqNo = item.transactionCode || '';
|
||||||
const claimNumber = requestNumber;
|
const claimNumber = requestNumber;
|
||||||
const invNumber = invoice?.invoiceNumber || '';
|
const invNumber = invoice?.invoiceNumber || '';
|
||||||
const dealerCode = claimDetails?.dealerCode || '';
|
const dealerCode = claimDetails?.dealerCode || '';
|
||||||
@ -1096,16 +1096,16 @@ export class DealerClaimController {
|
|||||||
async retriggerWFMPush(req: Request, res: Response): Promise<void> {
|
async retriggerWFMPush(req: Request, res: Response): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const { requestId: identifier } = req.params;
|
const { requestId: identifier } = req.params;
|
||||||
|
|
||||||
const workflow = await this.findWorkflowByIdentifier(identifier);
|
const workflow = await this.findWorkflowByIdentifier(identifier);
|
||||||
if (!workflow) {
|
if (!workflow) {
|
||||||
return ResponseHandler.error(res, 'Workflow request not found', 404);
|
return ResponseHandler.error(res, 'Workflow request not found', 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
const requestId = (workflow as any).id || (workflow as any).requestId;
|
const requestId = (workflow as any).id || (workflow as any).requestId;
|
||||||
|
|
||||||
await this.dealerClaimService.pushWFMCSV(requestId);
|
await this.dealerClaimService.pushWFMCSV(requestId);
|
||||||
|
|
||||||
return ResponseHandler.success(res, {
|
return ResponseHandler.success(res, {
|
||||||
message: 'WFM CSV push re-triggered successfully'
|
message: 'WFM CSV push re-triggered successfully'
|
||||||
}, 'WFM push re-triggered');
|
}, 'WFM push re-triggered');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user