mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
chore: spelling
This commit is contained in:
@@ -43,7 +43,7 @@ export class DeleteBill {
|
|||||||
// Validate the givne bill has no associated landed cost transactions.
|
// Validate the givne bill has no associated landed cost transactions.
|
||||||
await this.validators.validateBillHasNoLandedCost(tenantId, billId);
|
await this.validators.validateBillHasNoLandedCost(tenantId, billId);
|
||||||
|
|
||||||
// Validate the purchase bill has no assocaited payments transactions.
|
// Validate the purchase bill has no associated payments transactions.
|
||||||
await this.validators.validateBillHasNoEntries(tenantId, billId);
|
await this.validators.validateBillHasNoEntries(tenantId, billId);
|
||||||
|
|
||||||
// Validate the given bill has no associated reconciled with vendor credits.
|
// Validate the given bill has no associated reconciled with vendor credits.
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export class DeleteSaleEstimate {
|
|||||||
if (oldSaleEstimate.convertedToInvoiceId) {
|
if (oldSaleEstimate.convertedToInvoiceId) {
|
||||||
throw new ServiceError(ERRORS.SALE_ESTIMATE_CONVERTED_TO_INVOICE);
|
throw new ServiceError(ERRORS.SALE_ESTIMATE_CONVERTED_TO_INVOICE);
|
||||||
}
|
}
|
||||||
// Deletes the estimate with associated transactions under UOW enivrement.
|
// Updates the estimate with associated transactions under UOW enivrement.
|
||||||
return this.uow.withTransaction(tenantId, async (trx: Knex.Transaction) => {
|
return this.uow.withTransaction(tenantId, async (trx: Knex.Transaction) => {
|
||||||
// Triggers `onSaleEstimatedDeleting` event.
|
// Triggers `onSaleEstimatedDeleting` event.
|
||||||
await this.eventPublisher.emitAsync(events.saleEstimate.onDeleting, {
|
await this.eventPublisher.emitAsync(events.saleEstimate.onDeleting, {
|
||||||
|
|||||||
Reference in New Issue
Block a user