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,
|
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,6 +12,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
CreateProformaRequestSchema,
|
CreateProformaRequestSchema,
|
||||||
GetProformaByIdRequestSchema,
|
GetProformaByIdRequestSchema,
|
||||||
|
IssueProformaByIdParamsRequestSchema,
|
||||||
ListProformasRequestSchema,
|
ListProformasRequestSchema,
|
||||||
ReportProformaByIdParamsRequestSchema,
|
ReportProformaByIdParamsRequestSchema,
|
||||||
ReportProformaByIdQueryRequestSchema,
|
ReportProformaByIdQueryRequestSchema,
|
||||||
@ -131,7 +132,7 @@ export const proformasRouter = (params: ModuleParams, deps: ProformasInternalDep
|
|||||||
}
|
}
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
/*router.put(
|
router.put(
|
||||||
"/:proforma_id/issue",
|
"/:proforma_id/issue",
|
||||||
//checkTabContext,
|
//checkTabContext,
|
||||||
|
|
||||||
@ -142,7 +143,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