mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: payment receive model relation with customer.
This commit is contained in:
@@ -211,7 +211,7 @@ function ExpenseForm({
|
|||||||
initialValues: {
|
initialValues: {
|
||||||
...initialValues,
|
...initialValues,
|
||||||
},
|
},
|
||||||
onSubmit: async (values, { setSubmitting, setErrors, resetForm }) => {
|
onSubmit: (values, { setSubmitting, setErrors, resetForm }) => {
|
||||||
setSubmitting(true);
|
setSubmitting(true);
|
||||||
const totalAmount = values.categories.reduce((total, item) => {
|
const totalAmount = values.categories.reduce((total, item) => {
|
||||||
return total + item.amount;
|
return total + item.amount;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export default class PaymentReceive extends TenantModel {
|
|||||||
to: 'contacts.id',
|
to: 'contacts.id',
|
||||||
},
|
},
|
||||||
filter(query) {
|
filter(query) {
|
||||||
query.where('contact_type', 'Customer');
|
query.where('contact_service', 'customer');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user