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:
karthikalakshmi 2026-03-04 17:31:31 +05:30
commit 49b67a1ece
1 changed files with 1 additions and 4 deletions

View File

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