mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
refactor(FE-208): enhance PurchaseOrderInvoice styles with primary color and adjust address maxWidth
This commit is contained in:
@@ -41,11 +41,12 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
marginBottom: 4,
|
marginBottom: 4,
|
||||||
|
color: '#1f74bf', // Primary color from globals.css
|
||||||
},
|
},
|
||||||
address: {
|
address: {
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: '#666666',
|
color: '#666666',
|
||||||
maxWidth: 300,
|
maxWidth: 400,
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
},
|
},
|
||||||
divider: {
|
divider: {
|
||||||
@@ -64,6 +65,7 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
flex: 3,
|
flex: 3,
|
||||||
|
color: '#1f74bf', // Primary color
|
||||||
},
|
},
|
||||||
poInfo: {
|
poInfo: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -74,6 +76,7 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
marginBottom: 8,
|
marginBottom: 8,
|
||||||
|
color: '#1f74bf', // Primary color
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
@@ -182,10 +185,7 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
position: 'absolute',
|
marginTop: 30,
|
||||||
bottom: 20,
|
|
||||||
left: 20,
|
|
||||||
right: 20,
|
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
@@ -195,6 +195,7 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
color: '#1f74bf',
|
||||||
},
|
},
|
||||||
specialInstructionTable: {
|
specialInstructionTable: {
|
||||||
width: '60%',
|
width: '60%',
|
||||||
@@ -351,7 +352,12 @@ const PurchaseOrderInvoice = ({ data }: PurchaseOrderInvoiceProps) => {
|
|||||||
<View style={pdfStyles.tableCellRight}>
|
<View style={pdfStyles.tableCellRight}>
|
||||||
<Text style={{ fontWeight: 'bold' }}>Grand Total</Text>
|
<Text style={{ fontWeight: 'bold' }}>Grand Total</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[pdfStyles.tableCellRightLast, { fontWeight: 'bold' }]}>
|
<View
|
||||||
|
style={[
|
||||||
|
pdfStyles.tableCellRightLast,
|
||||||
|
{ fontWeight: 'bold' },
|
||||||
|
]}
|
||||||
|
>
|
||||||
<Text>Rp.{formatNumber(grandTotal)}</Text>
|
<Text>Rp.{formatNumber(grandTotal)}</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user