refactoring: payment receive and sale invoice actions.

This commit is contained in:
Ahmed Bouhuolia
2020-10-25 18:30:44 +02:00
parent 39d1875cbb
commit 426f9fcf55
20 changed files with 820 additions and 1069 deletions

View File

@@ -69,4 +69,17 @@ export default class PaymentReceive extends TenantModel {
}
};
}
/**
* Model defined fields.
*/
static get fields() {
return {
created_at: {
label: 'Created at',
column: 'created_at',
columnType: 'date',
},
};
}
}

View File

@@ -123,6 +123,4 @@ export default class SaleInvoice extends TenantModel {
.where('id', invoiceId)
[changeMethod]('payment_amount', Math.abs(amount));
}
}