Compare commits
2 Commits
8a0e776ce3
...
4786eb189e
| Author | SHA1 | Date | |
|---|---|---|---|
| 4786eb189e | |||
| f185bf87d0 |
@ -35,7 +35,7 @@ export class ProformaFinder implements IProformaFinder {
|
|||||||
proformaId: UniqueID,
|
proformaId: UniqueID,
|
||||||
transaction?: Transaction
|
transaction?: Transaction
|
||||||
): Promise<Result<Proforma, Error>> {
|
): Promise<Result<Proforma, Error>> {
|
||||||
return this.repository.getByIdInCompany(companyId, proformaId, transaction, {});
|
return this.repository.getByIdInCompany(companyId, proformaId, transaction);
|
||||||
}
|
}
|
||||||
|
|
||||||
async proformaExists(
|
async proformaExists(
|
||||||
@ -51,6 +51,6 @@ export class ProformaFinder implements IProformaFinder {
|
|||||||
criteria: Criteria,
|
criteria: Criteria,
|
||||||
transaction?: Transaction
|
transaction?: Transaction
|
||||||
): Promise<Result<Collection<ProformaSummary>, Error>> {
|
): Promise<Result<Collection<ProformaSummary>, Error>> {
|
||||||
return this.repository.findByCriteriaInCompany(companyId, criteria, transaction, {});
|
return this.repository.findByCriteriaInCompany(companyId, criteria, transaction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,7 +12,6 @@ import {
|
|||||||
import {
|
import {
|
||||||
CreateProformaRequestSchema,
|
CreateProformaRequestSchema,
|
||||||
GetProformaByIdRequestSchema,
|
GetProformaByIdRequestSchema,
|
||||||
IssueProformaByIdParamsRequestSchema,
|
|
||||||
ListProformasRequestSchema,
|
ListProformasRequestSchema,
|
||||||
ReportProformaByIdParamsRequestSchema,
|
ReportProformaByIdParamsRequestSchema,
|
||||||
ReportProformaByIdQueryRequestSchema,
|
ReportProformaByIdQueryRequestSchema,
|
||||||
@ -132,7 +131,7 @@ export const proformasRouter = (params: ModuleParams, deps: ProformasInternalDep
|
|||||||
}
|
}
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
router.put(
|
/*router.put(
|
||||||
"/:proforma_id/issue",
|
"/:proforma_id/issue",
|
||||||
//checkTabContext,
|
//checkTabContext,
|
||||||
|
|
||||||
@ -143,7 +142,7 @@ export const proformasRouter = (params: ModuleParams, deps: ProformasInternalDep
|
|||||||
const controller = new IssuedProformaController(useCase);
|
const controller = new IssuedProformaController(useCase);
|
||||||
return controller.execute(req, res, next);
|
return controller.execute(req, res, next);
|
||||||
}
|
}
|
||||||
);
|
);*/
|
||||||
|
|
||||||
app.use(`${config.server.apiBasePath}/proformas`, router);
|
app.use(`${config.server.apiBasePath}/proformas`, router);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user