mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 03:40:31 +00:00
Fixed Quick Payment Dialogs
PaymentReceives and BillsPayments Controllers expect 'amount' parameter, but webapp sends 'payment_amount'
This commit is contained in:
@@ -28,7 +28,7 @@ function QuickPaymentReceiveForm({
|
||||
paymentReceiveNextNumber,
|
||||
preferredDepositAccount
|
||||
}) {
|
||||
|
||||
|
||||
const {
|
||||
dialogName,
|
||||
invoice,
|
||||
@@ -61,11 +61,12 @@ function QuickPaymentReceiveForm({
|
||||
}));
|
||||
|
||||
const form = {
|
||||
...omit(values, ['payment_receive_no']),
|
||||
...omit(values, ['payment_receive_no', 'payment_amount']),
|
||||
...(!paymentReceiveAutoIncrement && {
|
||||
payment_receive_no: values.payment_receive_no,
|
||||
}),
|
||||
customer_id: values.customer.id,
|
||||
amount: values.payment_amount,
|
||||
entries,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user