mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: Vendor Credit note.
This commit is contained in:
@@ -5,7 +5,7 @@ const CreditNoteDeleteAlert = React.lazy(() =>
|
||||
);
|
||||
|
||||
/**
|
||||
* Sales Credit notes alerts.
|
||||
* Credit notes alerts.
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ function CreditNotesActionsBar({
|
||||
|
||||
// Handle table row size change.
|
||||
const handleTableRowSizeChange = (size) => {
|
||||
addSetting('salesCreditNote', 'tableSize', size);
|
||||
addSetting('creditNote', 'tableSize', size);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -22,12 +22,12 @@ function CreditNotesList({
|
||||
resetCreditNotesTableState,
|
||||
}) {
|
||||
// Resets the credit note table state once the page unmount.
|
||||
React.useEffect(
|
||||
() => () => {
|
||||
resetCreditNotesTableState();
|
||||
},
|
||||
[resetCreditNotesTableState],
|
||||
);
|
||||
// React.useEffect(
|
||||
// () => () => {
|
||||
// resetCreditNotesTableState();
|
||||
// },
|
||||
// [resetCreditNotesTableState],
|
||||
// );
|
||||
return (
|
||||
<CreditNotesListProvider
|
||||
query={transformTableStateToQuery(creditNoteTableState)}
|
||||
|
||||
Reference in New Issue
Block a user