mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: add status & opened alert in credit & vendor.
This commit is contained in:
@@ -41,7 +41,7 @@ function RefundVendorCreditForm({
|
||||
// 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 RefundVendorCreditFormProvider({
|
||||
// State provider.
|
||||
const provider = {
|
||||
vendorCredit: {
|
||||
...pick(vendorCredit, ['id', 'formatted_amount', 'currency_code']),
|
||||
amount: vendorCredit.formatted_amount,
|
||||
...pick(vendorCredit, ['id', 'credits_remaining', 'currency_code']),
|
||||
amount: vendorCredit.credits_remaining,
|
||||
},
|
||||
accounts,
|
||||
dialogName,
|
||||
|
||||
Reference in New Issue
Block a user