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