Compare commits
No commits in common. "4786eb189e2bb37c431ec4ca0e3d8ec869f8fc67" and "8a0e776ce37645a31cdbe80f16daba5a2650586f" have entirely different histories.
4786eb189e
...
8a0e776ce3
@ -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,6 +12,7 @@ import {
|
||||
import {
|
||||
CreateProformaRequestSchema,
|
||||
GetProformaByIdRequestSchema,
|
||||
IssueProformaByIdParamsRequestSchema,
|
||||
ListProformasRequestSchema,
|
||||
ReportProformaByIdParamsRequestSchema,
|
||||
ReportProformaByIdQueryRequestSchema,
|
||||
@ -131,7 +132,7 @@ export const proformasRouter = (params: ModuleParams, deps: ProformasInternalDep
|
||||
}
|
||||
);*/
|
||||
|
||||
/*router.put(
|
||||
router.put(
|
||||
"/:proforma_id/issue",
|
||||
//checkTabContext,
|
||||
|
||||
@ -142,7 +143,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