mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: add status & opened alert in credit & vendor.
This commit is contained in:
@@ -41,7 +41,7 @@ function RefundCreditNoteForm({
|
||||
// Handles the form submit.
|
||||
const handleFormSubmit = (values, { setSubmitting, setFieldError }) => {
|
||||
const form = {
|
||||
...omit(values, ['currency_code', 'formatted_amount']),
|
||||
...omit(values, ['currency_code', 'credits_remaining']),
|
||||
};
|
||||
|
||||
// Handle request response success.
|
||||
|
||||
@@ -31,8 +31,8 @@ function RefundCreditNoteFormProvider({ creditNoteId, dialogName, ...props }) {
|
||||
// State provider.
|
||||
const provider = {
|
||||
creditNote: {
|
||||
...pick(creditNote, ['id', 'formatted_amount', 'currency_code']),
|
||||
amount: creditNote.formatted_amount,
|
||||
...pick(creditNote, ['id', 'credits_remaining', 'currency_code']),
|
||||
amount: creditNote.credits_remaining,
|
||||
},
|
||||
accounts,
|
||||
dialogName,
|
||||
|
||||
Reference in New Issue
Block a user