@tonzxz/government-forms 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/FORM_CATALOG.md +44 -0
  2. package/README.md +165 -0
  3. package/dist/definitions.d.ts +1147 -0
  4. package/dist/definitions.js +60 -0
  5. package/dist/forms/iar.d.ts +172 -0
  6. package/dist/forms/iar.js +6 -0
  7. package/dist/forms/ics.d.ts +48 -0
  8. package/dist/forms/ics.js +6 -0
  9. package/dist/forms/iirup.d.ts +54 -0
  10. package/dist/forms/iirup.js +6 -0
  11. package/dist/forms/iirusp.d.ts +32 -0
  12. package/dist/forms/iirusp.js +6 -0
  13. package/dist/forms/itr.d.ts +42 -0
  14. package/dist/forms/itr.js +6 -0
  15. package/dist/forms/par.d.ts +84 -0
  16. package/dist/forms/par.js +6 -0
  17. package/dist/forms/ppelc.d.ts +34 -0
  18. package/dist/forms/ppelc.js +6 -0
  19. package/dist/forms/pr.d.ts +27 -0
  20. package/dist/forms/pr.js +6 -0
  21. package/dist/forms/property-card.d.ts +68 -0
  22. package/dist/forms/property-card.js +6 -0
  23. package/dist/forms/ptr.d.ts +54 -0
  24. package/dist/forms/ptr.js +6 -0
  25. package/dist/forms/regspi.d.ts +32 -0
  26. package/dist/forms/regspi.js +6 -0
  27. package/dist/forms/ris.d.ts +66 -0
  28. package/dist/forms/ris.js +6 -0
  29. package/dist/forms/rlsddp.d.ts +54 -0
  30. package/dist/forms/rlsddp.js +6 -0
  31. package/dist/forms/rlsddsp.d.ts +42 -0
  32. package/dist/forms/rlsddsp.js +6 -0
  33. package/dist/forms/rpci.d.ts +32 -0
  34. package/dist/forms/rpci.js +6 -0
  35. package/dist/forms/rpcppe.d.ts +32 -0
  36. package/dist/forms/rpcppe.js +6 -0
  37. package/dist/forms/rpcsp.d.ts +32 -0
  38. package/dist/forms/rpcsp.js +6 -0
  39. package/dist/forms/rrsp.d.ts +32 -0
  40. package/dist/forms/rrsp.js +6 -0
  41. package/dist/forms/rsmi.d.ts +32 -0
  42. package/dist/forms/rsmi.js +6 -0
  43. package/dist/forms/rsmp.d.ts +33 -0
  44. package/dist/forms/rsmp.js +6 -0
  45. package/dist/forms/rspi.d.ts +32 -0
  46. package/dist/forms/rspi.js +6 -0
  47. package/dist/forms/spc.d.ts +37 -0
  48. package/dist/forms/spc.js +6 -0
  49. package/dist/forms/splc.d.ts +41 -0
  50. package/dist/forms/splc.js +6 -0
  51. package/dist/forms/stock-card.d.ts +28 -0
  52. package/dist/forms/stock-card.js +6 -0
  53. package/dist/forms/wmr.d.ts +32 -0
  54. package/dist/forms/wmr.js +6 -0
  55. package/dist/gam/components/gam-report-workbench.d.ts +40 -0
  56. package/dist/gam/components/gam-report-workbench.js +2 -0
  57. package/dist/gam/components/grand-total-computation.d.ts +10 -0
  58. package/dist/gam/components/grand-total-computation.js +26 -0
  59. package/dist/gam/components/iar-preview.d.ts +30 -0
  60. package/dist/gam/components/iar-preview.js +150 -0
  61. package/dist/gam/components/ics-preview.d.ts +31 -0
  62. package/dist/gam/components/ics-preview.js +114 -0
  63. package/dist/gam/components/iirup-preview.d.ts +42 -0
  64. package/dist/gam/components/iirup-preview.js +237 -0
  65. package/dist/gam/components/itr-preview.d.ts +31 -0
  66. package/dist/gam/components/itr-preview.js +180 -0
  67. package/dist/gam/components/par-preview.d.ts +28 -0
  68. package/dist/gam/components/par-preview.js +95 -0
  69. package/dist/gam/components/ppelc-preview.d.ts +28 -0
  70. package/dist/gam/components/ppelc-preview.js +128 -0
  71. package/dist/gam/components/property-card-preview.d.ts +21 -0
  72. package/dist/gam/components/property-card-preview.js +117 -0
  73. package/dist/gam/components/ptr-preview.d.ts +36 -0
  74. package/dist/gam/components/ptr-preview.js +122 -0
  75. package/dist/gam/components/purchase-order-page-client.d.ts +66 -0
  76. package/dist/gam/components/purchase-order-page-client.js +179 -0
  77. package/dist/gam/components/reg-spi-preview.d.ts +28 -0
  78. package/dist/gam/components/reg-spi-preview.js +138 -0
  79. package/dist/gam/components/ris-form.d.ts +13 -0
  80. package/dist/gam/components/ris-form.js +20 -0
  81. package/dist/gam/components/ris-preview.d.ts +7 -0
  82. package/dist/gam/components/ris-preview.js +16 -0
  83. package/dist/gam/components/rlsddp-preview.d.ts +34 -0
  84. package/dist/gam/components/rlsddp-preview.js +251 -0
  85. package/dist/gam/components/rlsddsp-preview.d.ts +33 -0
  86. package/dist/gam/components/rlsddsp-preview.js +226 -0
  87. package/dist/gam/components/rpci-preview.d.ts +27 -0
  88. package/dist/gam/components/rpci-preview.js +123 -0
  89. package/dist/gam/components/rpcppe-preview.d.ts +28 -0
  90. package/dist/gam/components/rpcppe-preview.js +133 -0
  91. package/dist/gam/components/rpcsp-preview.d.ts +29 -0
  92. package/dist/gam/components/rpcsp-preview.js +81 -0
  93. package/dist/gam/components/rspi-preview.d.ts +23 -0
  94. package/dist/gam/components/rspi-preview.js +72 -0
  95. package/dist/gam/components/spc-preview.d.ts +23 -0
  96. package/dist/gam/components/spc-preview.js +149 -0
  97. package/dist/gam/components/splc-entry-form.d.ts +14 -0
  98. package/dist/gam/components/splc-entry-form.js +6 -0
  99. package/dist/gam/components/splc-preview.d.ts +27 -0
  100. package/dist/gam/components/splc-preview.js +192 -0
  101. package/dist/gam/components/stock-card-preview.d.ts +14 -0
  102. package/dist/gam/components/stock-card-preview.js +17 -0
  103. package/dist/gam/config/new-report-config.d.ts +1094 -0
  104. package/dist/gam/config/new-report-config.js +1478 -0
  105. package/dist/gam/purchase-order-flow.d.ts +146 -0
  106. package/dist/gam/purchase-order-flow.js +173 -0
  107. package/dist/gam/purchase-request/workflow.d.ts +19 -0
  108. package/dist/gam/purchase-request/workflow.js +45 -0
  109. package/dist/gam/types/ris-types.d.ts +37 -0
  110. package/dist/gam/types/ris-types.js +1 -0
  111. package/dist/gam/utils/export-ics-xlsx.d.ts +28 -0
  112. package/dist/gam/utils/export-ics-xlsx.js +273 -0
  113. package/dist/gam/utils/export-par-xlsx.d.ts +18 -0
  114. package/dist/gam/utils/export-par-xlsx.js +181 -0
  115. package/dist/gam/utils/export-preview-pdf.d.ts +13 -0
  116. package/dist/gam/utils/export-preview-pdf.js +270 -0
  117. package/dist/gam/utils/export-report-xlsx.d.ts +228 -0
  118. package/dist/gam/utils/export-report-xlsx.js +873 -0
  119. package/dist/gam/utils/line-totals.d.ts +6 -0
  120. package/dist/gam/utils/line-totals.js +18 -0
  121. package/dist/gam/utils/monetary-input.d.ts +6 -0
  122. package/dist/gam/utils/monetary-input.js +18 -0
  123. package/dist/gam/utils/print-element.d.ts +8 -0
  124. package/dist/gam/utils/print-element.js +157 -0
  125. package/dist/government-form.d.ts +16 -0
  126. package/dist/government-form.js +45 -0
  127. package/dist/index.d.ts +49 -0
  128. package/dist/index.js +50 -0
  129. package/dist/internal/components/configurable-form-layout.d.ts +20 -0
  130. package/dist/internal/components/configurable-form-layout.js +49 -0
  131. package/dist/internal/components/ui/badge.d.ts +7 -0
  132. package/dist/internal/components/ui/badge.js +34 -0
  133. package/dist/internal/components/ui/button.d.ts +10 -0
  134. package/dist/internal/components/ui/button.js +35 -0
  135. package/dist/internal/components/ui/calendar.d.ts +8 -0
  136. package/dist/internal/components/ui/calendar.js +77 -0
  137. package/dist/internal/components/ui/command.d.ts +19 -0
  138. package/dist/internal/components/ui/command.js +36 -0
  139. package/dist/internal/components/ui/date-input.d.ts +14 -0
  140. package/dist/internal/components/ui/date-input.js +33 -0
  141. package/dist/internal/components/ui/date-picker.d.ts +19 -0
  142. package/dist/internal/components/ui/date-picker.js +34 -0
  143. package/dist/internal/components/ui/dialog.d.ts +18 -0
  144. package/dist/internal/components/ui/dialog.js +38 -0
  145. package/dist/internal/components/ui/input-group.d.ts +18 -0
  146. package/dist/internal/components/ui/input-group.js +57 -0
  147. package/dist/internal/components/ui/input.d.ts +3 -0
  148. package/dist/internal/components/ui/input.js +12 -0
  149. package/dist/internal/components/ui/label.d.ts +3 -0
  150. package/dist/internal/components/ui/label.js +7 -0
  151. package/dist/internal/components/ui/popover.d.ts +9 -0
  152. package/dist/internal/components/ui/popover.js +23 -0
  153. package/dist/internal/components/ui/select.d.ts +17 -0
  154. package/dist/internal/components/ui/select.js +35 -0
  155. package/dist/internal/components/ui/switch.d.ts +5 -0
  156. package/dist/internal/components/ui/switch.js +8 -0
  157. package/dist/internal/components/ui/table.d.ts +10 -0
  158. package/dist/internal/components/ui/table.js +28 -0
  159. package/dist/internal/components/ui/tabs.d.ts +10 -0
  160. package/dist/internal/components/ui/tabs.js +29 -0
  161. package/dist/internal/components/ui/textarea.d.ts +3 -0
  162. package/dist/internal/components/ui/textarea.js +7 -0
  163. package/dist/internal/components/ui/tooltip.d.ts +6 -0
  164. package/dist/internal/components/ui/tooltip.js +17 -0
  165. package/dist/internal/contracts/modules/v1/reg-spi-reports/reg-spi-reports.schema.d.ts +112 -0
  166. package/dist/internal/contracts/modules/v1/reg-spi-reports/reg-spi-reports.schema.js +91 -0
  167. package/dist/internal/hooks/use-form-field-order.d.ts +7 -0
  168. package/dist/internal/hooks/use-form-field-order.js +43 -0
  169. package/dist/internal/lib/utils.d.ts +2 -0
  170. package/dist/internal/lib/utils.js +3 -0
  171. package/dist/inventory/components/inventory-item-form.d.ts +7 -0
  172. package/dist/inventory/components/inventory-item-form.js +5 -0
  173. package/dist/inventory/components/inventory-item-preview.d.ts +6 -0
  174. package/dist/inventory/components/inventory-item-preview.js +5 -0
  175. package/dist/inventory/iar.d.ts +4 -0
  176. package/dist/inventory/iar.js +4 -0
  177. package/dist/inventory/ics.d.ts +2 -0
  178. package/dist/inventory/ics.js +3 -0
  179. package/dist/inventory/iirup.d.ts +2 -0
  180. package/dist/inventory/iirup.js +3 -0
  181. package/dist/inventory/iirusp.d.ts +4 -0
  182. package/dist/inventory/iirusp.js +4 -0
  183. package/dist/inventory/index.d.ts +3 -0
  184. package/dist/inventory/index.js +4 -0
  185. package/dist/inventory/item.d.ts +3 -0
  186. package/dist/inventory/item.js +3 -0
  187. package/dist/inventory/itr.d.ts +4 -0
  188. package/dist/inventory/itr.js +4 -0
  189. package/dist/inventory/par.d.ts +2 -0
  190. package/dist/inventory/par.js +3 -0
  191. package/dist/inventory/po.d.ts +2 -0
  192. package/dist/inventory/po.js +2 -0
  193. package/dist/inventory/ppelc.d.ts +2 -0
  194. package/dist/inventory/ppelc.js +3 -0
  195. package/dist/inventory/pplc.d.ts +2 -0
  196. package/dist/inventory/pplc.js +4 -0
  197. package/dist/inventory/pr.d.ts +4 -0
  198. package/dist/inventory/pr.js +4 -0
  199. package/dist/inventory/property-card.d.ts +2 -0
  200. package/dist/inventory/property-card.js +3 -0
  201. package/dist/inventory/ptr.d.ts +2 -0
  202. package/dist/inventory/ptr.js +3 -0
  203. package/dist/inventory/regspi.d.ts +4 -0
  204. package/dist/inventory/regspi.js +4 -0
  205. package/dist/inventory/ris.d.ts +4 -0
  206. package/dist/inventory/ris.js +4 -0
  207. package/dist/inventory/rlsddp.d.ts +4 -0
  208. package/dist/inventory/rlsddp.js +4 -0
  209. package/dist/inventory/rlsddsp.d.ts +2 -0
  210. package/dist/inventory/rlsddsp.js +3 -0
  211. package/dist/inventory/rpci.d.ts +2 -0
  212. package/dist/inventory/rpci.js +3 -0
  213. package/dist/inventory/rpcppe.d.ts +2 -0
  214. package/dist/inventory/rpcppe.js +3 -0
  215. package/dist/inventory/rpcsp.d.ts +2 -0
  216. package/dist/inventory/rpcsp.js +3 -0
  217. package/dist/inventory/rrsp.d.ts +2 -0
  218. package/dist/inventory/rrsp.js +3 -0
  219. package/dist/inventory/rsmi.d.ts +4 -0
  220. package/dist/inventory/rsmi.js +4 -0
  221. package/dist/inventory/rsmp.d.ts +4 -0
  222. package/dist/inventory/rsmp.js +4 -0
  223. package/dist/inventory/rspi.d.ts +2 -0
  224. package/dist/inventory/rspi.js +3 -0
  225. package/dist/inventory/spc.d.ts +2 -0
  226. package/dist/inventory/spc.js +3 -0
  227. package/dist/inventory/splc.d.ts +3 -0
  228. package/dist/inventory/splc.js +4 -0
  229. package/dist/inventory/stock-card.d.ts +4 -0
  230. package/dist/inventory/stock-card.js +4 -0
  231. package/dist/inventory/types.d.ts +11 -0
  232. package/dist/inventory/types.js +1 -0
  233. package/dist/inventory/wmr.d.ts +4 -0
  234. package/dist/inventory/wmr.js +4 -0
  235. package/dist/lib/rpcsp-accountable-person.d.ts +1 -0
  236. package/dist/lib/rpcsp-accountable-person.js +10 -0
  237. package/dist/reports/iar/_components/create-form.d.ts +13 -0
  238. package/dist/reports/iar/_components/create-form.js +92 -0
  239. package/dist/reports/iar/_components/document-preview.d.ts +11 -0
  240. package/dist/reports/iar/_components/document-preview.js +131 -0
  241. package/dist/reports/iar/types.d.ts +97 -0
  242. package/dist/reports/iar/types.js +24 -0
  243. package/dist/reports/iirusp/_components/create-form.d.ts +17 -0
  244. package/dist/reports/iirusp/_components/create-form.js +118 -0
  245. package/dist/reports/iirusp/_components/document-preview.d.ts +8 -0
  246. package/dist/reports/iirusp/_components/document-preview.js +389 -0
  247. package/dist/reports/iirusp/types.d.ts +134 -0
  248. package/dist/reports/iirusp/types.js +29 -0
  249. package/dist/reports/iirusp/utils.d.ts +29 -0
  250. package/dist/reports/iirusp/utils.js +488 -0
  251. package/dist/reports/itr/_components/create-form.d.ts +28 -0
  252. package/dist/reports/itr/_components/create-form.js +90 -0
  253. package/dist/reports/itr/_components/document-preview.d.ts +6 -0
  254. package/dist/reports/itr/_components/document-preview.js +7 -0
  255. package/dist/reports/itr/types.d.ts +68 -0
  256. package/dist/reports/itr/types.js +27 -0
  257. package/dist/reports/itr/utils.d.ts +24 -0
  258. package/dist/reports/itr/utils.js +76 -0
  259. package/dist/reports/pr/_components/create-form.d.ts +16 -0
  260. package/dist/reports/pr/_components/create-form.js +52 -0
  261. package/dist/reports/pr/_components/document-preview.d.ts +7 -0
  262. package/dist/reports/pr/_components/document-preview.js +9 -0
  263. package/dist/reports/pr/types.d.ts +69 -0
  264. package/dist/reports/pr/types.js +1 -0
  265. package/dist/reports/pr/utils.d.ts +72 -0
  266. package/dist/reports/pr/utils.js +572 -0
  267. package/dist/reports/regspi/_components/create-form.d.ts +19 -0
  268. package/dist/reports/regspi/_components/create-form.js +33 -0
  269. package/dist/reports/regspi/_components/document-preview.d.ts +6 -0
  270. package/dist/reports/regspi/_components/document-preview.js +7 -0
  271. package/dist/reports/regspi/types.d.ts +29 -0
  272. package/dist/reports/regspi/types.js +24 -0
  273. package/dist/reports/regspi/utils.d.ts +48 -0
  274. package/dist/reports/regspi/utils.js +98 -0
  275. package/dist/reports/ris/_components/create-form.d.ts +36 -0
  276. package/dist/reports/ris/_components/create-form.js +149 -0
  277. package/dist/reports/ris/_components/document-preview.d.ts +8 -0
  278. package/dist/reports/ris/_components/document-preview.js +31 -0
  279. package/dist/reports/ris/types.d.ts +93 -0
  280. package/dist/reports/ris/types.js +1 -0
  281. package/dist/reports/rlsddp/_components/create-form.d.ts +11 -0
  282. package/dist/reports/rlsddp/_components/create-form.js +165 -0
  283. package/dist/reports/rlsddp/_components/document-preview.d.ts +8 -0
  284. package/dist/reports/rlsddp/_components/document-preview.js +15 -0
  285. package/dist/reports/rlsddp/types.d.ts +105 -0
  286. package/dist/reports/rlsddp/types.js +31 -0
  287. package/dist/reports/rrsp/components/rrsp-preview.d.ts +21 -0
  288. package/dist/reports/rrsp/components/rrsp-preview.js +155 -0
  289. package/dist/reports/rsmi/components/rsmi-create-form.d.ts +20 -0
  290. package/dist/reports/rsmi/components/rsmi-create-form.js +8 -0
  291. package/dist/reports/rsmi/components/rsmi-document-body.d.ts +15 -0
  292. package/dist/reports/rsmi/components/rsmi-document-body.js +12 -0
  293. package/dist/reports/rsmi/components/rsmi-types.d.ts +45 -0
  294. package/dist/reports/rsmi/components/rsmi-types.js +1 -0
  295. package/dist/reports/rsmi/components/rsmi-utils.d.ts +2 -0
  296. package/dist/reports/rsmi/components/rsmi-utils.js +18 -0
  297. package/dist/reports/rsmp/components/rsmp-create-modal.d.ts +5 -0
  298. package/dist/reports/rsmp/components/rsmp-create-modal.js +7 -0
  299. package/dist/reports/rsmp/components/rsmp-preview-modal.d.ts +11 -0
  300. package/dist/reports/rsmp/components/rsmp-preview-modal.js +47 -0
  301. package/dist/reports/rsmp/components/rsmp-types.d.ts +44 -0
  302. package/dist/reports/rsmp/components/rsmp-types.js +1 -0
  303. package/dist/reports/rsmp/components/rsmp-utils.d.ts +5 -0
  304. package/dist/reports/rsmp/components/rsmp-utils.js +41 -0
  305. package/dist/reports/rsmp/lib/rsmp-grouping.d.ts +14 -0
  306. package/dist/reports/rsmp/lib/rsmp-grouping.js +75 -0
  307. package/dist/reports/stock-card/_components/create-form.d.ts +13 -0
  308. package/dist/reports/stock-card/_components/create-form.js +39 -0
  309. package/dist/reports/stock-card/_components/document-preview.d.ts +7 -0
  310. package/dist/reports/stock-card/_components/document-preview.js +29 -0
  311. package/dist/reports/stock-card/types.d.ts +31 -0
  312. package/dist/reports/stock-card/types.js +1 -0
  313. package/dist/reports/stock-card/utils.d.ts +32 -0
  314. package/dist/reports/stock-card/utils.js +248 -0
  315. package/dist/reports/wmr/_components/create-form.d.ts +22 -0
  316. package/dist/reports/wmr/_components/create-form.js +61 -0
  317. package/dist/reports/wmr/_components/document-preview.d.ts +10 -0
  318. package/dist/reports/wmr/_components/document-preview.js +59 -0
  319. package/dist/reports/wmr/types.d.ts +45 -0
  320. package/dist/reports/wmr/types.js +1 -0
  321. package/dist/reports/wmr/utils.d.ts +32 -0
  322. package/dist/reports/wmr/utils.js +343 -0
  323. package/dist/styles.css +4492 -0
  324. package/extraction-manifest.json +620 -0
  325. package/package.json +197 -0
@@ -0,0 +1,28 @@
1
+ export interface PPELCPreviewEntry {
2
+ entryDate: string;
3
+ reference: string;
4
+ qty: string;
5
+ receiptQty: string;
6
+ unitCost: string;
7
+ totalCost: string;
8
+ accumulatedDepreciation: string;
9
+ accumulatedImpairmentLosses: string;
10
+ adjustmentsIssuesTransfer: string;
11
+ adjustedCost: string;
12
+ repairHistory: string;
13
+ natureOfRepair: string;
14
+ amount: string;
15
+ }
16
+ interface PPELCPreviewProps {
17
+ entityName: string;
18
+ fundCluster: string;
19
+ propertyPlantEquipment: string;
20
+ description: string;
21
+ objectAccountCode: string;
22
+ estimatedUsefulLife: string;
23
+ rateOfDepreciation: string;
24
+ entries: PPELCPreviewEntry[];
25
+ ppelcNo: string;
26
+ }
27
+ export declare function PPELCPreview({ entityName, fundCluster, propertyPlantEquipment, description, objectAccountCode, estimatedUsefulLife, rateOfDepreciation, entries, ppelcNo, }: PPELCPreviewProps): import("react/jsx-runtime").JSX.Element;
28
+ export {};
@@ -0,0 +1,128 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ const FIXED_ROWS = 15;
4
+ function fmtDate(value) {
5
+ if (!value || value.trim() === "")
6
+ return "";
7
+ try {
8
+ return new Date(value).toLocaleDateString("en-PH");
9
+ }
10
+ catch {
11
+ return value;
12
+ }
13
+ }
14
+ function fmtAmount(value) {
15
+ if (!value || value.trim() === "")
16
+ return "";
17
+ const n = Number(value);
18
+ if (Number.isNaN(n))
19
+ return value;
20
+ return n.toLocaleString("en-PH", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
21
+ }
22
+ const BORDER = "1px solid #000";
23
+ const FIELD_LINE = {
24
+ borderBottom: BORDER,
25
+ display: "inline-block",
26
+ boxSizing: "border-box",
27
+ height: "5mm",
28
+ padding: "0.6mm 1mm 1.4mm",
29
+ lineHeight: 1.1,
30
+ verticalAlign: "bottom",
31
+ };
32
+ const thBase = {
33
+ border: BORDER,
34
+ padding: "3px 2px",
35
+ textAlign: "center",
36
+ fontWeight: 600,
37
+ backgroundColor: "#f3f4f6",
38
+ verticalAlign: "middle",
39
+ fontSize: "7pt",
40
+ lineHeight: "1.2",
41
+ };
42
+ const tdBase = {
43
+ border: BORDER,
44
+ padding: "2px 3px",
45
+ fontSize: "7pt",
46
+ height: "6mm",
47
+ whiteSpace: "normal",
48
+ overflowWrap: "anywhere",
49
+ verticalAlign: "middle",
50
+ };
51
+ export function PPELCPreview({ entityName, fundCluster, propertyPlantEquipment, description, objectAccountCode, estimatedUsefulLife, rateOfDepreciation, entries, ppelcNo, }) {
52
+ const rows = Array.from({ length: Math.max(FIXED_ROWS, entries.length) }, (_, index) => entries[index] ?? null);
53
+ return (_jsxs(_Fragment, { children: [_jsx("style", { children: `
54
+ @media print {
55
+ .no-print { display: none !important; }
56
+ body { background: white !important; }
57
+ .ppelc-a4-page { box-shadow: none !important; margin: 0 !important; padding: 6mm 8mm !important; }
58
+ }
59
+ .ppelc-a4-page * { box-sizing: border-box; }
60
+ ` }), _jsx("div", { style: { overflowX: "auto", width: "100%" }, children: _jsxs("div", { className: "ppelc-a4-page bg-white text-black", "data-pdf-page": "true", "data-pdf-orientation": "landscape", "data-pdf-fit-one-page": "true", style: {
61
+ width: "297mm",
62
+ minHeight: "210mm",
63
+ padding: "6mm 8mm",
64
+ fontFamily: "Arial, sans-serif",
65
+ fontSize: "8pt",
66
+ display: "flex",
67
+ flexDirection: "column",
68
+ }, children: [_jsx("div", { style: { textAlign: "right", fontSize: "7pt", color: "#666", marginBottom: "1mm" }, children: "Appendix 74" }), _jsx("div", { style: {
69
+ textAlign: "center",
70
+ fontWeight: "bold",
71
+ fontSize: "10pt",
72
+ letterSpacing: "1px",
73
+ marginBottom: "3mm",
74
+ }, children: "PROPERTY, PLANT AND EQUIPMENT LEDGER CARD" }), _jsxs("div", { style: {
75
+ display: "flex",
76
+ justifyContent: "space-between",
77
+ marginBottom: "3mm",
78
+ paddingBottom: "2mm",
79
+ }, children: [_jsxs("div", { style: { flex: 1 }, children: [_jsx("span", { style: { fontWeight: 600 }, children: "Entity Name: " }), _jsx("span", { style: {
80
+ ...FIELD_LINE,
81
+ minWidth: "200px",
82
+ }, children: entityName })] }), _jsxs("div", { style: { flex: 1, textAlign: "right" }, children: [_jsx("span", { style: { fontWeight: 600 }, children: "Fund Cluster: " }), _jsx("span", { style: {
83
+ ...FIELD_LINE,
84
+ minWidth: "150px",
85
+ }, children: fundCluster })] })] }), _jsx("table", { style: {
86
+ width: "100%",
87
+ borderCollapse: "collapse",
88
+ marginBottom: "2mm",
89
+ border: BORDER,
90
+ }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: {
91
+ width: "75%",
92
+ borderRight: BORDER,
93
+ padding: "3mm",
94
+ verticalAlign: "top",
95
+ }, children: [_jsxs("div", { style: { marginBottom: "2mm" }, children: [_jsx("span", { style: { fontWeight: 600 }, children: "Property, Plant and Equipment: " }), _jsx("span", { style: {
96
+ ...FIELD_LINE,
97
+ minWidth: "250px",
98
+ }, children: propertyPlantEquipment })] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 600 }, children: "Description: " }), _jsx("span", { style: {
99
+ ...FIELD_LINE,
100
+ minWidth: "300px",
101
+ }, children: description })] })] }), _jsxs("td", { style: {
102
+ width: "25%",
103
+ padding: "3mm",
104
+ verticalAlign: "top",
105
+ }, children: [_jsxs("div", { style: { marginBottom: "2mm" }, children: [_jsx("span", { style: { fontWeight: 600 }, children: "Object Account Code: " }), _jsx("span", { style: {
106
+ ...FIELD_LINE,
107
+ display: "block",
108
+ minWidth: "80px",
109
+ }, children: objectAccountCode })] }), _jsxs("div", { style: { marginBottom: "2mm" }, children: [_jsx("span", { style: { fontWeight: 600 }, children: "Estimated Useful Life: " }), _jsx("span", { style: {
110
+ ...FIELD_LINE,
111
+ minWidth: "40px",
112
+ }, children: estimatedUsefulLife })] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 600 }, children: "Rate of Depreciation: " }), _jsx("span", { style: {
113
+ ...FIELD_LINE,
114
+ minWidth: "50px",
115
+ }, children: rateOfDepreciation })] })] })] }) }) }), _jsxs("table", { style: {
116
+ width: "100%",
117
+ borderCollapse: "collapse",
118
+ fontSize: "7pt",
119
+ tableLayout: "fixed",
120
+ border: BORDER,
121
+ }, children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "9%" } }), _jsx("col", { style: { width: "10%" } }), _jsx("col", { style: { width: "5%" } }), _jsx("col", { style: { width: "6%" } }), _jsx("col", { style: { width: "7%" } }), _jsx("col", { style: { width: "9%" } }), _jsx("col", { style: { width: "9%" } }), _jsx("col", { style: { width: "10%" } }), _jsx("col", { style: { width: "8%" } }), _jsx("col", { style: { width: "9%" } }), _jsx("col", { style: { width: "8%" } })] }), _jsxs("thead", { children: [_jsxs("tr", { children: [_jsx("th", { rowSpan: 2, style: { ...thBase, width: "9%" }, children: "Date" }), _jsx("th", { rowSpan: 2, style: { ...thBase, width: "10%" }, children: "Reference" }), _jsx("th", { colSpan: 3, style: { ...thBase, width: "18%" }, children: "Receipt" }), _jsxs("th", { rowSpan: 2, style: { ...thBase, width: "9%" }, children: ["Accumulated", _jsx("br", {}), "Depreciation"] }), _jsxs("th", { rowSpan: 2, style: { ...thBase, width: "9%" }, children: ["Accumulated", _jsx("br", {}), "Impairment", _jsx("br", {}), "Losses"] }), _jsxs("th", { rowSpan: 2, style: { ...thBase, width: "10%" }, children: ["Issues / Transfer", _jsx("br", {}), "/ Adjustment/s"] }), _jsxs("th", { rowSpan: 2, style: { ...thBase, width: "8%" }, children: ["Adjusted", _jsx("br", {}), "Cost"] }), _jsx("th", { colSpan: 2, style: { ...thBase, width: "17%" }, children: "Repair History" })] }), _jsxs("tr", { children: [_jsx("th", { style: { ...thBase, width: "5%" }, children: "Qty" }), _jsx("th", { style: { ...thBase, width: "6%" }, children: "Unit Cost" }), _jsx("th", { style: { ...thBase, width: "7%" }, children: "Total Cost" }), _jsx("th", { style: { ...thBase, width: "9%" }, children: "Nature of Repair" }), _jsx("th", { style: { ...thBase, width: "8%" }, children: "Amount" })] })] }), _jsx("tbody", { children: rows.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { style: { ...tdBase, textAlign: "center" }, children: row ? fmtDate(row.entryDate) : "" }), _jsx("td", { style: tdBase, children: row ? row.reference : "" }), _jsx("td", { style: { ...tdBase, textAlign: "center" }, children: row ? row.qty || row.receiptQty : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.unitCost) : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.totalCost) : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.accumulatedDepreciation) : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.accumulatedImpairmentLosses) : "" }), _jsx("td", { style: tdBase, children: row ? row.adjustmentsIssuesTransfer : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.adjustedCost) : "" }), _jsx("td", { style: tdBase, children: row ? row.natureOfRepair || row.repairHistory : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.amount) : "" })] }, index))) })] }), _jsxs("div", { style: {
122
+ marginTop: "3mm",
123
+ display: "flex",
124
+ justifyContent: "space-between",
125
+ fontSize: "7pt",
126
+ color: "#555",
127
+ }, children: [_jsxs("span", { children: ["Document No.: ", ppelcNo || "—"] }), _jsx("span", { children: "Page 1 of 1" })] })] }) })] }));
128
+ }
@@ -0,0 +1,21 @@
1
+ interface TableRow {
2
+ entryDate: string;
3
+ referenceParNo: string;
4
+ receiptQty: string;
5
+ issueTransferDisposalQty: string;
6
+ issueTransferDisposalOfficeOfficer: string;
7
+ balanceQty: string;
8
+ amount: string;
9
+ remarks: string;
10
+ }
11
+ interface PropertyCardPreviewProps {
12
+ entityName: string;
13
+ fundCluster: string;
14
+ propertyPlantEquipment: string;
15
+ description: string;
16
+ propertyNumber: string;
17
+ propertyCardNo: string;
18
+ tableRows: TableRow[];
19
+ }
20
+ export declare function PropertyCardPreview({ entityName, fundCluster, propertyPlantEquipment, description, propertyNumber, propertyCardNo, tableRows, }: PropertyCardPreviewProps): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,117 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ const FIXED_ROWS = 18;
4
+ function fmtDate(value) {
5
+ if (!value || value.trim() === "")
6
+ return "";
7
+ try {
8
+ return new Date(value).toLocaleDateString("en-PH");
9
+ }
10
+ catch {
11
+ return value;
12
+ }
13
+ }
14
+ function fmtInt(value) {
15
+ if (!value || value.trim() === "")
16
+ return "";
17
+ const n = Number(value);
18
+ if (Number.isNaN(n))
19
+ return value;
20
+ return Number.isInteger(n) ? n.toString() : Math.round(n).toString();
21
+ }
22
+ function fmtAmount(value) {
23
+ if (!value || value.trim() === "")
24
+ return "";
25
+ const n = Number(value);
26
+ if (Number.isNaN(n))
27
+ return value;
28
+ return n.toLocaleString("en-PH", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
29
+ }
30
+ const BORDER = "1px solid #2b2b2b";
31
+ const OUTER_BORDER = "2px solid #111";
32
+ const HEADER_BG = "#fff";
33
+ const thBase = {
34
+ border: BORDER,
35
+ padding: "3px 4px",
36
+ textAlign: "center",
37
+ fontWeight: 700,
38
+ backgroundColor: HEADER_BG,
39
+ verticalAlign: "middle",
40
+ lineHeight: "1.15",
41
+ height: "7mm",
42
+ };
43
+ const tdBase = {
44
+ border: BORDER,
45
+ padding: "2px 4px",
46
+ fontSize: "8pt",
47
+ lineHeight: "1.2",
48
+ verticalAlign: "middle",
49
+ height: "7.5mm",
50
+ whiteSpace: "normal",
51
+ overflowWrap: "anywhere",
52
+ };
53
+ export function PropertyCardPreview({ entityName, fundCluster, propertyPlantEquipment, description, propertyNumber, propertyCardNo, tableRows, }) {
54
+ // Always render exactly FIXED_ROWS — data rows fill from top, rest are blank
55
+ const rows = Array.from({ length: Math.max(FIXED_ROWS, tableRows.length) }, (_, i) => tableRows[i] ?? null);
56
+ return (_jsxs(_Fragment, { children: [_jsx("style", { children: `
57
+ @media print {
58
+ .no-print { display: none !important; }
59
+ body { background: white !important; }
60
+ .pc-a4-page { box-shadow: none !important; margin: 0 !important; padding: 8mm 10mm !important; }
61
+ }
62
+ .pc-a4-page * { box-sizing: border-box; }
63
+ ` }), _jsx("div", { style: { display: "inline-block" }, children: _jsxs("div", { className: "pc-a4-page border border-gray-300 bg-white shadow-sm", "data-pdf-page": "true", "data-pdf-orientation": "landscape", "data-pdf-fit-one-page": "true", style: {
64
+ width: "297mm",
65
+ minHeight: "210mm",
66
+ padding: "9mm 11mm 8mm",
67
+ fontFamily: '"Times New Roman", serif',
68
+ fontSize: "8.5pt",
69
+ display: "flex",
70
+ flexDirection: "column",
71
+ }, children: [_jsx("div", { style: {
72
+ textAlign: "right",
73
+ fontSize: "8.5pt",
74
+ fontStyle: "italic",
75
+ color: "#222",
76
+ marginBottom: "5mm",
77
+ }, children: "Appendix 69" }), _jsx("div", { style: {
78
+ textAlign: "center",
79
+ fontWeight: "bold",
80
+ fontSize: "10.6pt",
81
+ letterSpacing: "0.2px",
82
+ marginBottom: "5mm",
83
+ }, children: "PROPERTY CARD" }), _jsxs("div", { style: {
84
+ display: "grid",
85
+ gridTemplateColumns: "2.45fr 1fr",
86
+ columnGap: "8mm",
87
+ marginBottom: "2mm",
88
+ alignItems: "end",
89
+ }, children: [_jsxs("div", { style: { display: "flex", minHeight: "6mm", alignItems: "center" }, children: [_jsx("span", { style: { fontWeight: 700, fontSize: "9pt", whiteSpace: "nowrap" }, children: "Entity Name :" }), _jsx("span", { style: {
90
+ display: "inline-flex",
91
+ width: "67%",
92
+ height: "6mm",
93
+ alignItems: "center",
94
+ boxSizing: "border-box",
95
+ borderBottom: "1px solid #2b2b2b",
96
+ marginLeft: "2px",
97
+ paddingBottom: "2px",
98
+ fontSize: "9pt",
99
+ }, children: entityName || "\u00a0" })] }), _jsxs("div", { style: { display: "flex", minHeight: "6mm", alignItems: "center" }, children: [_jsx("span", { style: { fontWeight: 700, fontSize: "9pt", whiteSpace: "nowrap" }, children: "Fund Cluster:" }), _jsx("span", { style: {
100
+ display: "inline-flex",
101
+ width: "60%",
102
+ height: "6mm",
103
+ alignItems: "center",
104
+ boxSizing: "border-box",
105
+ borderBottom: "1px solid #2b2b2b",
106
+ marginLeft: "2px",
107
+ paddingBottom: "2px",
108
+ fontSize: "9pt",
109
+ }, children: fundCluster || "\u00a0" })] })] }), _jsxs("table", { style: {
110
+ width: "100%",
111
+ borderCollapse: "collapse",
112
+ fontSize: "8.5pt",
113
+ tableLayout: "fixed",
114
+ flex: "0 0 auto",
115
+ border: OUTER_BORDER,
116
+ }, children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "8.5%" } }), _jsx("col", { style: { width: "11.3%" } }), _jsx("col", { style: { width: "8.2%" } }), _jsx("col", { style: { width: "8.2%" } }), _jsx("col", { style: { width: "26.1%" } }), _jsx("col", { style: { width: "8.4%" } }), _jsx("col", { style: { width: "13.2%" } }), _jsx("col", { style: { width: "16.1%" } })] }), _jsx("caption", { style: { captionSide: "top", textAlign: "left", border: BORDER }, children: _jsxs("div", { style: { display: "grid", gridTemplateColumns: "71% 29%", overflowWrap: "anywhere" }, children: [_jsxs("div", { style: { borderRight: BORDER }, children: [_jsxs("div", { style: { padding: "4px", borderBottom: BORDER }, children: [_jsx("strong", { children: "Property, Plant and Equipment : " }), propertyPlantEquipment] }), _jsxs("div", { style: { padding: "4px" }, children: [_jsx("strong", { children: "Description : " }), description] })] }), _jsxs("div", { style: { padding: "4px", alignSelf: "center" }, children: [_jsx("strong", { children: "Property Number: " }), propertyNumber] })] }) }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { style: thBase, children: "Date" }), _jsxs("th", { style: thBase, children: ["Reference/", _jsx("br", {}), "PAR No."] }), _jsxs("th", { style: thBase, children: ["Receipt", _jsx("br", {}), "Qty."] }), _jsxs("th", { colSpan: 2, style: { ...thBase, padding: 0 }, children: [_jsx("div", { style: { padding: "4px", borderBottom: BORDER }, children: "Issue/Transfer/Disposal" }), _jsxs("div", { style: { display: "grid", gridTemplateColumns: "23.9% 76.1%" }, children: [_jsx("div", { style: { padding: "4px", borderRight: BORDER }, children: "Qty." }), _jsx("div", { style: { padding: "4px" }, children: "Office/Officer" })] })] }), _jsxs("th", { style: thBase, children: ["Balance", _jsx("br", {}), "Qty."] }), _jsx("th", { style: thBase, children: "Amount" }), _jsx("th", { style: thBase, children: "Remarks" })] }) }), _jsx("tbody", { children: rows.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { style: { ...tdBase, textAlign: "center" }, children: row ? fmtDate(row.entryDate) : "" }), _jsx("td", { style: tdBase, children: row ? (row.referenceParNo ?? "") : "" }), _jsx("td", { style: { ...tdBase, textAlign: "center" }, children: row ? fmtInt(row.receiptQty) : "" }), _jsx("td", { style: { ...tdBase, textAlign: "center" }, children: row ? fmtInt(row.issueTransferDisposalQty) : "" }), _jsx("td", { style: tdBase, children: row ? (row.issueTransferDisposalOfficeOfficer ?? "") : "" }), _jsx("td", { style: { ...tdBase, textAlign: "center" }, children: row ? fmtInt(row.balanceQty) : "" }), _jsx("td", { style: { ...tdBase, textAlign: "right" }, children: row ? fmtAmount(row.amount) : "" }), _jsx("td", { style: tdBase, children: row ? (row.remarks ?? "") : "" })] }, index))) })] }), _jsx("div", { style: { marginTop: "1mm", fontSize: "7pt", color: "#000" }, children: propertyCardNo })] }) })] }));
117
+ }
@@ -0,0 +1,36 @@
1
+ type PtrLine = {
2
+ dateAcquired?: string;
3
+ propertyNo?: string;
4
+ description?: string;
5
+ amount: string;
6
+ conditionOfPPE?: string;
7
+ };
8
+ type SignatureBlock = {
9
+ sig?: string;
10
+ name?: string;
11
+ designation?: string;
12
+ date?: string;
13
+ };
14
+ type PtrPreviewProps = {
15
+ entityName?: string;
16
+ fundCluster?: string;
17
+ fromAccountableOfficer?: string;
18
+ fromAccountablePerson?: string;
19
+ fromAgency?: string;
20
+ fromDivisionSection?: string;
21
+ toAccountableOfficer?: string;
22
+ toAccountablePerson?: string;
23
+ toAgency?: string;
24
+ toDivisionSection?: string;
25
+ ptrNo?: string;
26
+ date?: string;
27
+ transferType?: string;
28
+ othersSpecify?: string;
29
+ reasonForTransfer?: string;
30
+ approvedBy?: SignatureBlock;
31
+ releasedBy?: SignatureBlock;
32
+ receivedBy?: SignatureBlock;
33
+ lines: PtrLine[];
34
+ };
35
+ export declare function PtrPreview({ entityName, fundCluster, fromAccountableOfficer, fromAccountablePerson, fromAgency, fromDivisionSection, toAccountableOfficer, toAccountablePerson, toAgency, toDivisionSection, ptrNo, date, transferType, othersSpecify, reasonForTransfer, approvedBy, releasedBy, receivedBy, lines, }: PtrPreviewProps): import("react/jsx-runtime").JSX.Element;
36
+ export {};
@@ -0,0 +1,122 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ function fmtDate(value, style = "short") {
4
+ if (!value)
5
+ return "";
6
+ const date = new Date(value);
7
+ if (Number.isNaN(date.getTime()))
8
+ return value;
9
+ return date.toLocaleDateString("en-PH", {
10
+ year: style === "long" ? "numeric" : "2-digit",
11
+ month: style === "long" ? "long" : "short",
12
+ day: "2-digit",
13
+ });
14
+ }
15
+ function fmtAmount(value) {
16
+ const amount = Number(value);
17
+ if (Number.isNaN(amount))
18
+ return value;
19
+ return amount.toLocaleString("en-PH", {
20
+ minimumFractionDigits: 2,
21
+ maximumFractionDigits: 2,
22
+ });
23
+ }
24
+ function display(value) {
25
+ return value?.trim() || "\u00a0";
26
+ }
27
+ function hasLineContent(line) {
28
+ return [
29
+ line.dateAcquired,
30
+ line.propertyNo,
31
+ line.description,
32
+ Number(line.amount) !== 0 ? line.amount : "",
33
+ line.conditionOfPPE,
34
+ ].some(value => String(value ?? "").trim().length > 0);
35
+ }
36
+ function CheckOption({ label, checked, children, }) {
37
+ return (_jsxs("label", { style: { display: "flex", alignItems: "center", gap: "3px" }, children: [_jsx("input", { type: "checkbox", checked: checked, readOnly: true, style: { width: "9px", height: "9px", margin: 0 } }), _jsx("span", { children: label }), children] }));
38
+ }
39
+ function SignatureLine({ block, value, }) {
40
+ const content = value === "date" ? fmtDate(block[value], "long") : block[value];
41
+ return (_jsx("td", { style: { padding: "0 8px", textAlign: "center", verticalAlign: "bottom" }, children: _jsx("div", { style: {
42
+ boxSizing: "border-box",
43
+ height: "22px",
44
+ borderBottom: "1px solid #111",
45
+ padding: "3px 2px 5px",
46
+ fontWeight: value === "name" ? 700 : 400,
47
+ fontSize: value === "name" ? "8.5pt" : "8pt",
48
+ lineHeight: "1.1",
49
+ }, children: display(content) }) }));
50
+ }
51
+ export function PtrPreview({ entityName = "", fundCluster = "", fromAccountableOfficer = "", fromAccountablePerson = "", fromAgency = "", fromDivisionSection = "", toAccountableOfficer = "", toAccountablePerson = "", toAgency = "", toDivisionSection = "", ptrNo = "Auto-generated", date = "", transferType = "", othersSpecify = "", reasonForTransfer = "", approvedBy = {}, releasedBy = {}, receivedBy = {}, lines, }) {
52
+ const fromPerson = fromAccountablePerson || fromAccountableOfficer;
53
+ const toPerson = toAccountablePerson || toAccountableOfficer;
54
+ const visibleLines = lines.filter(hasLineContent);
55
+ const bodyRows = [...visibleLines];
56
+ while (bodyRows.length < 18)
57
+ bodyRows.push(null);
58
+ const cell = "border border-gray-950 px-1 py-1 text-[7pt] leading-[1.2] align-middle";
59
+ const head = "border border-gray-950 px-1 py-1 text-center text-[7pt] font-bold leading-[1.2]";
60
+ const labelStyle = { fontWeight: 700 };
61
+ return (_jsxs("div", { className: "psms-print-preview ptr-a4-page", "data-pdf-page": "true", style: {
62
+ width: "210mm",
63
+ minHeight: "297mm",
64
+ padding: "12mm 11mm",
65
+ fontFamily: '"Times New Roman", Times, serif',
66
+ fontSize: "7.5pt",
67
+ backgroundColor: "#fff",
68
+ color: "#000",
69
+ colorScheme: "light",
70
+ boxSizing: "border-box",
71
+ }, children: [_jsx("div", { style: { textAlign: "right", marginBottom: "10px", fontSize: "7pt", fontStyle: "italic" }, children: "Annex A.5" }), _jsx("h1", { style: { margin: "0 0 20px", textAlign: "center", fontSize: "12pt", fontWeight: 700 }, children: "PROPERTY TRANSFER REPORT" }), _jsxs("div", { style: {
72
+ display: "grid",
73
+ gridTemplateColumns: "1fr 1fr",
74
+ marginBottom: "3px",
75
+ fontSize: "8pt",
76
+ fontWeight: 700,
77
+ }, children: [_jsxs("div", { children: ["Entity Name : ", display(entityName)] }), _jsxs("div", { style: { textAlign: "right" }, children: ["Fund Cluster : ", display(fundCluster)] })] }), _jsxs("div", { style: { border: "1px solid #111" }, children: [_jsxs("table", { style: { width: "100%", borderCollapse: "collapse", tableLayout: "fixed" }, children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "72%" } }), _jsx("col", { style: { width: "28%" } })] }), _jsx("tbody", { children: _jsxs("tr", { style: { height: "74px" }, children: [_jsxs("td", { style: {
78
+ border: "1px solid #111",
79
+ padding: "5px",
80
+ verticalAlign: "top",
81
+ lineHeight: "1.25",
82
+ }, children: [_jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "From Accountable Person: " }), _jsx("strong", { children: display(fromPerson) })] }), _jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "Agency: " }), display(fromAgency)] }), _jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "Current Division/Section: " }), display(fromDivisionSection)] }), _jsxs("div", { style: { marginTop: "2px" }, children: [_jsx("span", { style: labelStyle, children: "To Accountable Person: " }), _jsx("strong", { children: display(toPerson) })] }), _jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "Agency: " }), display(toAgency)] }), _jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "Current Division/Section: " }), display(toDivisionSection)] })] }), _jsxs("td", { style: {
83
+ border: "1px solid #111",
84
+ padding: "5px",
85
+ verticalAlign: "top",
86
+ lineHeight: "1.25",
87
+ }, children: [_jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "PTR No. : " }), display(ptrNo)] }), _jsxs("div", { children: [_jsx("span", { style: labelStyle, children: "Date : " }), display(fmtDate(date, "long"))] })] })] }) })] }), _jsxs("div", { style: { borderBottom: "1px solid #111", padding: "3px 5px" }, children: [_jsx("div", { style: { marginBottom: "2px" }, children: "Transfer Type: (check only one)" }), _jsxs("div", { style: {
88
+ display: "grid",
89
+ gridTemplateColumns: "120px 140px",
90
+ rowGap: "1px",
91
+ marginLeft: "44px",
92
+ }, children: [_jsx(CheckOption, { label: "Donation", checked: transferType === "Donation" }), _jsx(CheckOption, { label: "Relocate", checked: transferType === "Relocate" }), _jsx(CheckOption, { label: "Reassignment", checked: transferType === "Reassignment" }), _jsx(CheckOption, { label: "Others (Specify)", checked: transferType === "Others", children: _jsx("span", { style: {
93
+ boxSizing: "border-box",
94
+ display: "inline-block",
95
+ minWidth: "115px",
96
+ height: "18px",
97
+ padding: "2px 2px 4px",
98
+ lineHeight: "1.1",
99
+ verticalAlign: "bottom",
100
+ borderBottom: "1px solid #111",
101
+ }, children: transferType === "Others" ? display(othersSpecify) : "\u00a0" }) })] })] }), _jsxs("table", { style: { width: "100%", borderCollapse: "collapse", tableLayout: "fixed" }, children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "16%" } }), _jsx("col", { style: { width: "18%" } }), _jsx("col", { style: { width: "38%" } }), _jsx("col", { style: { width: "14%" } }), _jsx("col", { style: { width: "14%" } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: head, children: "Date Acquired" }), _jsx("th", { className: head, children: "Property No." }), _jsx("th", { className: head, children: "Description" }), _jsx("th", { className: head, children: "Amount" }), _jsx("th", { className: head, children: "Condition of PPE/SE" })] }) }), _jsx("tbody", { children: bodyRows.map((line, index) => (_jsxs("tr", { style: { height: "20px" }, children: [_jsx("td", { className: cell, style: { textAlign: "center" }, children: line ? display(fmtDate(line.dateAcquired)) : "\u00a0" }), _jsx("td", { className: cell, style: { textAlign: "center" }, children: line ? display(line.propertyNo) : "\u00a0" }), _jsx("td", { className: cell, style: { textAlign: "center" }, children: line ? display(line.description) : "\u00a0" }), _jsx("td", { className: cell, style: { textAlign: "right" }, children: line ? fmtAmount(line.amount) : "\u00a0" }), _jsx("td", { className: cell, style: { textAlign: "center" }, children: line ? display(line.conditionOfPPE) : "\u00a0" })] }, index))) })] }), _jsxs("div", { style: { borderTop: "1px solid #111", padding: "3px 5px", minHeight: "38px" }, children: [_jsx("div", { style: { fontWeight: 700 }, children: "Reason for Transfer:" }), _jsx("div", { style: { marginTop: "5px", textAlign: "center", textDecoration: "underline" }, children: display(reasonForTransfer) })] }), _jsxs("table", { style: {
102
+ width: "100%",
103
+ borderCollapse: "collapse",
104
+ tableLayout: "fixed",
105
+ borderTop: "1px solid #111",
106
+ }, children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "15%" } }), _jsx("col", { style: { width: "28.33%" } }), _jsx("col", { style: { width: "28.33%" } }), _jsx("col", { style: { width: "28.34%" } })] }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { style: { padding: "18px 4px 2px" } }), _jsx("td", { style: {
107
+ padding: "18px 8px 2px",
108
+ textAlign: "center",
109
+ fontWeight: 700,
110
+ fontSize: "9pt",
111
+ }, children: "Approved by:" }), _jsx("td", { style: {
112
+ padding: "18px 8px 2px",
113
+ textAlign: "center",
114
+ fontWeight: 700,
115
+ fontSize: "9pt",
116
+ }, children: "Released/Issued by:" }), _jsx("td", { style: {
117
+ padding: "18px 8px 2px",
118
+ textAlign: "center",
119
+ fontWeight: 700,
120
+ fontSize: "9pt",
121
+ }, children: "Received by:" })] }), _jsxs("tr", { children: [_jsx("td", { style: { padding: "0 4px", fontWeight: 700, fontSize: "8.5pt" }, children: "Signature :" }), _jsx(SignatureLine, { block: approvedBy, value: "sig" }), _jsx(SignatureLine, { block: releasedBy, value: "sig" }), _jsx(SignatureLine, { block: receivedBy, value: "sig" })] }), _jsxs("tr", { children: [_jsx("td", { style: { padding: "0 4px", fontWeight: 700, fontSize: "8.5pt" }, children: "Printed Name :" }), _jsx(SignatureLine, { block: approvedBy, value: "name" }), _jsx(SignatureLine, { block: releasedBy, value: "name" }), _jsx(SignatureLine, { block: receivedBy, value: "name" })] }), _jsxs("tr", { children: [_jsx("td", { style: { padding: "0 4px 4px", fontWeight: 700, fontSize: "8.5pt" }, children: "Date :" }), _jsx(SignatureLine, { block: approvedBy, value: "date" }), _jsx(SignatureLine, { block: releasedBy, value: "date" }), _jsx(SignatureLine, { block: receivedBy, value: "date" })] })] })] })] })] }));
122
+ }
@@ -0,0 +1,66 @@
1
+ import { type PurchaseOrderRecord, type PurchaseRequestForPo } from "../purchase-order-flow.js";
2
+ export type PurchaseOrderPreviewData = {
3
+ poNo: string;
4
+ prNo: string;
5
+ supplier: string;
6
+ supplierAddress: string;
7
+ supplierTin: string;
8
+ modeOfProcurement: string;
9
+ entityName: string;
10
+ fundCluster: string;
11
+ poDate: string;
12
+ placeOfDelivery: string;
13
+ expectedDeliveryDate: string;
14
+ deliveryTerm: string;
15
+ paymentTerm: string;
16
+ amountInWords: string;
17
+ supplierConforme: string;
18
+ conformeDate: string;
19
+ authorizedOfficial: string;
20
+ fundsAvailable: string;
21
+ orsBursNo: string;
22
+ orsBursDate: string;
23
+ orsBursAmount: string;
24
+ chiefAccountantName: string;
25
+ items: PurchaseOrderRecord["items"];
26
+ };
27
+ export type PoTemplateFields = {
28
+ supplierAddress: string;
29
+ supplierTin: string;
30
+ modeOfProcurement: string;
31
+ placeOfDelivery: string;
32
+ deliveryTerm: string;
33
+ paymentTerm: string;
34
+ amountInWords: string;
35
+ supplierConforme: string;
36
+ conformeDate: string;
37
+ authorizedOfficial: string;
38
+ fundsAvailable: string;
39
+ orsBursNo: string;
40
+ orsBursDate: string;
41
+ orsBursAmount: string;
42
+ chiefAccountantName: string;
43
+ };
44
+ export declare function defaultPoTemplateFields(): PoTemplateFields;
45
+ export declare function PurchaseOrderPreview({ data }: {
46
+ data: PurchaseOrderPreviewData;
47
+ }): import("react/jsx-runtime").JSX.Element;
48
+ export type PurchaseOrderCreateFormProps = {
49
+ loading?: boolean;
50
+ approversLoading?: boolean;
51
+ availablePurchaseRequests: PurchaseRequestForPo[];
52
+ selectedPurchaseRequest: PurchaseRequestForPo | null;
53
+ createTab: string;
54
+ setCreateTab: (tab: string) => void;
55
+ setSelectedPrNo: (value: string) => void;
56
+ supplier: string;
57
+ setSupplier: (value: string) => void;
58
+ expectedDeliveryDate: string;
59
+ setExpectedDeliveryDate: (value: string) => void;
60
+ poTemplateFields: PoTemplateFields;
61
+ setPoTemplateField: (key: keyof PoTemplateFields, value: string) => void;
62
+ configuredChiefAccountantName: string;
63
+ selectedAmountInWords: string;
64
+ poNumber: string;
65
+ };
66
+ export declare function PurchaseOrderCreateForm({ loading, approversLoading, availablePurchaseRequests, selectedPurchaseRequest, createTab, setCreateTab, setSelectedPrNo, supplier, setSupplier, expectedDeliveryDate, setExpectedDeliveryDate, poTemplateFields, setPoTemplateField, configuredChiefAccountantName, selectedAmountInWords, poNumber }: PurchaseOrderCreateFormProps): import("react/jsx-runtime").JSX.Element;