feat: add sale receipt number.

This commit is contained in:
Ahmed Bouhuolia
2020-10-26 13:47:42 +02:00
parent 1c842662ab
commit d0785c65db
5 changed files with 51 additions and 4 deletions

View File

@@ -66,9 +66,6 @@ export default class SaleInvoicesService extends SalesInvoicesCost {
/**
*
* Validate whether sale invoice number unqiue on the storage.
* @param {Request} req
* @param {Response} res
* @param {Function} next
*/
async validateInvoiceNumberUnique(tenantId: number, invoiceNumber: string, notInvoiceId?: number) {
const { SaleInvoice } = this.tenancy.models(tenantId);