Skip to content

Commit

Permalink
Merge pull request #688 from bigcapitalhq/fix-pdf-template-addresses-…
Browse files Browse the repository at this point in the history
…controlling

fix: pdf template addresses controlling
  • Loading branch information
abouolia authored Oct 3, 2024
2 parents 55fdc47 + c74c8e8 commit c5ff1e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ export const fieldsGroups = [
label: 'Credit Note #',
},
{
enableKey: 'showBilledToAddress',
enableKey: 'showCustomerAddress',
labelKey: 'billedToLabel',
label: 'Bill To',
},
{
enableKey: 'showBilledFromAddress',
enableKey: 'showCompanyAddress',
label: 'Billed From',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const initialValues = {

// Customer address
showCustomerAddress: true,

// Company address
showCompanyAddress: true,
companyAddress: '',
Expand Down Expand Up @@ -73,12 +73,12 @@ export const fieldsGroups = [
label: 'Expiration Date',
},
{
enableKey: 'showBilledToAddress',
enableKey: 'showCustomerAddress',
labelKey: 'billedToLabel',
label: 'Bill To',
},
{
enableKey: 'showBilledFromAddress',
enableKey: 'showCompanyAddress',
label: 'Billed From',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ export const fieldsGroups = [
label: 'Due Date',
},
{
enableKey: 'showBillingToAddress',
enableKey: 'showCustomerAddress',
labelKey: 'billedToLabel',
label: 'Bill To',
},
{
enableKey: 'showBilledFromAddress',
enableKey: 'showCompanyAddress',
label: 'Billed From',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ export const fieldsGroups = [
label: 'Payment Date',
},
{
enableKey: 'showBillingToAddress',
enableKey: 'showCustomerAddress',
labelKey: 'billedToLabel',
label: 'Bill To',
},
{
enableKey: 'showBilledFromAddress',
enableKey: 'showCompanyAddress',
label: 'Billed From',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const initialValues = {
// Company name
companyName: 'Bigcapital Technology, Inc.',

// Customer address
// Customer address
showCustomerAddress: true,

// Company address
Expand Down Expand Up @@ -67,12 +67,12 @@ export const fieldsGroups = [
label: 'Receipt Date',
},
{
enableKey: 'showBilledToAddress',
enableKey: 'showCustomerAddress',
labelKey: 'billedToLabel',
label: 'Bill To',
},
{
enableKey: 'showBilledFromAddress',
enableKey: 'showCompanyAddress',
label: 'Billed From',
},
],
Expand Down

0 comments on commit c5ff1e4

Please sign in to comment.