feat: Vendor Credit note.

This commit is contained in:
elforjani13
2021-11-29 16:33:43 +02:00
parent 0a9798e7a7
commit 119d0b2839
35 changed files with 1488 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ const CreditNoteDeleteAlert = React.lazy(() =>
);
/**
* Sales Credit notes alerts.
* Credit notes alerts.
*/
export default [
{

View File

@@ -58,7 +58,7 @@ function CreditNotesActionsBar({
// Handle table row size change.
const handleTableRowSizeChange = (size) => {
addSetting('salesCreditNote', 'tableSize', size);
addSetting('creditNote', 'tableSize', size);
};
return (

View File

@@ -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)}