refactor(FE-364): refactor PDF table styles and remove total styles

This commit is contained in:
rstubryan
2025-12-16 13:33:57 +07:00
parent 0d8e642b4e
commit 6f18c58042
@@ -57,6 +57,7 @@ const pdfStyles = StyleSheet.create({
borderRightStyle: 'solid',
padding: 4,
fontSize: 8,
textAlign: 'center',
},
tableCellLast: {
flex: 1,
@@ -72,6 +73,11 @@ const pdfStyles = StyleSheet.create({
fontSize: 8,
fontWeight: 'bold',
backgroundColor: '#F5F5F5',
borderBottomWidth: 1,
borderBottomColor: '#000000',
borderBottomStyle: 'solid',
paddingVertical: 12,
textAlign: 'center',
},
tableCellHeaderCenter: {
flex: 1,
@@ -94,14 +100,10 @@ const pdfStyles = StyleSheet.create({
fontWeight: 'bold',
backgroundColor: '#F5F5F5',
textAlign: 'right',
},
tableCellHeaderRightLast: {
flex: 1,
padding: 4,
fontSize: 8,
fontWeight: 'bold',
backgroundColor: '#F5F5F5',
textAlign: 'right',
borderBottomWidth: 1,
borderBottomColor: '#000000',
borderBottomStyle: 'solid',
paddingVertical: 12,
},
tableCellHeaderLast: {
flex: 1,
@@ -109,14 +111,10 @@ const pdfStyles = StyleSheet.create({
fontSize: 8,
fontWeight: 'bold',
backgroundColor: '#F5F5F5',
},
tableCellHeaderCenterLast: {
flex: 1,
padding: 4,
fontSize: 8,
fontWeight: 'bold',
backgroundColor: '#F5F5F5',
textAlign: 'center',
borderBottomWidth: 1,
borderBottomColor: '#000000',
borderBottomStyle: 'solid',
paddingVertical: 12,
},
tableCellRight: {
flex: 1,
@@ -136,12 +134,6 @@ const pdfStyles = StyleSheet.create({
fontSize: 8,
textAlign: 'center',
},
tableCellRightLast: {
flex: 1,
padding: 4,
fontSize: 8,
textAlign: 'right',
},
tableCellCenterLast: {
flex: 1,
padding: 4,
@@ -153,44 +145,6 @@ const pdfStyles = StyleSheet.create({
borderBottomColor: '#000000',
borderBottomStyle: 'solid',
},
totalRow: {
backgroundColor: '#F5F5F5',
borderTopWidth: 1,
borderTopColor: '#000000',
borderTopStyle: 'solid',
},
totalCell: {
flex: 1,
borderRightWidth: 1,
borderRightColor: '#000000',
borderRightStyle: 'solid',
padding: 4,
fontSize: 8,
fontWeight: 'bold',
},
totalCellRight: {
flex: 1,
borderRightWidth: 1,
borderRightColor: '#000000',
borderRightStyle: 'solid',
padding: 4,
fontSize: 8,
fontWeight: 'bold',
textAlign: 'right',
},
totalCellRightLast: {
flex: 1,
padding: 4,
fontSize: 8,
fontWeight: 'bold',
textAlign: 'right',
},
totalCellLast: {
flex: 1,
padding: 4,
fontSize: 8,
fontWeight: 'bold',
},
supplierSection: {
marginBottom: 10,
},