mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: customer/vendor opening balance .
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
} from 'hooks/query';
|
||||
import { useFeatureCan } from 'hooks/state';
|
||||
import { Features } from 'common';
|
||||
import { pick, defaultTo } from 'lodash';
|
||||
import { transfromVendorToForm } from './utils';
|
||||
|
||||
const VendorOpeningBalanceContext = React.createContext();
|
||||
|
||||
@@ -43,15 +43,7 @@ function VendorOpeningBalanceFormProvider({
|
||||
// State provider.
|
||||
const provider = {
|
||||
branches,
|
||||
vendor: {
|
||||
...pick(vendor, [
|
||||
'id',
|
||||
'opening_balance',
|
||||
'opening_balance_exchange_rate',
|
||||
'currency_code',
|
||||
]),
|
||||
},
|
||||
|
||||
vendor: transfromVendorToForm(vendor),
|
||||
isBranchesSuccess,
|
||||
isBranchesLoading,
|
||||
dialogName,
|
||||
|
||||
Reference in New Issue
Block a user