mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Remove header cell bottom and right borders in PDF export
This commit is contained in:
@@ -246,7 +246,7 @@ const createPDFDocument = (
|
|||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
||||||
<Text>HPP Telur (RP/KG)</Text>
|
<Text>HPP Telur (RP/KG)</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2, borderRightWidth: 0 }]}>
|
||||||
<Text>Nominal Sisa</Text>
|
<Text>Nominal Sisa</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -301,7 +301,7 @@ const createPDFDocument = (
|
|||||||
<View style={[pdfStyles.tableCellRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellRight, { flex: 1.2 }]}>
|
||||||
<Text>{formatCurrency(group.egg_hpp_rp_per_kg)}</Text>
|
<Text>{formatCurrency(group.egg_hpp_rp_per_kg)}</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[pdfStyles.tableCellRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellRight, { flex: 1.2, borderRightWidth: 0 }]}>
|
||||||
<Text>{formatCurrency(group.egg_value_rp)}</Text>
|
<Text>{formatCurrency(group.egg_value_rp)}</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -347,7 +347,7 @@ const createPDFDocument = (
|
|||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
||||||
<Text>HPP Telur (RP/KG)</Text>
|
<Text>HPP Telur (RP/KG)</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2, borderRightWidth: 0 }]}>
|
||||||
<Text>Nominal Sisa</Text>
|
<Text>Nominal Sisa</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -405,7 +405,7 @@ const createPDFDocument = (
|
|||||||
<View style={[pdfStyles.tableCellRight, { flex: 1 }]}>
|
<View style={[pdfStyles.tableCellRight, { flex: 1 }]}>
|
||||||
<Text>{formatCurrency(item.egg_hpp_rp_per_kg)}</Text>
|
<Text>{formatCurrency(item.egg_hpp_rp_per_kg)}</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[pdfStyles.tableCellRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellRight, { flex: 1.2, borderRightWidth: 0 }]}>
|
||||||
<Text>{formatCurrency(item.egg_value_rp)}</Text>
|
<Text>{formatCurrency(item.egg_value_rp)}</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -417,7 +417,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeader,
|
pdfStyles.tableCellHeader,
|
||||||
{ flex: 0.5, backgroundColor: '#F5F5F5' },
|
{ flex: 0.5, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>TOTAL</Text>
|
<Text>TOTAL</Text>
|
||||||
@@ -425,7 +425,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeader,
|
pdfStyles.tableCellHeader,
|
||||||
{ flex: 1.5, backgroundColor: '#F5F5F5' },
|
{ flex: 1.5, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>ALL</Text>
|
<Text>ALL</Text>
|
||||||
@@ -433,7 +433,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeader,
|
pdfStyles.tableCellHeader,
|
||||||
{ flex: 1, backgroundColor: '#F5F5F5' },
|
{ flex: 1, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>-</Text>
|
<Text>-</Text>
|
||||||
@@ -441,7 +441,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeaderRight,
|
pdfStyles.tableCellHeaderRight,
|
||||||
{ flex: 1, backgroundColor: '#F5F5F5' },
|
{ flex: 1, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -451,7 +451,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeaderRight,
|
pdfStyles.tableCellHeaderRight,
|
||||||
{ flex: 0.8, backgroundColor: '#F5F5F5' },
|
{ flex: 0.8, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -463,7 +463,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeaderRight,
|
pdfStyles.tableCellHeaderRight,
|
||||||
{ flex: 0.8, backgroundColor: '#F5F5F5' },
|
{ flex: 0.8, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -473,7 +473,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeader,
|
pdfStyles.tableCellHeader,
|
||||||
{ flex: 1.2, backgroundColor: '#F5F5F5' },
|
{ flex: 1.2, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -484,14 +484,17 @@ const createPDFDocument = (
|
|||||||
s.alias || s.name
|
s.alias || s.name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.filter((v: string, i: number, a: string[]) => a.indexOf(v) === i)
|
.filter(
|
||||||
|
(v: string, i: number, a: string[]) =>
|
||||||
|
a.indexOf(v) === i
|
||||||
|
)
|
||||||
.join(' | ') || '-'}
|
.join(' | ') || '-'}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeader,
|
pdfStyles.tableCellHeader,
|
||||||
{ flex: 1, backgroundColor: '#F5F5F5' },
|
{ flex: 1, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -502,14 +505,17 @@ const createPDFDocument = (
|
|||||||
s.alias || s.name
|
s.alias || s.name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.filter((v: string, i: number, a: string[]) => a.indexOf(v) === i)
|
.filter(
|
||||||
|
(v: string, i: number, a: string[]) =>
|
||||||
|
a.indexOf(v) === i
|
||||||
|
)
|
||||||
.join(' | ') || '-'}
|
.join(' | ') || '-'}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeaderRight,
|
pdfStyles.tableCellHeaderRight,
|
||||||
{ flex: 1.2, backgroundColor: '#F5F5F5' },
|
{ flex: 1.2, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -521,7 +527,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeaderRight,
|
pdfStyles.tableCellHeaderRight,
|
||||||
{ flex: 1, backgroundColor: '#F5F5F5' },
|
{ flex: 1, backgroundColor: '#F5F5F5', borderBottomWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -533,7 +539,7 @@ const createPDFDocument = (
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
pdfStyles.tableCellHeaderRight,
|
pdfStyles.tableCellHeaderRight,
|
||||||
{ flex: 1.2, backgroundColor: '#F5F5F5' },
|
{ flex: 1.2, backgroundColor: '#F5F5F5', borderBottomWidth: 0, borderRightWidth: 0 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user