Merge pull request 'Implement dynamic header and table color functionality' (#232) from print-colors-sq into main
Reviewed-on: Pozomind/pozo-retail-app#232
This commit is contained in:
commit
49b67a1ece
|
|
@ -47,8 +47,6 @@ const TaxInvoice = ({
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
let BillName = printDatas?.PrintHdrName;
|
let BillName = printDatas?.PrintHdrName;
|
||||||
let companyColour = printDatas?.PrintHdrColor ?? '#00000';
|
|
||||||
|
|
||||||
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||||
const SelectedHeaderFontColor = useSelector(GlobalSelectedPrintHeaderFontColor);
|
const SelectedHeaderFontColor = useSelector(GlobalSelectedPrintHeaderFontColor);
|
||||||
const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor);
|
const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor);
|
||||||
|
|
@ -490,7 +488,6 @@ const TaxInvoice = ({
|
||||||
style={{
|
style={{
|
||||||
// flex: '1',
|
// flex: '1',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
|
|
||||||
fontSize: '11px',
|
fontSize: '11px',
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
}}
|
}}
|
||||||
|
|
@ -499,7 +496,7 @@ const TaxInvoice = ({
|
||||||
style={{
|
style={{
|
||||||
fontWeight: '700',
|
fontWeight: '700',
|
||||||
fontSize: '15px',
|
fontSize: '15px',
|
||||||
color: companyColour,
|
color: headerColor?.font
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{invoiceData.companyName}
|
{invoiceData.companyName}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue