refactor(FE-208,213): streamline PurchaseOrderAcceptApprovalForm by removing hardcoded warehouse options and utilizing initialValues for dynamic data

This commit is contained in:
rstubryan
2025-11-18 18:31:49 +07:00
parent 8c3cd3bc53
commit 0d025ba34c
3 changed files with 28 additions and 72 deletions
@@ -773,6 +773,7 @@ const PurchaseOrderDetail = ({
>
<PurchaseOrderAcceptApprovalForm
type='add'
initialValues={purchaseData}
onCancel={acceptApprovalModal.closeModal}
/>
</Modal>
@@ -41,7 +41,7 @@ const pdfStyles = StyleSheet.create({
fontSize: 12,
fontWeight: 'bold',
marginBottom: 4,
color: '#1f74bf', // Primary color from globals.css
color: '#1f74bf',
},
address: {
fontSize: 8,
@@ -65,7 +65,7 @@ const pdfStyles = StyleSheet.create({
fontSize: 18,
fontWeight: 'bold',
flex: 3,
color: '#1f74bf', // Primary color
color: '#1f74bf',
},
poInfo: {
flex: 1,
@@ -76,7 +76,7 @@ const pdfStyles = StyleSheet.create({
fontSize: 12,
fontWeight: 'bold',
marginBottom: 8,
color: '#1f74bf', // Primary color
color: '#1f74bf',
},
table: {
borderWidth: 1,