@wisemen/wise-invoicing-web 0.0.2 → 0.0.4

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 (605) hide show
  1. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +25 -0
  2. package/dist/AirlineIcon-Z6sH_StM.js +26 -0
  3. package/dist/AirplaneIcon-C-nSkD1w.js +19 -0
  4. package/dist/AirportIcon-m4itDKCV.js +16 -0
  5. package/dist/AlertTriangleIcon-DtYLCC-Y.js +23 -0
  6. package/dist/AllocationsIcon-hcg93Sll.js +16 -0
  7. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +23 -0
  8. package/dist/AssetIcon-qOYs6Wna.js +16 -0
  9. package/dist/BarChartIcon-DDyzpV_3.js +22 -0
  10. package/dist/BellIcon-DF1OBFta.js +21 -0
  11. package/dist/BillingDocumentDetailViewDataProvider-pePmiXWb.js +5248 -0
  12. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  13. package/dist/BillingDocumentPdf-Dg5JlQE1.js +726 -0
  14. package/dist/BuildingIcon-CC5PMNeP.js +22 -0
  15. package/dist/ChargerIcon-aM_endLr.js +16 -0
  16. package/dist/ChevronDownIcon-4QiK-Z6-.js +23 -0
  17. package/dist/ChevronUpIcon-qBsjZ5Dz.js +23 -0
  18. package/dist/ClockIcon-BNiPCaiB.js +23 -0
  19. package/dist/ClockSnoozeIcon-BxGfwJB6.js +23 -0
  20. package/dist/CopyIcon-DH5ly0dZ.js +19 -0
  21. package/dist/CreditNoteDetailViewDataProvider-C-A0jyVr.js +751 -0
  22. package/dist/CreditNotePdfViewDataProvider-DNUvFVDj.js +21 -0
  23. package/dist/CustomFieldValueText-DDQq-975.js +189 -0
  24. package/dist/DataProvider-CfHLB3rH.js +48 -0
  25. package/dist/DownloadCloudIcon-Cf8ftklG.js +22 -0
  26. package/dist/DunningCaseDetailViewDataProvider-0WV-7-vg.js +400 -0
  27. package/dist/DunningCaseOverviewView-CHdzfbhb.js +553 -0
  28. package/dist/DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js +239 -0
  29. package/dist/DunningCaseSendDialog-DBtwr2ue.js +350 -0
  30. package/dist/EditIcon-Dr7OHBBR.js +21 -0
  31. package/dist/EraserIcon-B1VJSvdI.js +23 -0
  32. package/dist/FileIcon-ssmQI5Yl.js +23 -0
  33. package/dist/FilterLinesIcon-C7YdyPBk.js +23 -0
  34. package/dist/GlobeIcon-BfRM6Ike.js +22 -0
  35. package/dist/HelpIcon-BrJ49P5y.js +22 -0
  36. package/dist/HourGlassIcon-D9rfU1Is.js +22 -0
  37. package/dist/InfoCircleIcon-Ee0SyiMc.js +23 -0
  38. package/dist/InvoiceDetailViewDataProvider-BDL9lAWe.js +1579 -0
  39. package/dist/InvoiceOverviewViewDataProvider-B_jrcC_8.js +1613 -0
  40. package/dist/InvoicePdfView-Bygb-9z6.js +17 -0
  41. package/dist/InvoicePdfViewDataProvider-nBk3XNrE.js +21 -0
  42. package/dist/InvoicePublicPdfViewDataProvider-DHJP_-7-.js +44 -0
  43. package/dist/IssuerSettingsViewDataProvider-Dk_Q6w6f.js +188 -0
  44. package/dist/KeyboardIcon-T3o_g-1c.js +22 -0
  45. package/dist/LinkExternalIcon-BkHS4fCx.js +22 -0
  46. package/dist/LinkIcon-DuPwae98.js +22 -0
  47. package/dist/MarkerIcon-B1Jqenjb.js +28 -0
  48. package/dist/MobileBatteryIcon-GZ1SMRDV.js +16 -0
  49. package/dist/MonitorIcon-pbK22reU.js +22 -0
  50. package/dist/NotificationIcon-Ctv8vyWt.js +19 -0
  51. package/dist/ParkingIcon-DnUPW3pB.js +24 -0
  52. package/dist/PlanningIcon-CXvrskgj.js +16 -0
  53. package/dist/PreferenceIcon-BHS8uDyi.js +22 -0
  54. package/dist/ReceiptCheckIcon-QTestqCJ.js +23 -0
  55. package/dist/RefreshIcon-DShY-aoS.js +22 -0
  56. package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +668 -0
  57. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +28 -0
  58. package/dist/RewindIcon-GWg2AQax.js +22 -0
  59. package/dist/SettingsIcon-CBLJ6B5u.js +25 -0
  60. package/dist/ShieldIcon-CVnrOcxl.js +19 -0
  61. package/dist/ShieldOffIcon-B9l0dDVb.js +23 -0
  62. package/dist/SignOutIcon-CmDkjJ5F.js +21 -0
  63. package/dist/SlashCircleIcon-jY5FBko5.js +22 -0
  64. package/dist/StandIcon-CoYnBLMn.js +23 -0
  65. package/dist/StarsIcon-D7ZlqOW7.js +22 -0
  66. package/dist/StopwatchIcon-BK0vh1lg.js +22 -0
  67. package/dist/TargetIcon-HMWj77-Q.js +22 -0
  68. package/dist/ThreeDotsIcon-BtFruOKz.js +32 -0
  69. package/dist/ToolIcon-DRfDb7fE.js +22 -0
  70. package/dist/TrashIcon-BwxBjHv5.js +19 -0
  71. package/dist/TurnaroundIcon-b1X61TwZ.js +27 -0
  72. package/dist/UploadCloudIcon-BF0equKg.js +22 -0
  73. package/dist/UserIcon-B0rCC6KE.js +22 -0
  74. package/dist/UsersIcon-cK5l_zKG.js +22 -0
  75. package/dist/VerifiedIcon-CELYlqcv.js +22 -0
  76. package/dist/WifiIcon--JPvMNEF.js +23 -0
  77. package/dist/WifiOffIcon-BS2KftcP.js +23 -0
  78. package/dist/ZapIcon-BHwcIQc0.js +23 -0
  79. package/dist/ZoomInIcon-Cu6r915V.js +23 -0
  80. package/dist/ZoomOutIcon-DwB4FRj-.js +23 -0
  81. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  82. package/dist/address.transformer-B8C0pwT1.js +167 -0
  83. package/dist/addressForm.model-C853zEtX.js +20 -0
  84. package/dist/api.util-Dm_TQedZ.js +2948 -0
  85. package/dist/billingDocumentDetail.transformer-zMTbka5p.js +334 -0
  86. package/dist/client/client/client.gen.d.ts +2 -0
  87. package/dist/client/client/index.d.ts +10 -0
  88. package/dist/client/client/types.gen.d.ts +120 -0
  89. package/dist/client/client/utils.gen.d.ts +37 -0
  90. package/dist/client/client.gen.d.ts +12 -0
  91. package/dist/client/core/auth.gen.d.ts +25 -0
  92. package/dist/client/core/bodySerializer.gen.d.ts +25 -0
  93. package/dist/client/core/params.gen.d.ts +43 -0
  94. package/dist/client/core/pathSerializer.gen.d.ts +33 -0
  95. package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
  96. package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
  97. package/dist/client/core/types.gen.d.ts +83 -0
  98. package/dist/client/core/utils.gen.d.ts +19 -0
  99. package/dist/client/index.d.ts +2 -0
  100. package/dist/client/sdk.gen.d.ts +123 -0
  101. package/dist/client/types.gen.d.ts +4894 -0
  102. package/dist/client/zod.gen.d.ts +67202 -0
  103. package/dist/composables/created.composable.d.ts +1 -0
  104. package/dist/composables/currency-format/useCurrencyFormat.composable.d.ts +12 -0
  105. package/dist/composables/document-title/documentTitle.composable.d.ts +8 -0
  106. package/dist/composables/form-auto-save/formAutoSave.composable.d.ts +14 -0
  107. package/dist/composables/invoicingConfig.composable.d.ts +24 -0
  108. package/dist/composables/invoicingQueryInvalidation.composable.d.ts +9 -0
  109. package/dist/composables/invoicingQueryInvalidation.composable.spec.d.ts +1 -0
  110. package/dist/composables/is-selector-visible/isSelectorVisible.composable.d.ts +1 -0
  111. package/dist/composables/paginated-cache/paginatedCache.composable.d.ts +8 -0
  112. package/dist/composables/routeQueryState.composable.d.ts +12 -0
  113. package/dist/composables/search/search.composable.d.ts +12 -0
  114. package/dist/composables/sort.composable.d.ts +3 -0
  115. package/dist/composables/virtual-scrolling/virtualScrolling.composable.d.ts +31 -0
  116. package/dist/creditNoteDetail.query-BZqgZRSu.js +122 -0
  117. package/dist/customerUuid.model-GUFYq3O2.js +5 -0
  118. package/dist/dashboard-BaWGNEek.js +5 -0
  119. package/dist/dist-DJ8yJcb9.js +2499 -0
  120. package/dist/dist-DP8KNFVD.js +927 -0
  121. package/dist/dist-YTXTCfo1.js +333 -0
  122. package/dist/documentTitle.composable-CeaFddr1.js +68 -0
  123. package/dist/download.util-PjaUQR6r.js +9 -0
  124. package/dist/formango.util-D5c2ql--.js +12 -0
  125. package/dist/i18n.lib-DUbAMBRb.js +1440 -0
  126. package/dist/index.d.ts +1603 -2873
  127. package/dist/index.js +749 -42
  128. package/dist/invoice.service-ChHEtXBA.js +629 -0
  129. package/dist/invoiceDeliveryStatus.util-BsA-MlA3.js +331 -0
  130. package/dist/invoiceDetail.query-O_CGvdwg.js +11 -0
  131. package/dist/invoicingConfig.composable-c6w_aMm1.js +60 -0
  132. package/dist/issuerSettings.query-RqtrZFaB.js +116 -0
  133. package/dist/libs/http.lib.d.ts +5 -0
  134. package/dist/libs/i18n.lib.d.ts +1439 -0
  135. package/dist/locales/en-US.json.d.ts +718 -0
  136. package/dist/locales/nl-BE.json.d.ts +718 -0
  137. package/dist/locales/ui-en-US.json.d.ts +66 -0
  138. package/dist/locales/ui-nl-BE.json.d.ts +66 -0
  139. package/dist/models/address/address.model.d.ts +15 -0
  140. package/dist/models/address/address.transformer.d.ts +11 -0
  141. package/dist/models/address/address.util.d.ts +11 -0
  142. package/dist/models/address/addressForm.model.d.ts +15 -0
  143. package/dist/models/address/addressForm.transformer.d.ts +8 -0
  144. package/dist/models/address/addressForm.transformer.spec.d.ts +1 -0
  145. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +21 -0
  146. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.transformer.d.ts +5 -0
  147. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +136 -0
  148. package/dist/models/billing-document/billingDocumentDetail.transformer.d.ts +5 -0
  149. package/dist/models/billing-document/billingDocumentDiscount.model.d.ts +9 -0
  150. package/dist/models/billing-document/billingDocumentDiscount.transformer.d.ts +6 -0
  151. package/dist/models/billing-document/billingDocumentDisplay.util.d.ts +7 -0
  152. package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +6 -0
  153. package/dist/models/billing-document/billingDocumentLineItemUpdateForm.model.d.ts +21 -0
  154. package/dist/models/billing-document/billingDocumentStatusEnum.model.d.ts +12 -0
  155. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +27 -0
  156. package/dist/models/billing-document/billingDocumentVatSummary.util.d.ts +4 -0
  157. package/dist/models/billing-document/billingDocumentVatSummary.util.spec.d.ts +1 -0
  158. package/dist/models/customer/customerDetail.model.d.ts +6 -0
  159. package/dist/models/customer/customerDetail.transformer.d.ts +5 -0
  160. package/dist/models/customer/customerUuid.model.d.ts +3 -0
  161. package/dist/models/file-reference/fileReference.dto.d.ts +13 -0
  162. package/dist/models/file-reference/fileReference.model.d.ts +13 -0
  163. package/dist/models/file-reference/fileReference.transformer.d.ts +9 -0
  164. package/dist/models/file-reference/fileReferenceForm.model.d.ts +10 -0
  165. package/dist/modules/credit-note/api/mutations/creditNoteDelete.mutation.d.ts +4 -0
  166. package/dist/modules/credit-note/api/mutations/creditNoteFinalize.mutation.d.ts +6 -0
  167. package/dist/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.d.ts +6 -0
  168. package/dist/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.d.ts +6 -0
  169. package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +4 -0
  170. package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +9 -0
  171. package/dist/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.d.ts +4 -0
  172. package/dist/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.d.ts +3 -0
  173. package/dist/modules/credit-note/api/queries/creditNoteDetail.query.d.ts +3 -0
  174. package/dist/modules/credit-note/api/query-keys/creditNote.queryKeys.d.ts +17 -0
  175. package/dist/modules/credit-note/api/services/creditNote.service.d.ts +18 -0
  176. package/dist/modules/credit-note/models/creditNoteUuid.model.d.ts +3 -0
  177. package/dist/modules/credit-note/models/detail/creditNoteDetail.model.d.ts +4 -0
  178. package/dist/modules/credit-note/models/detail/creditNoteDetail.transformer.d.ts +5 -0
  179. package/dist/modules/credit-note/models/update/creditNoteUpdate.transformer.d.ts +7 -0
  180. package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +11 -0
  181. package/dist/modules/credit-note/models/update/creditNoteUpdateLines.model.d.ts +2 -0
  182. package/dist/modules/credit-note/models/update/creditNoteUpdateLines.transformer.d.ts +5 -0
  183. package/dist/modules/credit-note/routes/creditNote.routes.d.ts +26 -0
  184. package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue.d.ts +12 -0
  185. package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailRemarksSection.vue.d.ts +7 -0
  186. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebar.vue.d.ts +9 -0
  187. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue.d.ts +7 -0
  188. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarInfoTab.vue.d.ts +9 -0
  189. package/dist/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue.d.ts +9 -0
  190. package/dist/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.d.ts +8 -0
  191. package/dist/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue.d.ts +13 -0
  192. package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailView.vue.d.ts +9 -0
  193. package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailViewDataProvider.vue.d.ts +7 -0
  194. package/dist/modules/credit-note/use-cases/pdf/views/CreditNotePdfViewDataProvider.vue.d.ts +7 -0
  195. package/dist/modules/custom-field/api/queries/customFieldDefinitionIndex.query.d.ts +3 -0
  196. package/dist/modules/custom-field/api/query-keys/customFieldDefinition.queryKeys.d.ts +10 -0
  197. package/dist/modules/custom-field/api/services/customFieldDefinition.service.d.ts +6 -0
  198. package/dist/modules/custom-field/components/CustomFieldFieldset.vue.d.ts +21 -0
  199. package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +10 -0
  200. package/dist/modules/custom-field/components/CustomFieldValueInput.vue.d.ts +23 -0
  201. package/dist/modules/custom-field/components/CustomFieldValueText.vue.d.ts +10 -0
  202. package/dist/modules/custom-field/components/customFieldFieldset.spec.d.ts +1 -0
  203. package/dist/modules/custom-field/components/customFieldValueInput.spec.d.ts +1 -0
  204. package/dist/modules/custom-field/composables/customFieldValueModel.composable.d.ts +28 -0
  205. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +24 -0
  206. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.d.ts +5 -0
  207. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +8 -0
  208. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.spec.d.ts +1 -0
  209. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionIndexQueryParams.model.d.ts +4 -0
  210. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionUuid.model.d.ts +3 -0
  211. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +12 -0
  212. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.d.ts +8 -0
  213. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.spec.d.ts +1 -0
  214. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
  215. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.spec.d.ts +1 -0
  216. package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +13 -0
  217. package/dist/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.d.ts +5 -0
  218. package/dist/modules/dunning-case/api/mutations/dunningCaseSend.mutation.d.ts +4 -0
  219. package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +24 -0
  220. package/dist/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.d.ts +2 -0
  221. package/dist/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.d.ts +6 -0
  222. package/dist/modules/dunning-case/api/queries/dunningCaseDetail.query.d.ts +3 -0
  223. package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.d.ts +8 -0
  224. package/dist/modules/dunning-case/api/queries/reminderConfig.query.d.ts +1 -0
  225. package/dist/modules/dunning-case/api/query-keys/dunningCase.queryKeys.d.ts +55 -0
  226. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +19 -0
  227. package/dist/modules/dunning-case/api/services/dunningCaseCustomer.service.d.ts +11 -0
  228. package/dist/modules/dunning-case/components/DunningCaseReminderLevelIndicator.vue.d.ts +9 -0
  229. package/dist/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue.d.ts +9 -0
  230. package/dist/modules/dunning-case/components/dunningCaseReminderLevelIndicator.spec.d.ts +1 -0
  231. package/dist/modules/dunning-case/components/dunningCaseReminderStatusIndicator.spec.d.ts +1 -0
  232. package/dist/modules/dunning-case/index.d.ts +4 -0
  233. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +107 -0
  234. package/dist/modules/dunning-case/models/dunningCase.model.spec.d.ts +1 -0
  235. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +13 -0
  236. package/dist/modules/dunning-case/models/dunningCase.transformer.spec.d.ts +1 -0
  237. package/dist/modules/dunning-case/models/dunningCaseCustomer.model.d.ts +9 -0
  238. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +31 -0
  239. package/dist/modules/dunning-case/models/reminderConfigForm.model.spec.d.ts +1 -0
  240. package/dist/modules/dunning-case/models/reminderTimeline.util.d.ts +9 -0
  241. package/dist/modules/dunning-case/models/reminderTimeline.util.spec.d.ts +1 -0
  242. package/dist/modules/dunning-case/routes/dunningCase.routes.d.ts +37 -0
  243. package/dist/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue.d.ts +7 -0
  244. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue.d.ts +7 -0
  245. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailViewDataProvider.vue.d.ts +7 -0
  246. package/dist/modules/dunning-case/use-cases/detail/views/dunningCaseDetailView.spec.d.ts +1 -0
  247. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.d.ts +5 -0
  248. package/dist/modules/dunning-case/use-cases/overview/views/DunningCaseOverviewView.vue.d.ts +3 -0
  249. package/dist/modules/dunning-case/use-cases/overview/views/dunningCaseOverviewView.spec.d.ts +1 -0
  250. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +2 -0
  251. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +5 -0
  252. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +7 -0
  253. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +20 -0
  254. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +8 -0
  255. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.spec.d.ts +1 -0
  256. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +7 -0
  257. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfViewDataProvider.vue.d.ts +3 -0
  258. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue.d.ts +9 -0
  259. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendSummary.vue.d.ts +8 -0
  260. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue.d.ts +8 -0
  261. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceRow.vue.d.ts +8 -0
  262. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceSummary.vue.d.ts +8 -0
  263. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendRecipientAlert.vue.d.ts +7 -0
  264. package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseReminderSubject.composable.d.ts +6 -0
  265. package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.d.ts +16 -0
  266. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +10 -0
  267. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseSendDialog.vue.d.ts +12 -0
  268. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +16 -0
  269. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.spec.d.ts +1 -0
  270. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderFeeNotice.vue.d.ts +3 -0
  271. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderPanel.vue.d.ts +12 -0
  272. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +26 -0
  273. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderTimeline.vue.d.ts +13 -0
  274. package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplateTabs.vue.d.ts +20 -0
  275. package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplatesPanel.vue.d.ts +24 -0
  276. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +41 -0
  277. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsView.vue.d.ts +7 -0
  278. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsViewDataProvider.vue.d.ts +3 -0
  279. package/dist/modules/invoice/actions/invoice.actions.d.ts +5 -0
  280. package/dist/modules/invoice/actions/invoiceNavigateToDetail.action.d.ts +1 -0
  281. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +11 -0
  282. package/dist/modules/invoice/api/invoiceIndexCache.util.spec.d.ts +1 -0
  283. package/dist/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.d.ts +9 -0
  284. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +5 -0
  285. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +5 -0
  286. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +5 -0
  287. package/dist/modules/invoice/api/mutations/invoiceCreate.mutation.d.ts +7 -0
  288. package/dist/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.d.ts +4 -0
  289. package/dist/modules/invoice/api/mutations/invoiceDelete.mutation.d.ts +4 -0
  290. package/dist/modules/invoice/api/mutations/invoiceDuplicate.mutation.d.ts +4 -0
  291. package/dist/modules/invoice/api/mutations/invoiceFinalize.mutation.d.ts +4 -0
  292. package/dist/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.d.ts +4 -0
  293. package/dist/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.d.ts +4 -0
  294. package/dist/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.d.ts +4 -0
  295. package/dist/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.d.ts +4 -0
  296. package/dist/modules/invoice/api/mutations/invoicePaymentCreate.mutation.d.ts +11 -0
  297. package/dist/modules/invoice/api/mutations/invoicePaymentDelete.mutation.d.ts +6 -0
  298. package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +4 -0
  299. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +16 -0
  300. package/dist/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.d.ts +13 -0
  301. package/dist/modules/invoice/api/mutations/invoiceUpdateLines.mutation.d.ts +4 -0
  302. package/dist/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.d.ts +4 -0
  303. package/dist/modules/invoice/api/queries/invoiceActivityLogIndex.query.d.ts +3 -0
  304. package/dist/modules/invoice/api/queries/invoiceCustomerDetail.query.d.ts +6 -0
  305. package/dist/modules/invoice/api/queries/invoiceCustomerSearch.query.d.ts +7 -0
  306. package/dist/modules/invoice/api/queries/invoiceDetail.query.d.ts +3 -0
  307. package/dist/modules/invoice/api/queries/invoiceIndex.query.d.ts +3 -0
  308. package/dist/modules/invoice/api/queries/invoicePaymentIndex.query.d.ts +3 -0
  309. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +2 -0
  310. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +55 -0
  311. package/dist/modules/invoice/api/services/fileUpload.service.d.ts +9 -0
  312. package/dist/modules/invoice/api/services/fileUpload.service.spec.d.ts +1 -0
  313. package/dist/modules/invoice/api/services/invoice.service.d.ts +48 -0
  314. package/dist/modules/invoice/api/services/invoiceCustomer.service.d.ts +9 -0
  315. package/dist/modules/invoice/components/InvoiceDeliveryStatusBadge.vue.d.ts +10 -0
  316. package/dist/modules/invoice/components/InvoiceDisputedBadge.vue.d.ts +8 -0
  317. package/dist/modules/invoice/components/InvoiceOverdueBadge.vue.d.ts +8 -0
  318. package/dist/modules/invoice/components/InvoiceSettlementStatusBadge.vue.d.ts +18 -0
  319. package/dist/modules/invoice/components/InvoiceStatusBadge.vue.d.ts +10 -0
  320. package/dist/modules/invoice/components/form/InvoiceFormCustomerField.vue.d.ts +16 -0
  321. package/dist/modules/invoice/models/invoice/create/invoiceCreate.transformer.d.ts +5 -0
  322. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.model.d.ts +9 -0
  323. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.transformer.d.ts +5 -0
  324. package/dist/modules/invoice/models/invoice/create/invoiceCreateForm.model.d.ts +9 -0
  325. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.model.d.ts +3 -0
  326. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.transformer.d.ts +6 -0
  327. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -0
  328. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +5 -0
  329. package/dist/modules/invoice/models/invoice/index/invoiceDateRange.model.d.ts +5 -0
  330. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +27 -0
  331. package/dist/modules/invoice/models/invoice/index/invoiceIndex.transformer.d.ts +5 -0
  332. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +16 -0
  333. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -0
  334. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.spec.d.ts +1 -0
  335. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.model.d.ts +6 -0
  336. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.d.ts +6 -0
  337. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.spec.d.ts +1 -0
  338. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.model.d.ts +20 -0
  339. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.d.ts +11 -0
  340. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.spec.d.ts +1 -0
  341. package/dist/modules/invoice/models/invoice/invoiceStatus.model.d.ts +11 -0
  342. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +7 -0
  343. package/dist/modules/invoice/models/invoice/payment/invoicePayment.model.d.ts +13 -0
  344. package/dist/modules/invoice/models/invoice/payment/invoicePayment.transformer.d.ts +5 -0
  345. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.d.ts +5 -0
  346. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +11 -0
  347. package/dist/modules/invoice/models/invoice/payment/paymentUuid.model.d.ts +3 -0
  348. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +56 -0
  349. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +5 -0
  350. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscount.transformer.d.ts +5 -0
  351. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.d.ts +9 -0
  352. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdate.transformer.d.ts +7 -0
  353. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.d.ts +12 -0
  354. package/dist/modules/invoice/models/invoice/update/invoiceLineItemUpdateForm.model.d.ts +11 -0
  355. package/dist/modules/invoice/models/invoice/update/invoiceSubjectUpdateForm.model.d.ts +6 -0
  356. package/dist/modules/invoice/models/invoice/update/invoiceUpdate.transformer.d.ts +7 -0
  357. package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +16 -0
  358. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.model.d.ts +2 -0
  359. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.transformer.d.ts +5 -0
  360. package/dist/modules/invoice/models/invoiceUuid.model.d.ts +3 -0
  361. package/dist/modules/invoice/routes/invoice.routes.d.ts +38 -0
  362. package/dist/modules/invoice/use-cases/create/dialogs/InvoiceCreateDialog.vue.d.ts +7 -0
  363. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +12 -0
  364. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailLinkedCreditNotesSection.vue.d.ts +7 -0
  365. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailRemarksSection.vue.d.ts +7 -0
  366. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebar.vue.d.ts +9 -0
  367. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue.d.ts +7 -0
  368. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarInfoTab.vue.d.ts +9 -0
  369. package/dist/modules/invoice/use-cases/detail/components/sidebar/invoiceDetailSidebarInfoTab.spec.d.ts +1 -0
  370. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue.d.ts +8 -0
  371. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentManualCell.vue.d.ts +7 -0
  372. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsSection.vue.d.ts +7 -0
  373. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsTableTextCell.vue.d.ts +6 -0
  374. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceLineItemsTableSection.vue.d.ts +9 -0
  375. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +9 -0
  376. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +6 -0
  377. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApplyDiscountDialog.vue.d.ts +11 -0
  378. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue.d.ts +13 -0
  379. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentCreateDialog.vue.d.ts +11 -0
  380. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue.d.ts +13 -0
  381. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailView.vue.d.ts +9 -0
  382. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailViewDataProvider.vue.d.ts +7 -0
  383. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +22 -0
  384. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue.d.ts +7 -0
  385. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableCustomFieldCell.vue.d.ts +9 -0
  386. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableDueDateCell.vue.d.ts +8 -0
  387. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableIssuedDateCell.vue.d.ts +7 -0
  388. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableLifecycleCell.vue.d.ts +8 -0
  389. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableNameCell.vue.d.ts +9 -0
  390. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +10 -0
  391. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSentCell.vue.d.ts +7 -0
  392. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSequenceCell.vue.d.ts +6 -0
  393. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableStatusCell.vue.d.ts +7 -0
  394. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +15 -0
  395. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.spec.d.ts +1 -0
  396. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.d.ts +11 -0
  397. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.spec.d.ts +1 -0
  398. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +16 -0
  399. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +12 -0
  400. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +18 -0
  401. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +14 -0
  402. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +25 -0
  403. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +12 -0
  404. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +12 -0
  405. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +12 -0
  406. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +29 -0
  407. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +25 -0
  408. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewViewDataProvider.vue.d.ts +16 -0
  409. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +7 -0
  410. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfFooterSection.vue.d.ts +7 -0
  411. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfHeaderSection.vue.d.ts +8 -0
  412. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfLinesTable.vue.d.ts +8 -0
  413. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfSummarySection.vue.d.ts +8 -0
  414. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableCell.vue.d.ts +16 -0
  415. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableHeaderCell.vue.d.ts +6 -0
  416. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +3 -0
  417. package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +30 -0
  418. package/dist/modules/invoice/use-cases/pdf/components/invoicePdfLinesTable.spec.d.ts +1 -0
  419. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +42 -0
  420. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.spec.d.ts +1 -0
  421. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +7 -0
  422. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfViewDataProvider.vue.d.ts +7 -0
  423. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue.d.ts +3 -0
  424. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +25 -0
  425. package/dist/modules/settings/api/queries/issuerSettings.query.d.ts +1 -0
  426. package/dist/modules/settings/api/query-keys/issuerSettings.queryKeys.d.ts +6 -0
  427. package/dist/modules/settings/api/services/issuerSettings.service.d.ts +7 -0
  428. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +15 -0
  429. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +8 -0
  430. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.spec.d.ts +1 -0
  431. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +28 -0
  432. package/dist/modules/settings/routes/settings.routes.d.ts +23 -0
  433. package/dist/modules/settings/use-cases/overview/components/IssuerSettingsForm.vue.d.ts +7 -0
  434. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsView.vue.d.ts +7 -0
  435. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsViewDataProvider.vue.d.ts +3 -0
  436. package/dist/plainDate.transformer-BxvJpJOv.js +39 -0
  437. package/dist/reminderConfig.query-DzTN2AvU.js +316 -0
  438. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  439. package/dist/routes/invoicingPublicRoutes.composable.d.ts +9 -0
  440. package/dist/routes/invoicingRoutes.composable.d.ts +73 -0
  441. package/dist/routes/invoicingRoutes.composable.spec.d.ts +1 -0
  442. package/dist/routes/invoicingStandaloneRoutes.composable.d.ts +17 -0
  443. package/dist/src-BFgnUugN.js +123 -0
  444. package/dist/style.css +2 -1
  445. package/dist/types/apiError.type.d.ts +7 -0
  446. package/dist/types/query.type.d.ts +20 -0
  447. package/dist/types/queryKey.type.d.ts +8 -0
  448. package/dist/ui/DateRangeFilterButton.vue.d.ts +15 -0
  449. package/dist/ui/DisplayState.vue.d.ts +16 -0
  450. package/dist/ui/billing-document/BillingDocumentDetailHeaderSection.vue.d.ts +28 -0
  451. package/dist/ui/billing-document/BillingDocumentDetailLayout.vue.d.ts +22 -0
  452. package/dist/ui/billing-document/BillingDocumentDetailPage.vue.d.ts +24 -0
  453. package/dist/ui/billing-document/BillingDocumentDetailRemarksSection.vue.d.ts +10 -0
  454. package/dist/ui/billing-document/BillingDocumentDetailViewDataProvider.vue.d.ts +31 -0
  455. package/dist/ui/billing-document/BillingDocumentFinalizeDialog.vue.d.ts +11 -0
  456. package/dist/ui/billing-document/BillingDocumentHeaderActions.vue.d.ts +13 -0
  457. package/dist/ui/billing-document/BillingDocumentPdfViewer.vue.d.ts +7 -0
  458. package/dist/ui/billing-document/billingDocumentHeaderActions.types.d.ts +24 -0
  459. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.d.ts +14 -0
  460. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.spec.d.ts +1 -0
  461. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebar.vue.d.ts +20 -0
  462. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityContent.vue.d.ts +20 -0
  463. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityTab.vue.d.ts +3 -0
  464. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarAttachmentsTab.vue.d.ts +7 -0
  465. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarHeader.vue.d.ts +14 -0
  466. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarInfoItem.vue.d.ts +21 -0
  467. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarLayout.vue.d.ts +16 -0
  468. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarOriginalInvoiceSection.vue.d.ts +7 -0
  469. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +12 -0
  470. package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +16 -0
  471. package/dist/ui/billing-document/table/BillingDocumentLineItemsBulkActionBar.vue.d.ts +3 -0
  472. package/dist/ui/billing-document/table/BillingDocumentLineItemsDragHandle.vue.d.ts +3 -0
  473. package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +16 -0
  474. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue.d.ts +3 -0
  475. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +14 -0
  476. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableHeader.vue.d.ts +12 -0
  477. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableRow.vue.d.ts +10 -0
  478. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableSection.vue.d.ts +13 -0
  479. package/dist/ui/billing-document/table/BillingDocumentLineItemsTotals.vue.d.ts +7 -0
  480. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +2773 -0
  481. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.d.ts +22 -0
  482. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.spec.d.ts +1 -0
  483. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +484 -0
  484. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +41 -0
  485. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.spec.d.ts +1 -0
  486. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +41 -0
  487. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.d.ts +16 -0
  488. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +13 -0
  489. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableCustomField.vue.d.ts +21 -0
  490. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +35 -0
  491. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableNumberField.vue.d.ts +26 -0
  492. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableSelectField.vue.d.ts +35 -0
  493. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +23 -0
  494. package/dist/ui/billing-document/table/field/billingDocumentLineItemsTableNumberField.spec.d.ts +1 -0
  495. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +90 -0
  496. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.spec.d.ts +1 -0
  497. package/dist/ui/billing-document/useBillingDocumentFinalizePreference.composable.d.ts +4 -0
  498. package/dist/ui/customer-invoice-list/CustomerInvoiceList.vue.d.ts +16 -0
  499. package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +6 -0
  500. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue.d.ts +8 -0
  501. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableInvoiceNumberCell.vue.d.ts +6 -0
  502. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableTextCell.vue.d.ts +6 -0
  503. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +3 -0
  504. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.d.ts +9 -0
  505. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.d.ts +8 -0
  506. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.spec.d.ts +1 -0
  507. package/dist/ui/dashboard/index.d.ts +7 -0
  508. package/dist/ui/data-provider/DataProvider.vue.d.ts +27 -0
  509. package/dist/ui/file-upload/InvoicingFileUploadProvider.vue.d.ts +13 -0
  510. package/dist/ui/file-upload/invoicingFileUpload.adapter.d.ts +2 -0
  511. package/dist/useCurrencyFormat.composable-MtZaqKnO.js +38 -0
  512. package/dist/utils/api.util.d.ts +5 -0
  513. package/dist/utils/context.util.d.ts +1 -0
  514. package/dist/utils/createComponent.d.ts +4 -0
  515. package/dist/utils/download.util.d.ts +3 -0
  516. package/dist/utils/formango.util.d.ts +8 -0
  517. package/dist/utils/image.util.d.ts +3 -0
  518. package/dist/utils/instant.transformer.d.ts +7 -0
  519. package/dist/utils/map.util.d.ts +2 -0
  520. package/dist/utils/monetary/currency.model.d.ts +180 -0
  521. package/dist/utils/monetary/monetary.model.d.ts +6 -0
  522. package/dist/utils/monetary/monetary.util.d.ts +8 -0
  523. package/dist/utils/monetary/monetaryDto.model.d.ts +9 -0
  524. package/dist/utils/number.util.d.ts +4 -0
  525. package/dist/utils/percentage.util.d.ts +13 -0
  526. package/dist/utils/plainDate.transformer.d.ts +7 -0
  527. package/dist/utils/search.util.d.ts +3 -0
  528. package/package.json +26 -25
  529. package/dist/AddOpenBoundaryIcon-LcnpqCb7.js +0 -28
  530. package/dist/AirlineIcon-29r8leGB.js +0 -31
  531. package/dist/AirplaneIcon-B9jZP9r0.js +0 -21
  532. package/dist/AirportIcon-C4PxDtDr.js +0 -18
  533. package/dist/AlertTriangleIcon-BD58hKRP.js +0 -24
  534. package/dist/AllocationsIcon-BQan6NWO.js +0 -18
  535. package/dist/ArrowNarrowRightIcon-BA1c_QRh.js +0 -24
  536. package/dist/AssetIcon-DnK5wAyN.js +0 -18
  537. package/dist/BarChartIcon-CKrBCh6x.js +0 -24
  538. package/dist/BellIcon-BT2cGatU.js +0 -23
  539. package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js +0 -5374
  540. package/dist/BuildingIcon-CUOTWDHc.js +0 -24
  541. package/dist/ChargerIcon-BhrjeyKv.js +0 -18
  542. package/dist/ChevronDownIcon-DljNUnFk.js +0 -24
  543. package/dist/ChevronUpIcon-CoxFAIp_.js +0 -24
  544. package/dist/ClockIcon-CTnAGb9i.js +0 -24
  545. package/dist/ClockSnoozeIcon-BRoTw_Vn.js +0 -24
  546. package/dist/CopyIcon-JiNI8Dfg.js +0 -21
  547. package/dist/CreditNoteDetailViewDataProvider-Cy1j_m3I.js +0 -871
  548. package/dist/CreditNotePdfViewDataProvider-B7-HFIKD.js +0 -36
  549. package/dist/DownloadCloudIcon-DKHwnpvk.js +0 -24
  550. package/dist/EditIcon-DtGrCf8G.js +0 -23
  551. package/dist/EraserIcon-Cb0Ep_Yq.js +0 -24
  552. package/dist/FileIcon-C4wGvJpt.js +0 -26
  553. package/dist/FilterLinesIcon-B7wPXDy1.js +0 -24
  554. package/dist/GlobeIcon-B-Idmck1.js +0 -24
  555. package/dist/HelpIcon-CdKWaEaB.js +0 -26
  556. package/dist/HourGlassIcon-CQLPiXVW.js +0 -24
  557. package/dist/InfoCircleIcon-5gjQoNog.js +0 -24
  558. package/dist/InvoiceDetailViewDataProvider-4lGG7Wtq.js +0 -1918
  559. package/dist/InvoiceOverviewView-Boqvwabl.js +0 -4
  560. package/dist/InvoicePdfViewDataProvider-CJ3fL71W.js +0 -36
  561. package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +0 -4
  562. package/dist/IssuerSettingsViewDataProvider-TM-bmC55.js +0 -249
  563. package/dist/KeyboardIcon-DlAp0VUG.js +0 -24
  564. package/dist/LinkExternalIcon-BPO_c7Ke.js +0 -24
  565. package/dist/LinkIcon-9M0uzW4a.js +0 -24
  566. package/dist/MarkerIcon-pId64QTW.js +0 -31
  567. package/dist/MobileBatteryIcon-Dq6Vh0d5.js +0 -18
  568. package/dist/MonitorIcon-PsvDF5LA.js +0 -24
  569. package/dist/NotificationIcon-C-mhyH5v.js +0 -21
  570. package/dist/ParkingIcon-BD0RoGv5.js +0 -29
  571. package/dist/PlanningIcon-BBIuwW2I.js +0 -18
  572. package/dist/PreferenceIcon-zR5mjygu.js +0 -24
  573. package/dist/ReceiptCheckIcon-CHEEnJEK.js +0 -24
  574. package/dist/RefreshIcon-CfjOS7Vw.js +0 -24
  575. package/dist/RemoveOpenBoundaryIcon-CEbBT9CX.js +0 -31
  576. package/dist/RewindIcon-9PFea9gA.js +0 -24
  577. package/dist/SettingsIcon-CSIbrANE.js +0 -28
  578. package/dist/ShieldIcon-CU4mxKxP.js +0 -21
  579. package/dist/ShieldOffIcon-D6_I1MKn.js +0 -24
  580. package/dist/SignOutIcon-ClrPsj39.js +0 -23
  581. package/dist/SlashCircleIcon-DBy7XjBm.js +0 -24
  582. package/dist/StandIcon-vV8J4-3H.js +0 -24
  583. package/dist/StarsIcon-RO6wNbsC.js +0 -26
  584. package/dist/StopwatchIcon-DubYBmeN.js +0 -24
  585. package/dist/TargetIcon-BwVw7rVC.js +0 -24
  586. package/dist/ThreeDotsIcon-BvRfi-Lm.js +0 -32
  587. package/dist/ToolIcon-Dw-vgiL1.js +0 -24
  588. package/dist/TrashIcon-Dh6ASxXd.js +0 -21
  589. package/dist/TurnaroundIcon-Hn5nPhvb.js +0 -30
  590. package/dist/UploadCloudIcon-BV7b8ygQ.js +0 -24
  591. package/dist/UserIcon-BRrPmqkm.js +0 -24
  592. package/dist/UsersIcon-fORcf4YV.js +0 -24
  593. package/dist/VerifiedIcon-BtqxtP6h.js +0 -26
  594. package/dist/WifiIcon-Bd9TvVVJ.js +0 -24
  595. package/dist/WifiOffIcon-CpATjY4j.js +0 -24
  596. package/dist/ZapIcon-BG6cVpfC.js +0 -24
  597. package/dist/ZoomInIcon-CQ_R4Ydf.js +0 -24
  598. package/dist/ZoomOutIcon-DlcCdCda.js +0 -24
  599. package/dist/creditNoteDetail.query-Dj6oKRTO.js +0 -159
  600. package/dist/index-CYV9qUlg.js +0 -23375
  601. package/dist/index-DCE3vzbe.js +0 -7
  602. package/dist/invoiceDetail.query-Wtw3VSKd.js +0 -13
  603. package/dist/issuerSettings.query-H5-5e_KF.js +0 -130
  604. package/dist/style.d.ts +0 -1
  605. /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
@@ -1,1918 +0,0 @@
1
- import { openBlock as r, createElementBlock as K, createElementVNode as N, defineComponent as x, computed as c, createBlock as v, unref as e, withCtx as s, createVNode as o, Fragment as ae, renderList as Te, ref as Pe, watch as di, createCommentVNode as D, mergeProps as P, createSlots as vi, toDisplayString as Me } from "vue";
2
- import { useI18n as h } from "vue-i18n";
3
- import { u as mi } from "./invoiceDetail.query-Wtw3VSKd.js";
4
- import { d as ge, I as k, e as Le, p as se, f as G, g as $, h as pi, S as _e, i as Ae, L as _i, A as $e, j as fi, D as gi, F as yi, k as bi, l as wi, T as Ii, m as xi, n as Di, o as ye, R as qe, q as hi, r as ki, s as Ui, u as X, v as ve, w as Ci, x as Si, y as Ai, z as be, E as Ei, t as M, P as Fi, H as Ti, U as Pi, B as Mi, G as me, J as Re, K as Li, M as $i, C as Oe, N as qi, O as B, Q as Ri } from "./index-CYV9qUlg.js";
5
- import { UIBadge as Q, UITooltip as Oi, UITooltipContent as zi, UIColumnLayout as ze, UIText as R, useToast as O, UIFormDialog as le, UIDialogHeader as ce, UIDialogFooter as re, UIDialogFooterCancel as ue, UIDialogFooterSubmit as we, useOverlay as de, UIForm as Ve, UIRowLayout as Y, UIDialogBody as Ie, UIFormFieldGroup as xe, UIFormFieldGrid as De, UIDateField as te, UITextField as oe, UIDetailList as Vi, UIDetailListGroup as pe, UIDetailListGroupItem as q, UIDetailListGroupItemLabel as V, UIDetailListGroupItemValueText as j, UIIconButton as je, UIDetailListGroupSeparator as Ee, UITableCell as he, UITableCellInteractiveElement as ji, defineTableColumns as Bi, createComponent as H, UINumberField as fe, UIFormSubmitButton as Ni, UIConfirmDialog as Ki, UIBadgeLabel as Fe, UIBadgeSeparator as Gi, UIButton as Hi, UITable as Qi, createSelectOptions as Zi, UISelect as Wi } from "@wisemen/vue-core-design-system";
6
- import { useForm as Z } from "formango";
7
- import Ji, { z as I } from "zod";
8
- import { _ as Yi, u as Xi, F as en, B as Be, a as Ne, b as nn, c as tn, d as on, e as an, f as sn, g as ln, h as cn, i as Ke, j as rn, k as un, l as dn, m as vn, n as mn, o as pn, p as _n, q as fn, r as gn } from "./BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js";
9
- import { useMutation as E, useKeysetInfiniteQuery as yn, useQuery as Ge } from "@wisemen/vue-core-api-utils";
10
- import { Temporal as He } from "temporal-polyfill";
11
- import { useRouter as Qe, RouterLink as bn } from "vue-router";
12
- import { u as wn } from "./issuerSettings.query-H5-5e_KF.js";
13
- const In = {}, xn = {
14
- width: "100%",
15
- height: "100%",
16
- viewBox: "0 0 24 24",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg"
19
- };
20
- function Dn(i, n) {
21
- return r(), K("svg", xn, [...n[0] || (n[0] = [
22
- N("path", {
23
- d: "M6 16C6 18.2091 7.79086 20 10 20H14C16.2091 20 18 18.2091 18 16C18 13.7909 16.2091 12 14 12H10C7.79086 12 6 10.2091 6 8C6 5.79086 7.79086 4 10 4H14C16.2091 4 18 5.79086 18 8M12 2V22",
24
- stroke: "currentColor",
25
- "stroke-width": "2",
26
- "stroke-linecap": "round",
27
- "stroke-linejoin": "round"
28
- }, null, -1)
29
- ])]);
30
- }
31
- const hn = /* @__PURE__ */ ge(In, [["render", Dn]]), kn = {}, Un = {
32
- width: "100%",
33
- height: "100%",
34
- viewBox: "0 0 24 24",
35
- fill: "none",
36
- xmlns: "http://www.w3.org/2000/svg"
37
- };
38
- function Cn(i, n) {
39
- return r(), K("svg", Un, [...n[0] || (n[0] = [
40
- N("path", {
41
- d: "M12 5V19M5 12H19",
42
- stroke: "currentColor",
43
- "stroke-width": "2",
44
- "stroke-linecap": "round",
45
- "stroke-linejoin": "round"
46
- }, null, -1)
47
- ])]);
48
- }
49
- const Sn = /* @__PURE__ */ ge(kn, [["render", Cn]]), An = {}, En = {
50
- width: "100%",
51
- height: "100%",
52
- viewBox: "0 0 24 24",
53
- fill: "none",
54
- xmlns: "http://www.w3.org/2000/svg"
55
- };
56
- function Fn(i, n) {
57
- return r(), K("svg", En, [...n[0] || (n[0] = [
58
- N("path", {
59
- d: "M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",
60
- stroke: "currentColor",
61
- "stroke-width": "2",
62
- "stroke-linecap": "round",
63
- "stroke-linejoin": "round"
64
- }, null, -1)
65
- ])]);
66
- }
67
- const Tn = /* @__PURE__ */ ge(An, [["render", Fn]]);
68
- function ke() {
69
- return E({
70
- queryFn: (i) => k.update(
71
- i.params.invoiceUuid,
72
- i.body
73
- ),
74
- queryKeysToInvalidate: {
75
- invoiceDetail: {
76
- invoiceUuid: (i) => i.invoiceUuid
77
- },
78
- invoiceIndex: {}
79
- }
80
- });
81
- }
82
- const Pn = /* @__PURE__ */ x({
83
- __name: "InvoiceDeliveryStatusBadge",
84
- props: {
85
- deliveryStatus: {},
86
- size: { default: "sm" }
87
- },
88
- setup(i) {
89
- const n = i, t = h(), l = c(
90
- () => Le.getMetadata(n.deliveryStatus)
91
- ), a = c(() => t.t(l.value.translationKey));
92
- return (m, d) => (r(), v(e(Q), {
93
- label: a.value,
94
- color: l.value.tone,
95
- size: n.size,
96
- variant: "translucent"
97
- }, null, 8, ["label", "color", "size"]));
98
- }
99
- }), Mn = /* @__PURE__ */ x({
100
- __name: "InvoiceReminderBadge",
101
- props: {
102
- reminders: {},
103
- size: { default: "sm" }
104
- },
105
- setup(i) {
106
- const n = i, t = h(), l = se(), a = c(() => t.t("wise_invoicing.invoice.reminder.badge", {
107
- count: n.reminders.length
108
- }));
109
- function m(d) {
110
- return l.formatPlainDate(
111
- d.toZonedDateTimeISO(He.Now.timeZoneId()).toPlainDate()
112
- );
113
- }
114
- return (d, f) => (r(), v(e(Oi), {
115
- "popover-side-offset": 8,
116
- "popover-align": "start",
117
- "popover-side": "bottom"
118
- }, {
119
- trigger: s(() => [
120
- o(e(Q), {
121
- label: a.value,
122
- size: n.size,
123
- color: "gray",
124
- variant: "translucent"
125
- }, null, 8, ["label", "size"])
126
- ]),
127
- content: s(() => [
128
- o(e(zi), null, {
129
- default: s(() => [
130
- o(e(ze), {
131
- gap: "xs",
132
- class: "max-w-80"
133
- }, {
134
- default: s(() => [
135
- (r(!0), K(ae, null, Te(n.reminders, (p, _) => (r(), v(e(R), {
136
- key: p.uuid,
137
- text: e(t).t("wise_invoicing.invoice.reminder.tooltip_line", {
138
- number: _ + 1,
139
- date: m(p.sentAt)
140
- }),
141
- class: "text-sm text-primary"
142
- }, null, 8, ["text"]))), 128))
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- })
149
- ]),
150
- _: 1
151
- }));
152
- }
153
- }), Ln = I.string().nullable(), $n = I.object({
154
- subject: Ln
155
- });
156
- function qn() {
157
- return E({
158
- queryFn: (i) => k.createCreditNote(
159
- i.params.invoiceUuid
160
- ),
161
- queryKeysToInvalidate: {
162
- invoiceDetail: {
163
- invoiceUuid: (i) => i.invoiceUuid
164
- },
165
- invoiceIndex: {}
166
- }
167
- });
168
- }
169
- function Rn() {
170
- return E({
171
- queryFn: (i) => k.duplicate(
172
- i.params.invoiceUuid
173
- ),
174
- queryKeysToInvalidate: {
175
- invoiceIndex: {}
176
- }
177
- });
178
- }
179
- function On() {
180
- return E({
181
- queryFn: (i) => k.finalize(
182
- i.params.invoiceUuid
183
- ),
184
- queryKeysToInvalidate: {
185
- invoiceDetail: {
186
- invoiceUuid: (i) => i.invoiceUuid
187
- },
188
- invoiceIndex: {}
189
- }
190
- });
191
- }
192
- function zn() {
193
- return E({
194
- queryFn: (i) => k.markAsDraft(
195
- i.params.invoiceUuid
196
- ),
197
- queryKeysToInvalidate: {
198
- invoiceDetail: {
199
- invoiceUuid: (i) => i.invoiceUuid
200
- },
201
- invoiceIndex: {}
202
- }
203
- });
204
- }
205
- function Vn() {
206
- return E({
207
- queryFn: (i) => k.markAsPaid(
208
- i.params.invoiceUuid
209
- ),
210
- queryKeysToInvalidate: {
211
- invoiceDetail: {
212
- invoiceUuid: (i) => i.invoiceUuid
213
- },
214
- invoiceIndex: {}
215
- }
216
- });
217
- }
218
- function jn() {
219
- return E({
220
- queryFn: (i) => k.markAsProtested(
221
- i.params.invoiceUuid
222
- ),
223
- queryKeysToInvalidate: {
224
- invoiceDetail: {
225
- invoiceUuid: (i) => i.invoiceUuid
226
- },
227
- invoiceIndex: {}
228
- }
229
- });
230
- }
231
- function Bn() {
232
- return E({
233
- queryFn: (i) => k.markAsReady(
234
- i.params.invoiceUuid
235
- ),
236
- queryKeysToInvalidate: {
237
- invoiceDetail: {
238
- invoiceUuid: (i) => i.invoiceUuid
239
- },
240
- invoiceIndex: {}
241
- }
242
- });
243
- }
244
- function Nn() {
245
- return E({
246
- queryFn: (i) => k.send(
247
- i.params.invoiceUuid
248
- ),
249
- queryKeysToInvalidate: {
250
- invoiceDetail: {
251
- invoiceUuid: (i) => i.invoiceUuid
252
- },
253
- invoiceIndex: {}
254
- }
255
- });
256
- }
257
- function Kn() {
258
- return E({
259
- queryFn: (i) => k.withdrawProtest(
260
- i.params.invoiceUuid
261
- ),
262
- queryKeysToInvalidate: {
263
- invoiceDetail: {
264
- invoiceUuid: (i) => i.invoiceUuid
265
- },
266
- invoiceIndex: {}
267
- }
268
- });
269
- }
270
- function Gn() {
271
- return E({
272
- queryFn: (i) => k.delete(i.params.invoiceUuid),
273
- queryKeysToInvalidate: {
274
- invoiceIndex: {}
275
- }
276
- });
277
- }
278
- const Hn = /* @__PURE__ */ x({
279
- __name: "InvoiceDeleteDialog",
280
- props: {
281
- invoice: {}
282
- },
283
- emits: ["close", "deleted"],
284
- setup(i, { emit: n }) {
285
- const t = i, l = n, a = h(), m = Qe(), d = O(), f = Gn(), p = Z({
286
- schema: Ji.object({}),
287
- onSubmit: async () => {
288
- const _ = await f.execute({
289
- params: {
290
- invoiceUuid: t.invoice.uuid
291
- }
292
- });
293
- if (_.isErr()) {
294
- d.apiError(_.error);
295
- return;
296
- }
297
- d.show({
298
- message: a.t("wise_invoicing.invoice.delete.success_toast")
299
- }), l("deleted"), l("close"), await m.push({
300
- name: "invoicing-invoice-overview"
301
- });
302
- }
303
- });
304
- return (_, g) => (r(), v(e(le), {
305
- form: e(p),
306
- size: "xs",
307
- onClose: g[0] || (g[0] = (b) => l("close"))
308
- }, {
309
- default: s(() => [
310
- o(e(ce), {
311
- title: e(a).t("wise_invoicing.invoice.delete.title"),
312
- description: e(a).t("wise_invoicing.invoice.delete.description"),
313
- "is-description-visible": !0
314
- }, null, 8, ["title", "description"]),
315
- o(e(re), null, {
316
- right: s(() => [
317
- o(e(ue), { label: "cancel" }),
318
- o(e(we), {
319
- "is-destructive": !0,
320
- label: e(a).t("wise_invoicing.invoice.delete.submit_button")
321
- }, null, 8, ["label"])
322
- ]),
323
- _: 1
324
- })
325
- ]),
326
- _: 1
327
- }, 8, ["form"]));
328
- }
329
- });
330
- function Qn(i) {
331
- const n = h(), t = O(), l = Qe(), a = de(), m = a.create(Hn), d = a.create(Yi), f = Nn(), p = qn(), _ = Rn(), g = On(), b = zn(), U = Vn(), T = jn(), F = Bn(), C = Kn(), {
332
- shouldSkipConfirmation: S
333
- } = Xi(), w = Pe(null), L = c(() => G.getMetadata(i.value.status)), y = c(() => w.value ?? i.value.isDisputed), A = c(() => i.value.status !== $.DRAFT && i.value.status !== $.READY), W = c(() => i.value.lifecycleStatus === pi.FINALIZED), We = c(() => (i.value.status === $.SENT || i.value.status === $.OVERDUE) && i.value.maxReminderCount > 0), Ue = c(() => i.value.reminders.length >= i.value.maxReminderCount);
334
- function ee(u) {
335
- return L.value.actions.includes(u);
336
- }
337
- di(() => i.value.isDisputed, (u) => {
338
- w.value === u && (w.value = null);
339
- });
340
- async function Ce() {
341
- const u = await g.execute({
342
- params: {
343
- invoiceUuid: i.value.uuid
344
- }
345
- });
346
- return u.isErr() ? (t.apiError(u.error), !1) : (t.show({
347
- message: n.t("wise_invoicing.invoice.finalize.success")
348
- }), !0);
349
- }
350
- async function Je() {
351
- if (S.value) {
352
- await Ce();
353
- return;
354
- }
355
- await d.open({
356
- billingDocumentType: "invoice",
357
- onConfirm: Ce
358
- });
359
- }
360
- async function Ye() {
361
- const u = await F.execute({
362
- params: {
363
- invoiceUuid: i.value.uuid
364
- }
365
- });
366
- if (u.isErr()) {
367
- t.apiError(u.error);
368
- return;
369
- }
370
- t.show({
371
- message: n.t("wise_invoicing.invoice.mark_as_ready.success")
372
- });
373
- }
374
- async function Xe() {
375
- const u = await b.execute({
376
- params: {
377
- invoiceUuid: i.value.uuid
378
- }
379
- });
380
- if (u.isErr()) {
381
- t.apiError(u.error);
382
- return;
383
- }
384
- t.show({
385
- message: n.t("wise_invoicing.invoice.mark_as_draft.success")
386
- });
387
- }
388
- async function ei() {
389
- const u = await U.execute({
390
- params: {
391
- invoiceUuid: i.value.uuid
392
- }
393
- });
394
- if (u.isErr()) {
395
- t.apiError(u.error);
396
- return;
397
- }
398
- t.show({
399
- message: n.t("wise_invoicing.invoice.mark_as_paid.success")
400
- });
401
- }
402
- async function ii() {
403
- w.value = !0;
404
- const u = await T.execute({
405
- params: {
406
- invoiceUuid: i.value.uuid
407
- }
408
- });
409
- if (u.isErr()) {
410
- w.value = null, t.apiError(u.error);
411
- return;
412
- }
413
- t.show({
414
- message: n.t("wise_invoicing.invoice.mark_as_disputed.success")
415
- });
416
- }
417
- async function ni() {
418
- w.value = !1;
419
- const u = await C.execute({
420
- params: {
421
- invoiceUuid: i.value.uuid
422
- }
423
- });
424
- if (u.isErr()) {
425
- w.value = null, t.apiError(u.error);
426
- return;
427
- }
428
- t.show({
429
- message: n.t("wise_invoicing.invoice.withdraw_dispute.success")
430
- });
431
- }
432
- async function ti() {
433
- const u = await f.execute({
434
- params: {
435
- invoiceUuid: i.value.uuid
436
- }
437
- });
438
- if (u.isErr()) {
439
- t.apiError(u.error);
440
- return;
441
- }
442
- t.show({
443
- message: n.t("wise_invoicing.invoice.send.success")
444
- });
445
- }
446
- async function oi() {
447
- const u = await f.execute({
448
- params: {
449
- invoiceUuid: i.value.uuid
450
- }
451
- });
452
- if (u.isErr()) {
453
- t.apiError(u.error);
454
- return;
455
- }
456
- t.show({
457
- message: n.t("wise_invoicing.invoice.reminder.success")
458
- });
459
- }
460
- async function ai() {
461
- await m.open({
462
- invoice: i.value
463
- });
464
- }
465
- async function si() {
466
- const u = await k.getByUuid(i.value.uuid);
467
- if (u.isErr()) {
468
- t.apiError(u.error);
469
- return;
470
- }
471
- const J = u.value.file;
472
- if (J === null) {
473
- t.show({
474
- message: n.t("wise_invoicing.invoice.download_pdf.generation_in_progress")
475
- });
476
- return;
477
- }
478
- const ie = await en.getDownloadUrl(J.uuid);
479
- ie !== null && xi.downloadUrl(ie, J.name);
480
- }
481
- async function li() {
482
- const u = await _.execute({
483
- params: {
484
- invoiceUuid: i.value.uuid
485
- }
486
- });
487
- if (u.isErr()) {
488
- t.apiError(u.error);
489
- return;
490
- }
491
- t.show({
492
- button: {
493
- label: n.t("wise_invoicing.invoice.duplicate.view_action"),
494
- onClick: () => {
495
- l.push({
496
- name: "invoicing-invoice-detail",
497
- params: {
498
- invoiceUuid: u.value
499
- }
500
- });
501
- }
502
- },
503
- message: n.t("wise_invoicing.invoice.duplicate.success")
504
- });
505
- }
506
- async function ci() {
507
- const u = await p.execute({
508
- params: {
509
- invoiceUuid: i.value.uuid
510
- }
511
- });
512
- if (u.isErr()) {
513
- t.apiError(u.error);
514
- return;
515
- }
516
- t.show({
517
- button: {
518
- label: n.t("wise_invoicing.credit_note.create.view_action"),
519
- onClick: () => {
520
- l.push({
521
- name: "invoicing-credit-note-detail",
522
- params: {
523
- creditNoteUuid: u.value
524
- }
525
- });
526
- }
527
- },
528
- message: n.t("wise_invoicing.credit_note.create.success")
529
- });
530
- }
531
- const ri = c(() => [
532
- {
533
- isLoading: f.isLoading.value,
534
- iconLeft: _e,
535
- key: "send",
536
- label: n.t("wise_invoicing.invoice.detail.actions.send"),
537
- variant: "primary",
538
- visible: i.value.status === $.FINALIZED,
539
- onClick: ti
540
- },
541
- {
542
- isDisabled: Ue.value,
543
- isLoading: f.isLoading.value,
544
- disabledReason: Ue.value ? n.t("wise_invoicing.invoice.reminder.max_reached") : null,
545
- iconLeft: _e,
546
- key: "sendReminder",
547
- label: n.t("wise_invoicing.invoice.detail.header.send_reminder"),
548
- variant: "primary",
549
- visible: We.value,
550
- onClick: oi
551
- },
552
- {
553
- isLoading: F.isLoading.value,
554
- iconRight: Ae,
555
- key: "markAsReady",
556
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
557
- visible: ee("markAsReady"),
558
- onClick: Ye
559
- },
560
- {
561
- isLoading: g.isLoading.value,
562
- iconLeft: _i,
563
- key: "finalize",
564
- label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
565
- visible: ee("finalize"),
566
- onClick: Je
567
- }
568
- ].filter((u) => u.visible)), Se = c(() => {
569
- const u = [
570
- {
571
- icon: $e,
572
- key: "markAsProtested",
573
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_disputed"),
574
- visible: W.value && !y.value,
575
- onSelect: ii
576
- },
577
- {
578
- icon: fi,
579
- key: "markAsPaid",
580
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_paid"),
581
- visible: ee("markAsPaid"),
582
- onSelect: ei
583
- },
584
- {
585
- icon: Ae,
586
- key: "withdrawProtest",
587
- label: n.t("wise_invoicing.invoice.detail.actions.withdraw_dispute"),
588
- visible: W.value && y.value,
589
- onSelect: ni
590
- }
591
- ], J = [
592
- $.FINALIZED,
593
- $.PAID,
594
- $.SENT,
595
- $.OVERDUE,
596
- $.PROTESTED
597
- ].includes(i.value.status), ie = [
598
- {
599
- icon: gi,
600
- key: "downloadPdf",
601
- label: n.t("wise_invoicing.common.download_pdf"),
602
- visible: A.value,
603
- onSelect: si
604
- },
605
- {
606
- icon: yi,
607
- key: "backToDraft",
608
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
609
- visible: ee("markAsDraft"),
610
- onSelect: Xe
611
- },
612
- {
613
- icon: bi,
614
- key: "duplicate",
615
- label: n.t("wise_invoicing.invoice.detail.actions.duplicate"),
616
- visible: !0,
617
- onSelect: li
618
- }
619
- ], ui = [
620
- {
621
- icon: wi,
622
- key: "createCreditNote",
623
- label: n.t("wise_invoicing.invoice.detail.header.cancel_with_credit_note"),
624
- visible: J,
625
- onSelect: ci
626
- },
627
- {
628
- icon: Ii,
629
- key: "delete",
630
- label: n.t("wise_invoicing.invoice.detail.actions.delete"),
631
- visible: L.value.isEditable,
632
- onSelect: ai
633
- }
634
- ];
635
- return [
636
- {
637
- items: u.filter((z) => z.visible),
638
- key: "lifecycle"
639
- },
640
- {
641
- items: ie.filter((z) => z.visible),
642
- key: "secondary"
643
- },
644
- {
645
- items: ui.filter((z) => z.visible),
646
- key: "destructive"
647
- }
648
- ].filter((z) => z.items.length > 0);
649
- });
650
- return {
651
- isActionMenuVisible: c(() => Se.value.length > 0),
652
- isDisputed: y,
653
- menuGroups: Se,
654
- primaryButtons: ri
655
- };
656
- }
657
- const Zn = /* @__PURE__ */ x({
658
- __name: "InvoiceDetailHeaderSection",
659
- props: {
660
- isPdfViewActive: { type: Boolean },
661
- invoice: {}
662
- },
663
- emits: ["togglePdfView"],
664
- setup(i, { emit: n }) {
665
- const t = i, l = n, a = h(), m = O(), {
666
- isDisputed: d,
667
- menuGroups: f,
668
- primaryButtons: p
669
- } = Qn(c(() => t.invoice)), _ = ke(), g = c(() => new Be(t.invoice.status)), b = c(() => g.value.color), U = c(() => a.t(g.value.translationKey)), T = c(() => t.invoice.deliveryStatus !== Di.UNSENT || t.invoice.reminders.length > 0), F = c(() => Le.isSent(t.invoice.deliveryStatus)), C = c(() => !G.isEditable(t.invoice.status)), S = Z({
670
- initialState: {
671
- subject: t.invoice.subject
672
- },
673
- schema: $n,
674
- onSubmit: async (L) => {
675
- const y = await _.execute({
676
- body: {
677
- ...ye.toForm(t.invoice),
678
- subject: L.subject
679
- },
680
- params: {
681
- invoiceUuid: t.invoice.uuid
682
- }
683
- });
684
- y.isErr() && m.apiError(y.error);
685
- }
686
- }), w = S.register("subject");
687
- return Ne({
688
- form: S
689
- }), (L, y) => (r(), v(e(Ve), {
690
- form: e(S),
691
- "prompt-on-unsaved-changes": !1
692
- }, {
693
- default: s(() => [
694
- o(nn, {
695
- "fallback-title": e(a).t("wise_invoicing.invoice.detail.fallback_title"),
696
- "is-disabled": C.value,
697
- sequence: t.invoice.sequence,
698
- "status-color": b.value,
699
- "status-label": U.value,
700
- icon: e(qe),
701
- "subject-field": e(w),
702
- "subject-placeholder": e(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
703
- }, {
704
- actions: s(() => [
705
- o(on, {
706
- "is-pdf-view-active": t.isPdfViewActive,
707
- "menu-groups": e(f),
708
- "primary-buttons": e(p),
709
- onTogglePdfView: y[0] || (y[0] = (A) => l("togglePdfView"))
710
- }, null, 8, ["is-pdf-view-active", "menu-groups", "primary-buttons"])
711
- ]),
712
- status: s(() => [
713
- o(e(Y), {
714
- gap: "xs",
715
- class: "flex-wrap items-start"
716
- }, {
717
- default: s(() => [
718
- o(hi, {
719
- "lifecycle-status": t.invoice.lifecycleStatus
720
- }, null, 8, ["lifecycle-status"]),
721
- o(ki, {
722
- "is-sent": F.value,
723
- "balance-due-amount": t.invoice.balanceDueAmount,
724
- "gross-amount": t.invoice.grossAmount,
725
- "paid-amount": t.invoice.paidAmount,
726
- "settlement-status": t.invoice.settlementStatus,
727
- "total-credited-amount": t.invoice.totalCreditedAmount
728
- }, null, 8, ["is-sent", "balance-due-amount", "gross-amount", "paid-amount", "settlement-status", "total-credited-amount"]),
729
- t.invoice.isOverdue ? (r(), v(tn, { key: 0 })) : D("", !0),
730
- e(d) ? (r(), v(Ui, { key: 1 })) : D("", !0),
731
- T.value ? (r(), v(Pn, {
732
- key: 2,
733
- "delivery-status": t.invoice.deliveryStatus
734
- }, null, 8, ["delivery-status"])) : D("", !0),
735
- t.invoice.reminders.length > 0 ? (r(), v(Mn, {
736
- key: 3,
737
- reminders: t.invoice.reminders
738
- }, null, 8, ["reminders"])) : D("", !0)
739
- ]),
740
- _: 1
741
- })
742
- ]),
743
- _: 1
744
- }, 8, ["fallback-title", "is-disabled", "sequence", "status-color", "status-label", "icon", "subject-field", "subject-placeholder"])
745
- ]),
746
- _: 1
747
- }, 8, ["form"]));
748
- }
749
- }), Wn = { class: "grid w-full grid-cols-1 gap-md lg:grid-cols-3" }, Jn = /* @__PURE__ */ x({
750
- __name: "InvoiceDetailLinkedCreditNotesSection",
751
- props: {
752
- invoice: {}
753
- },
754
- setup(i) {
755
- const n = i, t = h(), l = X(), a = c(() => n.invoice.creditNotes.map((d) => {
756
- const f = new Be(d.status);
757
- return {
758
- uuid: d.uuid,
759
- title: d.sequence === null ? t.t("wise_invoicing.invoice.detail.credit_notes.untitled") : t.t("wise_invoicing.invoice.detail.credit_notes.card_title", {
760
- sequence: d.sequence
761
- }),
762
- amountLabel: l.formatMonetary(m(d)),
763
- statusColor: f.color,
764
- statusLabel: t.t(f.translationKey)
765
- };
766
- }));
767
- function m(d) {
768
- return {
769
- ...d.grossAmount,
770
- amount: d.grossAmount.amount > 0 ? -d.grossAmount.amount : d.grossAmount.amount
771
- };
772
- }
773
- return (d, f) => a.value.length > 0 ? (r(), v(e(ze), {
774
- key: 0,
775
- as: "section",
776
- gap: "md",
777
- class: "w-full"
778
- }, {
779
- default: s(() => [
780
- o(e(R), {
781
- text: e(t).t("wise_invoicing.invoice.detail.credit_notes.title"),
782
- as: "h2",
783
- class: "text-sm font-semibold text-primary"
784
- }, null, 8, ["text"]),
785
- N("div", Wn, [
786
- (r(!0), K(ae, null, Te(a.value, (p) => (r(), v(e(bn), {
787
- key: p.uuid,
788
- to: {
789
- name: "invoicing-credit-note-detail",
790
- params: { creditNoteUuid: p.uuid }
791
- },
792
- class: "min-w-0 rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
793
- }, {
794
- default: s(() => [
795
- o(e(Y), {
796
- align: "center",
797
- gap: "md",
798
- class: "min-w-0"
799
- }, {
800
- default: s(() => [
801
- o(e(R), {
802
- text: p.title,
803
- class: "min-w-0 flex-1 truncate text-xs font-semibold text-primary"
804
- }, null, 8, ["text"]),
805
- o(e(Q), {
806
- label: p.statusLabel,
807
- color: p.statusColor,
808
- size: "sm",
809
- variant: "translucent"
810
- }, null, 8, ["label", "color"]),
811
- o(e(Q), {
812
- label: p.amountLabel,
813
- variant: "translucent",
814
- size: "sm"
815
- }, null, 8, ["label"])
816
- ]),
817
- _: 2
818
- }, 1024)
819
- ]),
820
- _: 2
821
- }, 1032, ["to"]))), 128))
822
- ])
823
- ]),
824
- _: 1
825
- })) : D("", !0);
826
- }
827
- }), Ze = I.object({
828
- deliveredOn: ve.nullable(),
829
- dueOn: ve,
830
- issuedOn: ve,
831
- externalRemarks: I.string().nullable(),
832
- poNumber: I.string().nullable(),
833
- preparedBy: I.object({
834
- uuid: I.uuid(),
835
- name: I.string()
836
- }),
837
- subject: I.string().nullable()
838
- }).superRefine((i, n) => {
839
- Temporal.PlainDate.compare(i.dueOn, i.issuedOn) < 0 && n.addIssue({
840
- code: "custom",
841
- message: Ci.global.t("invoicing.invoice.validation.due_date_after_issue_date"),
842
- path: [
843
- "dueOn"
844
- ]
845
- });
846
- }), Yn = /* @__PURE__ */ x({
847
- __name: "InvoiceDetailRemarksSection",
848
- props: {
849
- invoice: {}
850
- },
851
- setup(i) {
852
- const n = i, t = h(), l = O(), a = ke(), m = Z({
853
- initialState: c(() => ye.toForm(n.invoice)),
854
- schema: Ze,
855
- onSubmit: async (p) => {
856
- const _ = await a.execute({
857
- body: p,
858
- params: {
859
- invoiceUuid: n.invoice.uuid
860
- }
861
- });
862
- _.isErr() && l.apiError(_.error);
863
- }
864
- }), d = m.register("externalRemarks"), f = c(() => !G.isEditable(n.invoice.status));
865
- return Ne({
866
- form: m
867
- }), (p, _) => (r(), v(e(Ve), {
868
- form: e(m),
869
- "prompt-on-unsaved-changes": !1
870
- }, {
871
- default: s(() => [
872
- o(an, {
873
- "is-disabled": f.value,
874
- placeholder: e(t).t("wise_invoicing.invoice.detail.remarks.placeholder"),
875
- "remarks-field": e(d),
876
- title: e(t).t("wise_invoicing.invoice.detail.remarks.title")
877
- }, null, 8, ["is-disabled", "placeholder", "remarks-field", "title"])
878
- ]),
879
- _: 1
880
- }, 8, ["form"]));
881
- }
882
- });
883
- function Xn(i) {
884
- return yn("invoiceActivityLogIndex", {
885
- params: {
886
- invoiceUuid: i
887
- },
888
- queryFn: (n) => k.getActivityLogs(i.value, {
889
- pagination: n
890
- })
891
- });
892
- }
893
- const et = /* @__PURE__ */ x({
894
- __name: "InvoiceDetailSidebarActivityTab",
895
- props: {
896
- invoice: {}
897
- },
898
- setup(i) {
899
- const n = i, t = h(), {
900
- hasNextPage: l,
901
- isFetchingNextPage: a,
902
- isLoading: m,
903
- fetchNextPage: d,
904
- result: f
905
- } = Xn(c(() => n.invoice.uuid)), p = c(() => f.value.unwrapOr({
906
- data: [],
907
- meta: {
908
- next: null
909
- }
910
- }).data);
911
- return (_, g) => (r(), v(sn, {
912
- "current-billing-document": {
913
- role: e(Si).INVOICE,
914
- uuid: n.invoice.uuid
915
- },
916
- "empty-message": e(t).t("wise_invoicing.invoice.detail.sidebar.activity_empty"),
917
- entries: p.value,
918
- "fetch-next-page": e(d),
919
- "has-next-page": e(l),
920
- "is-fetching-next-page": e(a),
921
- "is-loading": e(m)
922
- }, null, 8, ["current-billing-document", "empty-message", "entries", "fetch-next-page", "has-next-page", "is-fetching-next-page", "is-loading"]));
923
- }
924
- });
925
- function it(i) {
926
- return Ge("invoiceCustomerDetail", {
927
- params: {
928
- customerUuid: i
929
- },
930
- queryFn: () => Ai.getByUuid(i.value)
931
- });
932
- }
933
- const nt = /* @__PURE__ */ x({
934
- __name: "InvoiceUpdateDialog",
935
- props: {
936
- invoice: {}
937
- },
938
- emits: ["close"],
939
- setup(i, { emit: n }) {
940
- const t = i, l = n, a = h(), m = O(), d = ke(), f = wn(), p = be(), _ = c(() => t.invoice.customer.uuid), g = it(_), b = c(() => {
941
- const y = g.result.value;
942
- if (y.isOk())
943
- return y.getValue().defaultPaymentTermDays;
944
- const A = f.result.value;
945
- return A.isOk() ? A.getValue().defaultPaymentTermDays ?? 0 : 0;
946
- }), U = Z({
947
- initialState: c(() => ye.toForm(t.invoice)),
948
- schema: Ze,
949
- onSubmit: async (y) => {
950
- const A = await d.execute({
951
- body: y,
952
- params: {
953
- invoiceUuid: t.invoice.uuid
954
- }
955
- });
956
- if (A.isErr()) {
957
- m.apiError(A.error);
958
- return;
959
- }
960
- l("close");
961
- },
962
- onSubmitError: () => {
963
- m.unableToSave();
964
- }
965
- }), T = U.register("issuedOn"), F = U.register("dueOn"), C = U.register("deliveredOn"), S = U.register("poNumber"), w = U.register("subject");
966
- function L(y) {
967
- y !== null && F.setValue(y.add({
968
- days: b.value
969
- }));
970
- }
971
- return (y, A) => (r(), v(e(le), {
972
- form: e(U),
973
- size: "sm",
974
- onClose: A[0] || (A[0] = (W) => l("close"))
975
- }, {
976
- default: s(() => [
977
- o(e(ce), {
978
- icon: e(Ei),
979
- "is-description-visible": !1,
980
- title: e(a).t("wise_invoicing.invoice.detail.header.edit_info"),
981
- description: ""
982
- }, null, 8, ["icon", "title"]),
983
- o(e(Ie), null, {
984
- default: s(() => [
985
- o(e(xe), null, {
986
- default: s(() => [
987
- o(e(De), {
988
- lg: 2,
989
- sm: 1
990
- }, {
991
- default: s(() => [
992
- o(e(te), P(e(M)(e(T)), {
993
- label: e(a).t("wise_invoicing.invoice.detail.header.invoice_date"),
994
- "is-required": !0,
995
- "onUpdate:modelValue": L
996
- }), null, 16, ["label"]),
997
- o(e(te), P(e(M)(e(F)), {
998
- label: e(a).t("wise_invoicing.invoice.detail.header.due_date"),
999
- "is-required": !0,
1000
- "min-date": e(T).modelValue.value
1001
- }), null, 16, ["label", "min-date"]),
1002
- e(p).isDeliveryDateVisible.value ? (r(), v(e(te), P({ key: 0 }, e(M)(e(C)), {
1003
- label: e(a).t("wise_invoicing.invoice.detail.header.delivery_date")
1004
- }), null, 16, ["label"])) : D("", !0),
1005
- o(e(oe), P(e(M)(e(S)), {
1006
- label: e(a).t("wise_invoicing.invoice.detail.header.po_number")
1007
- }), null, 16, ["label"]),
1008
- o(e(oe), P(e(M)(e(w)), {
1009
- label: e(a).t("wise_invoicing.invoice.detail.header.subject"),
1010
- placeholder: e(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
1011
- }), null, 16, ["label", "placeholder"])
1012
- ]),
1013
- _: 1
1014
- })
1015
- ]),
1016
- _: 1
1017
- })
1018
- ]),
1019
- _: 1
1020
- }),
1021
- o(e(re), null, {
1022
- right: s(() => [
1023
- o(e(ue), { label: "cancel" }),
1024
- o(e(we), {
1025
- label: e(a).t("wise_invoicing.invoice.detail.header.edit_info")
1026
- }, null, 8, ["label"])
1027
- ]),
1028
- _: 1
1029
- })
1030
- ]),
1031
- _: 1
1032
- }, 8, ["form"]));
1033
- }
1034
- }), tt = /* @__PURE__ */ x({
1035
- __name: "InvoiceDetailSidebarInfoTab",
1036
- props: {
1037
- invoice: {}
1038
- },
1039
- setup(i) {
1040
- const n = i, t = h(), l = se(), a = be(), d = de().create(nt), f = c(() => G.isEditable(n.invoice.status)), p = c(() => {
1041
- if (!n.invoice.isOverdue)
1042
- return null;
1043
- const b = n.invoice.dueOn.toZonedDateTime(He.Now.timeZoneId()).toInstant();
1044
- return l.toRelativeTime(b);
1045
- });
1046
- async function _() {
1047
- await d.open({
1048
- invoice: n.invoice
1049
- });
1050
- }
1051
- function g(b) {
1052
- return b === null ? "-" : l.formatPlainDate(b);
1053
- }
1054
- return (b, U) => (r(), v(e(Vi), { class: "px-2xl py-xl" }, {
1055
- default: s(() => [
1056
- o(e(pe), {
1057
- label: e(t).t("wise_invoicing.invoice.detail.sidebar.general")
1058
- }, vi({
1059
- default: s(() => [
1060
- o(e(q), null, {
1061
- default: s(() => [
1062
- o(e(V), {
1063
- icon: e(Fi),
1064
- label: e(t).t("wise_invoicing.invoice.detail.header.invoice_id")
1065
- }, null, 8, ["icon", "label"]),
1066
- o(e(j), {
1067
- text: n.invoice.sequence ?? "-"
1068
- }, null, 8, ["text"])
1069
- ]),
1070
- _: 1
1071
- }),
1072
- o(e(q), null, {
1073
- default: s(() => [
1074
- o(e(V), {
1075
- icon: e(Ti),
1076
- label: e(t).t("wise_invoicing.invoice.detail.header.po_number")
1077
- }, null, 8, ["icon", "label"]),
1078
- o(e(j), {
1079
- text: n.invoice.poNumber ?? "-"
1080
- }, null, 8, ["text"])
1081
- ]),
1082
- _: 1
1083
- }),
1084
- o(e(q), null, {
1085
- default: s(() => [
1086
- o(e(V), {
1087
- icon: e(Pi),
1088
- label: e(t).t("wise_invoicing.invoice.detail.header.issuer")
1089
- }, null, 8, ["icon", "label"]),
1090
- o(e(j), {
1091
- text: n.invoice.issuer.name ?? "-"
1092
- }, null, 8, ["text"])
1093
- ]),
1094
- _: 1
1095
- }),
1096
- o(e(q), null, {
1097
- default: s(() => [
1098
- o(e(V), {
1099
- icon: e(qe),
1100
- label: e(t).t("wise_invoicing.invoice.detail.header.invoice_date")
1101
- }, null, 8, ["icon", "label"]),
1102
- o(e(j), {
1103
- text: g(n.invoice.issueOn)
1104
- }, null, 8, ["text"])
1105
- ]),
1106
- _: 1
1107
- }),
1108
- o(e(q), null, {
1109
- default: s(() => [
1110
- o(e(V), {
1111
- icon: e($e),
1112
- label: e(t).t("wise_invoicing.invoice.detail.header.due_date"),
1113
- variant: n.invoice.isOverdue ? "error" : "default"
1114
- }, null, 8, ["icon", "label", "variant"]),
1115
- o(e(Y), { gap: "xs" }, {
1116
- default: s(() => [
1117
- o(e(j), {
1118
- text: g(n.invoice.dueOn),
1119
- variant: n.invoice.isOverdue ? "error" : "default"
1120
- }, null, 8, ["text", "variant"]),
1121
- p.value !== null ? (r(), v(e(Q), {
1122
- key: 0,
1123
- label: p.value,
1124
- color: "error",
1125
- size: "sm",
1126
- variant: "translucent"
1127
- }, null, 8, ["label"])) : D("", !0)
1128
- ]),
1129
- _: 1
1130
- })
1131
- ]),
1132
- _: 1
1133
- }),
1134
- e(a).isDeliveryDateVisible.value ? (r(), v(e(q), { key: 0 }, {
1135
- default: s(() => [
1136
- o(e(V), {
1137
- icon: e(_e),
1138
- label: e(t).t("wise_invoicing.invoice.detail.header.delivery_date")
1139
- }, null, 8, ["icon", "label"]),
1140
- o(e(j), {
1141
- text: g(n.invoice.deliveredOn)
1142
- }, null, 8, ["text"])
1143
- ]),
1144
- _: 1
1145
- })) : D("", !0)
1146
- ]),
1147
- _: 2
1148
- }, [
1149
- f.value ? {
1150
- name: "actions",
1151
- fn: s(() => [
1152
- o(e(je), {
1153
- icon: e(Mi),
1154
- label: e(t).t("wise_invoicing.invoice.detail.header.edit_info"),
1155
- variant: "tertiary",
1156
- onClick: _
1157
- }, null, 8, ["icon", "label"])
1158
- ]),
1159
- key: "0"
1160
- } : void 0
1161
- ]), 1032, ["label"]),
1162
- o(ln, {
1163
- "original-invoice": n.invoice.originalInvoice
1164
- }, null, 8, ["original-invoice"]),
1165
- o(e(Ee)),
1166
- o(e(pe), {
1167
- label: e(t).t("wise_invoicing.invoice.detail.header.bill_to"),
1168
- "collapse-options": {
1169
- isCollapsible: !0,
1170
- isOpenByDefault: !0,
1171
- badge: {
1172
- label: n.invoice.customer.name ?? "-"
1173
- }
1174
- }
1175
- }, {
1176
- default: s(() => [
1177
- o(e(q), { orientation: "vertical" }, {
1178
- default: s(() => [
1179
- o(e(R), {
1180
- text: n.invoice.customer.name ?? "-",
1181
- class: "text-xs font-medium"
1182
- }, null, 8, ["text"]),
1183
- n.invoice.customer.address ? (r(), K(ae, { key: 0 }, [
1184
- o(e(R), {
1185
- text: e(me).formatLines(n.invoice.customer.address)[0] ?? "",
1186
- class: "text-xs"
1187
- }, null, 8, ["text"]),
1188
- n.invoice.customer.address ? (r(), v(e(R), {
1189
- key: 0,
1190
- text: e(me).formatLines(n.invoice.customer.address)[1] ?? "",
1191
- class: "text-xs"
1192
- }, null, 8, ["text"])) : D("", !0)
1193
- ], 64)) : D("", !0)
1194
- ]),
1195
- _: 1
1196
- })
1197
- ]),
1198
- _: 1
1199
- }, 8, ["label", "collapse-options"]),
1200
- o(e(Ee)),
1201
- o(e(pe), {
1202
- label: e(t).t("wise_invoicing.invoice.detail.header.bill_from"),
1203
- "collapse-options": {
1204
- isCollapsible: !0,
1205
- isOpenByDefault: !1,
1206
- badge: {
1207
- label: n.invoice.issuer.email ?? "-"
1208
- }
1209
- }
1210
- }, {
1211
- default: s(() => [
1212
- o(e(q), { orientation: "vertical" }, {
1213
- default: s(() => [
1214
- o(e(V), {
1215
- label: n.invoice.issuer.email ?? "-"
1216
- }, null, 8, ["label"]),
1217
- n.invoice.issuer.address ? (r(), v(e(j), {
1218
- key: 0,
1219
- text: e(me).format(n.invoice.issuer.address)
1220
- }, null, 8, ["text"])) : D("", !0)
1221
- ]),
1222
- _: 1
1223
- })
1224
- ]),
1225
- _: 1
1226
- }, 8, ["label", "collapse-options"])
1227
- ]),
1228
- _: 1
1229
- }));
1230
- }
1231
- }), ot = /* @__PURE__ */ x({
1232
- __name: "InvoiceDetailSidebar",
1233
- props: {
1234
- invoice: {}
1235
- },
1236
- setup(i) {
1237
- const n = i, t = h(), l = se(), a = c(() => t.t("wise_invoicing.invoice.detail.sidebar.updated_on", {
1238
- date: l.toDateTime(n.invoice.updatedAt)
1239
- }));
1240
- return (m, d) => (r(), v(cn, {
1241
- "billing-document": n.invoice,
1242
- "updated-footer": a.value
1243
- }, {
1244
- activity: s(() => [
1245
- o(et, {
1246
- invoice: n.invoice
1247
- }, null, 8, ["invoice"])
1248
- ]),
1249
- info: s(() => [
1250
- o(tt, {
1251
- invoice: n.invoice
1252
- }, null, 8, ["invoice"])
1253
- ]),
1254
- _: 1
1255
- }, 8, ["billing-document", "updated-footer"]));
1256
- }
1257
- });
1258
- function at() {
1259
- return E({
1260
- queryFn: (i) => k.deletePayment(
1261
- i.params.invoiceUuid,
1262
- i.params.paymentUuid
1263
- ),
1264
- queryKeysToInvalidate: {
1265
- invoiceDetail: {
1266
- invoiceUuid: (i) => i.invoiceUuid
1267
- },
1268
- invoicePaymentIndex: {
1269
- invoiceUuid: (i) => i.invoiceUuid
1270
- }
1271
- }
1272
- });
1273
- }
1274
- function st(i) {
1275
- return Ge("invoicePaymentIndex", {
1276
- params: {
1277
- invoiceUuid: i
1278
- },
1279
- queryFn: () => k.getPayments(i.value)
1280
- });
1281
- }
1282
- const lt = /* @__PURE__ */ x({
1283
- __name: "InvoiceDetailPaymentActionsCell",
1284
- props: {
1285
- payment: {},
1286
- onDelete: { type: Function }
1287
- },
1288
- setup(i) {
1289
- const n = i, t = h();
1290
- return (l, a) => (r(), v(e(he), null, {
1291
- default: s(() => [
1292
- o(e(ji), null, {
1293
- default: s(() => [
1294
- n.payment.source === e(Re).MANUAL ? (r(), v(e(je), {
1295
- key: 0,
1296
- label: e(t).t("wise_invoicing.invoice.detail.payments.delete.title"),
1297
- icon: e(Tn),
1298
- size: "sm",
1299
- variant: "tertiary",
1300
- onClick: a[0] || (a[0] = (m) => n.onDelete(n.payment))
1301
- }, null, 8, ["label", "icon"])) : D("", !0)
1302
- ]),
1303
- _: 1
1304
- })
1305
- ]),
1306
- _: 1
1307
- }));
1308
- }
1309
- }), ct = /* @__PURE__ */ x({
1310
- __name: "InvoiceDetailPaymentManualCell",
1311
- props: {
1312
- payment: {}
1313
- },
1314
- setup(i) {
1315
- const n = i;
1316
- return (t, l) => (r(), v(e(he), null, {
1317
- default: s(() => [
1318
- n.payment.source === e(Re).MANUAL ? (r(), v(e(Li), {
1319
- key: 0,
1320
- class: "size-4 text-brand-600"
1321
- })) : D("", !0)
1322
- ]),
1323
- _: 1
1324
- }));
1325
- }
1326
- }), ne = /* @__PURE__ */ x({
1327
- __name: "InvoiceDetailPaymentsTableTextCell",
1328
- props: {
1329
- text: {}
1330
- },
1331
- setup(i) {
1332
- const n = i;
1333
- return (t, l) => (r(), v(e(he), null, {
1334
- default: s(() => [
1335
- o(e(R), {
1336
- text: n.text ?? "-",
1337
- class: "text-sm/5 text-primary"
1338
- }, null, 8, ["text"])
1339
- ]),
1340
- _: 1
1341
- }));
1342
- }
1343
- });
1344
- function rt(i) {
1345
- const n = h(), t = se(), l = X();
1346
- return c(() => Bi()([
1347
- {
1348
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.date"),
1349
- key: "date",
1350
- size: {
1351
- max: "12rem",
1352
- min: "12rem"
1353
- },
1354
- component: (a) => H(ne, {
1355
- text: t.formatPlainDate(a.date)
1356
- })
1357
- },
1358
- {
1359
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.reference"),
1360
- key: "reference",
1361
- size: {
1362
- max: "14rem",
1363
- min: "12rem"
1364
- },
1365
- component: (a) => H(ne, {
1366
- text: a.paymentReference ?? "—"
1367
- })
1368
- },
1369
- {
1370
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.remark"),
1371
- key: "remark",
1372
- size: {
1373
- max: "1fr",
1374
- min: "12rem"
1375
- },
1376
- component: (a) => H(ne, {
1377
- text: a.remarks ?? "—"
1378
- })
1379
- },
1380
- {
1381
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.manual"),
1382
- key: "manual",
1383
- size: {
1384
- max: "6rem",
1385
- min: "6rem"
1386
- },
1387
- component: (a) => H(ct, {
1388
- payment: a
1389
- })
1390
- },
1391
- {
1392
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.amount"),
1393
- key: "amount",
1394
- size: {
1395
- max: "10rem",
1396
- min: "10rem"
1397
- },
1398
- component: (a) => H(ne, {
1399
- text: l.formatMonetary(a.amount)
1400
- })
1401
- },
1402
- {
1403
- headerLabel: "",
1404
- key: "actions",
1405
- size: {
1406
- max: "5rem",
1407
- min: "5rem"
1408
- },
1409
- component: (a) => H(lt, {
1410
- payment: a,
1411
- onDelete: i.onDelete
1412
- })
1413
- }
1414
- ]));
1415
- }
1416
- function ut() {
1417
- return E({
1418
- queryFn: (i) => k.createPayment(
1419
- i.params.invoiceUuid,
1420
- i.body
1421
- ),
1422
- queryKeysToInvalidate: {
1423
- invoiceDetail: {
1424
- invoiceUuid: (i) => i.invoiceUuid
1425
- },
1426
- invoicePaymentIndex: {
1427
- invoiceUuid: (i) => i.invoiceUuid
1428
- }
1429
- }
1430
- });
1431
- }
1432
- const dt = I.object({
1433
- amount: I.number().positive(),
1434
- currency: I.enum(Oe),
1435
- date: $i,
1436
- paymentReference: I.string().nullable(),
1437
- precision: I.number().int().nonnegative(),
1438
- remarks: I.string().nullable()
1439
- }), vt = { class: "pr-md text-xs text-secondary" }, mt = /* @__PURE__ */ x({
1440
- __name: "InvoicePaymentCreateDialog",
1441
- props: {
1442
- invoice: {}
1443
- },
1444
- emits: ["close"],
1445
- setup(i, { emit: n }) {
1446
- const t = i, l = n, a = h(), m = O(), d = X(), f = ut(), p = c(() => d.getSymbol(t.invoice.grossAmount.currency)), _ = Z({
1447
- initialState: {
1448
- amount: null,
1449
- currency: t.invoice.grossAmount.currency,
1450
- date: qi.getToday(),
1451
- paymentReference: null,
1452
- precision: t.invoice.grossAmount.precision,
1453
- remarks: null
1454
- },
1455
- schema: dt,
1456
- onSubmit: async (F) => {
1457
- const C = await f.execute({
1458
- body: F,
1459
- params: {
1460
- invoiceUuid: t.invoice.uuid
1461
- }
1462
- });
1463
- if (C.isErr()) {
1464
- m.apiError(C.error);
1465
- return;
1466
- }
1467
- m.show({
1468
- message: a.t("wise_invoicing.invoice.detail.payments.create.success")
1469
- }), l("close");
1470
- },
1471
- onSubmitError: () => {
1472
- m.unableToSave();
1473
- }
1474
- }), g = _.register("amount"), b = _.register("date"), U = _.register("paymentReference"), T = _.register("remarks");
1475
- return (F, C) => (r(), v(e(le), {
1476
- form: e(_),
1477
- size: "sm",
1478
- onClose: C[0] || (C[0] = (S) => l("close"))
1479
- }, {
1480
- default: s(() => [
1481
- o(e(ce), {
1482
- title: e(a).t("wise_invoicing.invoice.detail.payments.create.title"),
1483
- description: e(a).t("wise_invoicing.invoice.detail.payments.create.description"),
1484
- icon: e(hn),
1485
- "is-description-visible": !0
1486
- }, null, 8, ["title", "description", "icon"]),
1487
- o(e(Ie), null, {
1488
- default: s(() => [
1489
- o(e(xe), null, {
1490
- default: s(() => [
1491
- o(e(De), {
1492
- lg: 2,
1493
- sm: 1
1494
- }, {
1495
- default: s(() => [
1496
- o(e(fe), P(e(M)(e(g)), {
1497
- "is-required": !0,
1498
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.amount"),
1499
- min: 0.01,
1500
- step: 0.01
1501
- }), {
1502
- right: s(() => [
1503
- N("span", vt, Me(p.value.symbol), 1)
1504
- ]),
1505
- _: 1
1506
- }, 16, ["label"]),
1507
- o(e(te), P(e(M)(e(b)), {
1508
- "is-required": !0,
1509
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.date")
1510
- }), null, 16, ["label"]),
1511
- o(e(oe), P(e(M)(e(U)), {
1512
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.reference")
1513
- }), null, 16, ["label"]),
1514
- o(e(oe), P(e(M)(e(T)), {
1515
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.remarks")
1516
- }), null, 16, ["label"])
1517
- ]),
1518
- _: 1
1519
- })
1520
- ]),
1521
- _: 1
1522
- })
1523
- ]),
1524
- _: 1
1525
- }),
1526
- o(e(re), null, {
1527
- right: s(() => [
1528
- o(e(ue), { label: "cancel" }),
1529
- o(e(Ni), {
1530
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.submit")
1531
- }, null, 8, ["label"])
1532
- ]),
1533
- _: 1
1534
- })
1535
- ]),
1536
- _: 1
1537
- }, 8, ["form"]));
1538
- }
1539
- }), pt = /* @__PURE__ */ x({
1540
- __name: "InvoiceDetailPaymentsSection",
1541
- props: {
1542
- invoice: {}
1543
- },
1544
- setup(i) {
1545
- const n = i, t = h(), l = X(), a = c(() => n.invoice.uuid), m = c(() => n.invoice.balanceDueAmount === null ? null : l.formatMonetary(n.invoice.balanceDueAmount)), {
1546
- isLoading: d,
1547
- result: f
1548
- } = st(a), p = de(), _ = O(), g = p.create(mt), b = p.create(Ki), U = at(), T = c(() => f.value.match({
1549
- err: () => [],
1550
- loading: () => [],
1551
- ok: (y) => y
1552
- })), F = c(() => f.value.match({
1553
- err: (y) => y,
1554
- loading: () => null,
1555
- ok: () => null
1556
- })), C = c(() => !G.getMetadata(n.invoice.status).isTerminal);
1557
- function S() {
1558
- g.open({
1559
- invoice: n.invoice
1560
- });
1561
- }
1562
- function w(y) {
1563
- b.open({
1564
- title: t.t("wise_invoicing.invoice.detail.payments.delete.title"),
1565
- isDestructive: !0,
1566
- confirmLabel: t.t("wise_invoicing.invoice.detail.payments.delete.submit"),
1567
- description: t.t("wise_invoicing.invoice.detail.payments.delete.description"),
1568
- onConfirm: async () => {
1569
- const A = await U.execute({
1570
- params: {
1571
- invoiceUuid: n.invoice.uuid,
1572
- paymentUuid: y.uuid
1573
- }
1574
- });
1575
- if (A.isErr()) {
1576
- _.apiError(A.error);
1577
- return;
1578
- }
1579
- _.show({
1580
- message: t.t("wise_invoicing.invoice.detail.payments.delete.success")
1581
- }), b.close();
1582
- }
1583
- });
1584
- }
1585
- const L = rt({
1586
- onDelete: w
1587
- });
1588
- return (y, A) => (r(), v(Ke, null, {
1589
- default: s(() => [
1590
- o(e(Y), {
1591
- justify: "between",
1592
- class: "w-full gap-lg border-b border-secondary px-lg py-md"
1593
- }, {
1594
- default: s(() => [
1595
- o(e(Y), { gap: "sm" }, {
1596
- default: s(() => [
1597
- o(e(R), {
1598
- text: e(t).t("wise_invoicing.invoice.detail.payments.title"),
1599
- as: "h2",
1600
- class: "text-sm font-semibold text-primary"
1601
- }, null, 8, ["text"]),
1602
- m.value !== null ? (r(), v(e(Q), {
1603
- key: 0,
1604
- color: "gray",
1605
- size: "sm",
1606
- variant: "outline"
1607
- }, {
1608
- default: s(() => [
1609
- o(e(Fe), {
1610
- label: e(t).t("wise_invoicing.invoice.detail.payments.balance_due")
1611
- }, null, 8, ["label"]),
1612
- o(e(Gi)),
1613
- o(e(Fe), { label: m.value }, null, 8, ["label"])
1614
- ]),
1615
- _: 1
1616
- })) : D("", !0)
1617
- ]),
1618
- _: 1
1619
- }),
1620
- C.value ? (r(), v(e(Hi), {
1621
- key: 0,
1622
- label: e(t).t("wise_invoicing.invoice.detail.payments.add"),
1623
- "icon-left": e(Sn),
1624
- size: "sm",
1625
- onClick: S
1626
- }, null, 8, ["label", "icon-left"])) : D("", !0)
1627
- ]),
1628
- _: 1
1629
- }),
1630
- o(e(Qi), {
1631
- "active-filter-count": 0,
1632
- columns: e(L),
1633
- data: T.value,
1634
- error: F.value,
1635
- "get-key": (W) => W.uuid,
1636
- "has-active-search": !1,
1637
- "header-actions": [],
1638
- "is-fetching-next-page": !1,
1639
- "is-loading": e(d)
1640
- }, null, 8, ["columns", "data", "error", "get-key", "is-loading"])
1641
- ]),
1642
- _: 1
1643
- }));
1644
- }
1645
- });
1646
- function _t() {
1647
- return E({
1648
- queryFn: (i) => k.updateLines(
1649
- i.params.invoiceUuid,
1650
- i.body
1651
- ),
1652
- queryKeysToInvalidate: {
1653
- invoiceDetail: {
1654
- invoiceUuid: (i) => i.invoiceUuid
1655
- }
1656
- }
1657
- });
1658
- }
1659
- function ft() {
1660
- return E({
1661
- queryFn: (i) => k.applyDiscount(
1662
- i.params.invoiceUuid,
1663
- i.body
1664
- ),
1665
- queryKeysToInvalidate: {
1666
- invoiceDetail: {
1667
- invoiceUuid: (i) => i.invoiceUuid
1668
- }
1669
- }
1670
- });
1671
- }
1672
- const gt = I.object({
1673
- currency: I.enum(Oe),
1674
- precision: I.number().int().nonnegative(),
1675
- type: I.enum(B),
1676
- value: I.number()
1677
- }).refine((i) => i.type !== B.PERCENTAGE || i.value <= 100, {
1678
- path: [
1679
- "value"
1680
- ]
1681
- }), yt = { class: "pr-md text-xs text-secondary" }, bt = /* @__PURE__ */ x({
1682
- __name: "InvoiceApplyDiscountDialog",
1683
- props: {
1684
- invoice: {}
1685
- },
1686
- emits: ["close"],
1687
- setup(i, { emit: n }) {
1688
- const t = i, l = n, a = h(), m = O(), d = X(), f = ft(), p = c(() => Zi([
1689
- B.PERCENTAGE,
1690
- B.AMOUNT
1691
- ])), _ = Z({
1692
- initialState: {
1693
- currency: t.invoice.grossAmount.currency,
1694
- precision: t.invoice.grossAmount.precision,
1695
- type: B.PERCENTAGE,
1696
- value: null
1697
- },
1698
- schema: gt,
1699
- onSubmit: async (S) => {
1700
- const w = await f.execute({
1701
- body: S,
1702
- params: {
1703
- invoiceUuid: t.invoice.uuid
1704
- }
1705
- });
1706
- if (w.isErr()) {
1707
- m.apiError(w.error);
1708
- return;
1709
- }
1710
- l("close");
1711
- },
1712
- onSubmitError: () => {
1713
- m.unableToSave();
1714
- }
1715
- }), g = _.register("value"), b = _.register("type"), U = c(() => b.modelValue.value === B.PERCENTAGE), T = c(() => b.modelValue.value === B.AMOUNT), F = c(() => d.getSymbol(t.invoice.grossAmount.currency));
1716
- function C(S) {
1717
- return a.t(`wise_invoicing.invoice.detail.global_discount.type.${S}`);
1718
- }
1719
- return (S, w) => (r(), v(e(le), {
1720
- form: e(_),
1721
- size: "sm",
1722
- onClose: w[0] || (w[0] = (L) => l("close"))
1723
- }, {
1724
- default: s(() => [
1725
- o(e(ce), {
1726
- title: e(a).t("wise_invoicing.invoice.detail.line_items.global_discount"),
1727
- description: e(a).t("wise_invoicing.invoice.detail.global_discount.description"),
1728
- icon: e(Ri),
1729
- "is-description-visible": !0
1730
- }, null, 8, ["title", "description", "icon"]),
1731
- o(e(Ie), null, {
1732
- default: s(() => [
1733
- o(e(xe), null, {
1734
- default: s(() => [
1735
- o(e(De), {
1736
- lg: 2,
1737
- sm: 1
1738
- }, {
1739
- default: s(() => [
1740
- o(e(Wi), P(e(M)(e(b)), {
1741
- "display-fn": C,
1742
- "is-required": !0,
1743
- items: p.value,
1744
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.type.label")
1745
- }), null, 16, ["items", "label"]),
1746
- U.value ? (r(), v(e(fe), P({ key: 0 }, e(M)(e(g)), {
1747
- hint: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.hint"),
1748
- "is-required": !0,
1749
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1750
- max: 100,
1751
- min: 0,
1752
- step: 0.01
1753
- }), {
1754
- right: s(() => [...w[1] || (w[1] = [
1755
- N("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)
1756
- ])]),
1757
- _: 1
1758
- }, 16, ["hint", "label"])) : D("", !0),
1759
- T.value ? (r(), v(e(fe), P({ key: 1 }, e(M)(e(g)), {
1760
- "is-required": !0,
1761
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1762
- min: 0.01,
1763
- step: 0.01
1764
- }), {
1765
- right: s(() => [
1766
- N("span", yt, Me(F.value.symbol), 1)
1767
- ]),
1768
- _: 1
1769
- }, 16, ["label"])) : D("", !0)
1770
- ]),
1771
- _: 1
1772
- })
1773
- ]),
1774
- _: 1
1775
- })
1776
- ]),
1777
- _: 1
1778
- }),
1779
- o(e(re), null, {
1780
- right: s(() => [
1781
- o(e(ue), { label: "cancel" }),
1782
- o(e(we), {
1783
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.confirm")
1784
- }, null, 8, ["label"])
1785
- ]),
1786
- _: 1
1787
- })
1788
- ]),
1789
- _: 1
1790
- }, 8, ["form"]));
1791
- }
1792
- }), wt = /* @__PURE__ */ x({
1793
- __name: "InvoiceLineItemsTableSection",
1794
- props: {
1795
- invoice: {}
1796
- },
1797
- setup(i) {
1798
- const n = i, t = c(() => n.invoice), l = be(), a = _t(), m = c(() => G.isEditable(n.invoice.status)), d = rn({
1799
- isSaving: c(() => a.isLoading.value),
1800
- billingDocument: () => t.value,
1801
- canEdit: m,
1802
- updateLines: (g) => a.execute({
1803
- body: g,
1804
- params: {
1805
- invoiceUuid: n.invoice.uuid
1806
- }
1807
- })
1808
- }), p = de().create(bt);
1809
- function _() {
1810
- p.open({
1811
- invoice: n.invoice
1812
- });
1813
- }
1814
- return un(d), (g, b) => (r(), v(Ke, null, {
1815
- default: s(() => [
1816
- o(dn, {
1817
- "show-apply-discount": e(l).isGlobalDiscountEnabled.value,
1818
- onApplyDiscount: _
1819
- }, null, 8, ["show-apply-discount"]),
1820
- o(vn),
1821
- o(mn, {
1822
- "billing-document": n.invoice
1823
- }, null, 8, ["billing-document"]),
1824
- o(pn)
1825
- ]),
1826
- _: 1
1827
- }));
1828
- }
1829
- }), It = /* @__PURE__ */ x({
1830
- __name: "InvoiceDetailView",
1831
- props: {
1832
- invoice: {}
1833
- },
1834
- setup(i) {
1835
- const n = i, t = h(), l = Pe(!1), a = c(() => [
1836
- {
1837
- label: t.t("wise_invoicing.invoice.overview.title"),
1838
- to: {
1839
- name: "invoicing-invoice-overview"
1840
- }
1841
- },
1842
- {
1843
- label: n.invoice.sequence ?? n.invoice.subject ?? t.t("wise_invoicing.invoice.detail.fallback_title")
1844
- }
1845
- ]);
1846
- return (m, d) => (r(), v(_n, {
1847
- "billing-document": n.invoice,
1848
- breadcrumbs: a.value,
1849
- title: e(t).t("wise_invoicing.invoice.detail.fallback_title")
1850
- }, {
1851
- header: s(() => [
1852
- o(Zn, {
1853
- invoice: n.invoice,
1854
- "is-pdf-view-active": l.value,
1855
- class: "w-full",
1856
- onTogglePdfView: d[0] || (d[0] = (f) => l.value = !l.value)
1857
- }, null, 8, ["invoice", "is-pdf-view-active"])
1858
- ]),
1859
- default: s(() => [
1860
- l.value ? (r(), v(fn, {
1861
- key: 0,
1862
- "billing-document": n.invoice,
1863
- class: "w-full"
1864
- }, null, 8, ["billing-document"])) : (r(), K(ae, { key: 1 }, [
1865
- o(wt, {
1866
- invoice: n.invoice
1867
- }, null, 8, ["invoice"]),
1868
- e(G).isEditable(n.invoice.status) ? D("", !0) : (r(), v(pt, {
1869
- key: 0,
1870
- invoice: n.invoice,
1871
- class: "w-full"
1872
- }, null, 8, ["invoice"])),
1873
- o(Jn, {
1874
- invoice: n.invoice,
1875
- class: "w-full"
1876
- }, null, 8, ["invoice"]),
1877
- o(Yn, {
1878
- invoice: n.invoice,
1879
- class: "w-full"
1880
- }, null, 8, ["invoice"])
1881
- ], 64))
1882
- ]),
1883
- sidebar: s(() => [
1884
- o(ot, {
1885
- invoice: n.invoice
1886
- }, null, 8, ["invoice"])
1887
- ]),
1888
- _: 1
1889
- }, 8, ["billing-document", "breadcrumbs", "title"]));
1890
- }
1891
- }), Lt = /* @__PURE__ */ x({
1892
- __name: "InvoiceDetailViewDataProvider",
1893
- props: {
1894
- invoiceUuid: {}
1895
- },
1896
- setup(i) {
1897
- const n = i, t = h(), l = c(() => [
1898
- {
1899
- label: t.t("wise_invoicing.invoice.overview.title"),
1900
- to: {
1901
- name: "invoicing-invoice-overview"
1902
- }
1903
- }
1904
- ]), a = mi(c(() => n.invoiceUuid));
1905
- return (m, d) => (r(), v(gn, {
1906
- query: e(a),
1907
- "loading-breadcrumbs": l.value
1908
- }, {
1909
- default: s(({ billingDocument: f }) => [
1910
- o(It, { invoice: f }, null, 8, ["invoice"])
1911
- ]),
1912
- _: 1
1913
- }, 8, ["query", "loading-breadcrumbs"]));
1914
- }
1915
- });
1916
- export {
1917
- Lt as default
1918
- };