@globisnv/cypress-core 0.0.2 → 0.0.3

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 (297) hide show
  1. package/README.md +12 -7
  2. package/dist/apiMethods/IGS_request.d.ts +98 -0
  3. package/dist/apiMethods/IGS_request.js +161 -0
  4. package/dist/apiMethods/IGS_response.d.ts +47 -0
  5. package/dist/apiMethods/IGS_response.js +1 -0
  6. package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
  7. package/dist/blueprints/GLO_addressPopup.js +96 -0
  8. package/dist/blueprints/GLO_article.d.ts +45 -0
  9. package/dist/blueprints/GLO_article.js +110 -0
  10. package/dist/blueprints/GLO_articleLot.d.ts +12 -0
  11. package/dist/blueprints/GLO_articleLot.js +23 -0
  12. package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
  13. package/dist/blueprints/GLO_articleVersion.js +4 -0
  14. package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
  15. package/dist/blueprints/GLO_attachmentPopup.js +10 -0
  16. package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
  17. package/dist/blueprints/GLO_bankAccount.js +7 -0
  18. package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
  19. package/dist/blueprints/GLO_billingProcess.js +4 -0
  20. package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
  21. package/dist/blueprints/GLO_billingProposal.js +9 -0
  22. package/dist/blueprints/GLO_cancel.d.ts +7 -0
  23. package/dist/blueprints/GLO_cancel.js +7 -0
  24. package/dist/blueprints/GLO_commandlist.d.ts +10 -0
  25. package/dist/blueprints/GLO_commandlist.js +10 -0
  26. package/dist/blueprints/GLO_complaint.d.ts +27 -0
  27. package/dist/blueprints/GLO_complaint.js +51 -0
  28. package/dist/blueprints/GLO_composition.d.ts +14 -0
  29. package/dist/blueprints/GLO_composition.js +20 -0
  30. package/dist/blueprints/GLO_consignment.d.ts +61 -0
  31. package/dist/blueprints/GLO_consignment.js +104 -0
  32. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
  33. package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
  34. package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
  35. package/dist/blueprints/GLO_consignmentGoods.js +62 -0
  36. package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
  37. package/dist/blueprints/GLO_consignmentHandling.js +4 -0
  38. package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
  39. package/dist/blueprints/GLO_consignmentOrder.js +37 -0
  40. package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
  41. package/dist/blueprints/GLO_consignmentPart.js +13 -0
  42. package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
  43. package/dist/blueprints/GLO_consignmentParts.js +12 -0
  44. package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
  45. package/dist/blueprints/GLO_consignmentPrice.js +19 -0
  46. package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
  47. package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
  48. package/dist/blueprints/GLO_contacts.d.ts +10 -0
  49. package/dist/blueprints/GLO_contacts.js +14 -0
  50. package/dist/blueprints/GLO_container.d.ts +6 -0
  51. package/dist/blueprints/GLO_container.js +4 -0
  52. package/dist/blueprints/GLO_contract.d.ts +22 -0
  53. package/dist/blueprints/GLO_contract.js +30 -0
  54. package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
  55. package/dist/blueprints/GLO_contractArticle.js +35 -0
  56. package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
  57. package/dist/blueprints/GLO_contractArticleCost.js +8 -0
  58. package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
  59. package/dist/blueprints/GLO_countryVatZone.js +9 -0
  60. package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
  61. package/dist/blueprints/GLO_currencyDeviation.js +15 -0
  62. package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
  63. package/dist/blueprints/GLO_customerArticle.js +15 -0
  64. package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
  65. package/dist/blueprints/GLO_customsFlow.js +19 -0
  66. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
  67. package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
  68. package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
  69. package/dist/blueprints/GLO_customsUnion.js +4 -0
  70. package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
  71. package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
  72. package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
  73. package/dist/blueprints/GLO_departureSchedule.js +57 -0
  74. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
  75. package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
  76. package/dist/blueprints/GLO_document.d.ts +7 -0
  77. package/dist/blueprints/GLO_document.js +7 -0
  78. package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
  79. package/dist/blueprints/GLO_documentAttachment.js +4 -0
  80. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
  81. package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
  82. package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
  83. package/dist/blueprints/GLO_documentGroup.js +4 -0
  84. package/dist/blueprints/GLO_documentType.d.ts +12 -0
  85. package/dist/blueprints/GLO_documentType.js +11 -0
  86. package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
  87. package/dist/blueprints/GLO_enterCountry.js +47 -0
  88. package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
  89. package/dist/blueprints/GLO_enterDiscount.js +9 -0
  90. package/dist/blueprints/GLO_equipment.d.ts +34 -0
  91. package/dist/blueprints/GLO_equipment.js +55 -0
  92. package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
  93. package/dist/blueprints/GLO_equipmentCategory.js +14 -0
  94. package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
  95. package/dist/blueprints/GLO_equipmentEntity.js +5 -0
  96. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
  97. package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
  98. package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
  99. package/dist/blueprints/GLO_equipmentType.js +20 -0
  100. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
  101. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
  102. package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
  103. package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
  104. package/dist/blueprints/GLO_formula.d.ts +9 -0
  105. package/dist/blueprints/GLO_formula.js +9 -0
  106. package/dist/blueprints/GLO_gang.d.ts +12 -0
  107. package/dist/blueprints/GLO_gang.js +12 -0
  108. package/dist/blueprints/GLO_holiday.d.ts +7 -0
  109. package/dist/blueprints/GLO_holiday.js +8 -0
  110. package/dist/blueprints/GLO_journey.d.ts +18 -0
  111. package/dist/blueprints/GLO_journey.js +24 -0
  112. package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
  113. package/dist/blueprints/GLO_journeyStop.js +44 -0
  114. package/dist/blueprints/GLO_layout.d.ts +6 -0
  115. package/dist/blueprints/GLO_layout.js +6 -0
  116. package/dist/blueprints/GLO_logging.d.ts +9 -0
  117. package/dist/blueprints/GLO_logging.js +12 -0
  118. package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
  119. package/dist/blueprints/GLO_logisticConnection.js +11 -0
  120. package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
  121. package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
  122. package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
  123. package/dist/blueprints/GLO_logisticContract.js +80 -0
  124. package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
  125. package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
  126. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
  127. package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
  128. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
  129. package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
  130. package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
  131. package/dist/blueprints/GLO_logisticContractItem.js +40 -0
  132. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
  133. package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
  134. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
  135. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
  136. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
  137. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
  138. package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
  139. package/dist/blueprints/GLO_logisticContractReference.js +4 -0
  140. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
  141. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
  142. package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
  143. package/dist/blueprints/GLO_logisticLocation.js +7 -0
  144. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
  145. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
  146. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
  147. package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
  148. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
  149. package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
  150. package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
  151. package/dist/blueprints/GLO_operationalDefault.js +25 -0
  152. package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
  153. package/dist/blueprints/GLO_outputDetailMail.js +13 -0
  154. package/dist/blueprints/GLO_postalcode.d.ts +6 -0
  155. package/dist/blueprints/GLO_postalcode.js +6 -0
  156. package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
  157. package/dist/blueprints/GLO_priceDependency.js +4 -0
  158. package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
  159. package/dist/blueprints/GLO_priceEntry.js +17 -0
  160. package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
  161. package/dist/blueprints/GLO_priceRequest.js +20 -0
  162. package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
  163. package/dist/blueprints/GLO_priceRequestLine.js +17 -0
  164. package/dist/blueprints/GLO_principal.d.ts +9 -0
  165. package/dist/blueprints/GLO_principal.js +13 -0
  166. package/dist/blueprints/GLO_printPopup.d.ts +10 -0
  167. package/dist/blueprints/GLO_printPopup.js +62 -0
  168. package/dist/blueprints/GLO_production.d.ts +9 -0
  169. package/dist/blueprints/GLO_production.js +9 -0
  170. package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
  171. package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
  172. package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
  173. package/dist/blueprints/GLO_productionMaterial.js +5 -0
  174. package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
  175. package/dist/blueprints/GLO_purchaseCosts.js +9 -0
  176. package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
  177. package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
  178. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
  179. package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
  180. package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
  181. package/dist/blueprints/GLO_purchaseOrder.js +25 -0
  182. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
  183. package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
  184. package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
  185. package/dist/blueprints/GLO_purchasePrices.js +10 -0
  186. package/dist/blueprints/GLO_quotation.d.ts +12 -0
  187. package/dist/blueprints/GLO_quotation.js +32 -0
  188. package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
  189. package/dist/blueprints/GLO_quotationLine.js +28 -0
  190. package/dist/blueprints/GLO_receipt.d.ts +13 -0
  191. package/dist/blueprints/GLO_receipt.js +17 -0
  192. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
  193. package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
  194. package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
  195. package/dist/blueprints/GLO_receiptLine.js +28 -0
  196. package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
  197. package/dist/blueprints/GLO_relationAddress.js +58 -0
  198. package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
  199. package/dist/blueprints/GLO_relationBankAccount.js +9 -0
  200. package/dist/blueprints/GLO_relationContact.d.ts +23 -0
  201. package/dist/blueprints/GLO_relationContact.js +45 -0
  202. package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
  203. package/dist/blueprints/GLO_relationGroupType.js +6 -0
  204. package/dist/blueprints/GLO_relations.d.ts +67 -0
  205. package/dist/blueprints/GLO_relations.js +186 -0
  206. package/dist/blueprints/GLO_relationtype.d.ts +15 -0
  207. package/dist/blueprints/GLO_relationtype.js +31 -0
  208. package/dist/blueprints/GLO_remarkType.d.ts +10 -0
  209. package/dist/blueprints/GLO_remarkType.js +9 -0
  210. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
  211. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
  212. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
  213. package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
  214. package/dist/blueprints/GLO_representative.d.ts +7 -0
  215. package/dist/blueprints/GLO_representative.js +6 -0
  216. package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
  217. package/dist/blueprints/GLO_salesInvoice.js +15 -0
  218. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
  219. package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
  220. package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
  221. package/dist/blueprints/GLO_salesOrder.js +25 -0
  222. package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
  223. package/dist/blueprints/GLO_salesOrderLine.js +34 -0
  224. package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
  225. package/dist/blueprints/GLO_stockCorrection.js +24 -0
  226. package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
  227. package/dist/blueprints/GLO_stopSchedule.js +4 -0
  228. package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
  229. package/dist/blueprints/GLO_supplierArticle.js +8 -0
  230. package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
  231. package/dist/blueprints/GLO_tclSetting.js +6 -0
  232. package/dist/blueprints/GLO_todo.d.ts +10 -0
  233. package/dist/blueprints/GLO_todo.js +21 -0
  234. package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
  235. package/dist/blueprints/GLO_todoSchedule.js +79 -0
  236. package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
  237. package/dist/blueprints/GLO_tractionDistance.js +6 -0
  238. package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
  239. package/dist/blueprints/GLO_transportOrder.js +4 -0
  240. package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
  241. package/dist/blueprints/GLO_transportPrice.js +34 -0
  242. package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
  243. package/dist/blueprints/GLO_transportRequirement.js +32 -0
  244. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
  245. package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
  246. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
  247. package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
  248. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
  249. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
  250. package/dist/blueprints/GLO_transportStock.d.ts +4 -0
  251. package/dist/blueprints/GLO_transportStock.js +4 -0
  252. package/dist/blueprints/GLO_visit.d.ts +9 -0
  253. package/dist/blueprints/GLO_visit.js +10 -0
  254. package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
  255. package/dist/blueprints/GLO_warehouseMove.js +9 -0
  256. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
  257. package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
  258. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
  259. package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
  260. package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
  261. package/dist/blueprints/GLO_workflowVerification.js +19 -0
  262. package/dist/blueprints/GLO_zone.d.ts +9 -0
  263. package/dist/blueprints/GLO_zone.js +9 -0
  264. package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
  265. package/dist/blueprints/GLO_zone_postalcode.js +10 -0
  266. package/dist/blueprints/GLO_zone_type.d.ts +8 -0
  267. package/dist/blueprints/GLO_zone_type.js +7 -0
  268. package/dist/blueprints/GLT_goods.d.ts +2 -0
  269. package/dist/blueprints/GLT_goods.js +12 -0
  270. package/dist/commands/FOB_commands.d.ts +124 -0
  271. package/dist/commands/FOB_commands.js +211 -0
  272. package/dist/commands/GLJ_commands.d.ts +28 -0
  273. package/dist/commands/GLJ_commands.js +40 -0
  274. package/dist/commands/GLO_commands.d.ts +685 -0
  275. package/dist/commands/GLO_commands.js +2321 -0
  276. package/dist/commands/GLS_commands.d.ts +63 -0
  277. package/dist/commands/GLS_commands.js +103 -0
  278. package/dist/commands/GLT_commands.d.ts +78 -0
  279. package/dist/commands/GLT_commands.js +148 -0
  280. package/dist/commands/POR_commands.d.ts +85 -0
  281. package/dist/commands/POR_commands.js +122 -0
  282. package/dist/config.d.ts +9 -0
  283. package/dist/config.js +115 -0
  284. package/dist/index.d.ts +2 -0
  285. package/dist/index.js +15 -0
  286. package/dist/plugins/prometheusWriter.d.ts +15 -0
  287. package/dist/plugins/prometheusWriter.js +111 -0
  288. package/dist/register.d.ts +8 -0
  289. package/dist/register.js +23 -0
  290. package/dist/tsHelper.d.ts +161 -0
  291. package/dist/tsHelper.js +294 -0
  292. package/dist/types.d.ts +363 -0
  293. package/dist/types.js +4 -0
  294. package/dist/websocketDetector.d.ts +71 -0
  295. package/dist/websocketDetector.js +1593 -0
  296. package/package.json +10 -2
  297. package/template/package.json +1 -1
@@ -0,0 +1,186 @@
1
+ import { close, open, skipCheck, span } from '../tsHelper.js';
2
+ import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
3
+ const formNameString = 'ng$relations_dtl';
4
+ const formNameGeneral = 'ng$relations_dtl_general';
5
+ const formNameCustomer = 'ng$relations_dtl_customer';
6
+ const formNameSupplier = 'ng$relations_dtl_supplier';
7
+ const formNameTransporter = 'ng$relations_dtl_transporter';
8
+ export const GLO_enterRelation = (obj, formName = formNameString) => {
9
+ cy.GLO_addInput([formName, 'relationtype'], obj.relationtype);
10
+ cy.GLO_addInput([formName, 'relation_code'], obj.relationCode);
11
+ cy.GLO_addInput([formName, 'extra_search_code'], obj.extraSearchCode);
12
+ cy.GLO_addInput([formName, 'name'], obj.name);
13
+ if (obj.postalCodeGeneral) {
14
+ cy.GLO_addInput([formName, 'postal_code_general'], obj.postalCodeGeneral);
15
+ cy.GLO_checkLoadingIndicator();
16
+ cy.get('body').then(($body) => {
17
+ if ($body.find('.svy-dialog').length > 0) {
18
+ if ($body.find('.svy-dialog [row-index]').length === 0) {
19
+ cy.GLO_log('No cities found for this postal code, allowing manual input');
20
+ cy.GLO_clickButton(['ng$svy_nav_selection', 'btn_cancel']);
21
+ return;
22
+ }
23
+ if (obj.cityGeneral) {
24
+ cy.GLO_dblClickRowInGrid(span, ['ng$postalcode_sel', 'grid'], obj.cityGeneral, undefined, skipCheck);
25
+ }
26
+ else {
27
+ throw new Error('Multiple muncipalities detected, obj.cityGeneral required');
28
+ }
29
+ }
30
+ });
31
+ }
32
+ if (obj.address) {
33
+ cy.GLO_clearField([formName, 'address']);
34
+ cy.GLO_clickButton([formName, 'address'], 'fa-search');
35
+ GLO_enterAddressPopup(obj.address);
36
+ }
37
+ if (obj.cityGeneral) {
38
+ cy.GLO_getElement([formName, 'city_general'])
39
+ .find('.dx-texteditor-input')
40
+ .invoke('val')
41
+ .then((filledInCity) => {
42
+ if (String(filledInCity) !== obj.cityGeneral) {
43
+ cy.GLO_addInput([formName, 'city_general'], obj.cityGeneral);
44
+ cy.GLO_checkLoadingIndicator();
45
+ cy.get('body').then(($body) => {
46
+ if ($body.find('.svy-dialog').length > 0) {
47
+ if ($body.find('.svy-dialog [row-index]').length === 0)
48
+ cy.GLO_clickButton(['ng$svy_nav_selection', 'btn_cancel']);
49
+ else
50
+ cy.GLO_dblClickRowInGrid(span, ['ng$postalcode_sel', 'grid'], obj.cityGeneral, undefined, skipCheck);
51
+ }
52
+ });
53
+ }
54
+ });
55
+ }
56
+ cy.GLO_addInput([formName, 'relation_status'], obj.relationStatus);
57
+ cy.GLO_addInput([formName, 'country_general'], obj.countryGeneral);
58
+ cy.GLO_addInput([formName, 'streetname_general'], obj.streetnameGeneral);
59
+ cy.GLO_addInput([formName, 'house_number_general'], obj.houseNumberGeneral);
60
+ cy.GLO_checkbox([formName, 'flag_invoice_relation'], obj.flagInvoiceRelation);
61
+ cy.GLO_checkbox([formName, 'flag_customer'], obj.flagCustomer);
62
+ cy.GLO_checkbox([formName, 'flag_supplier'], obj.flagSupplier);
63
+ cy.GLO_checkbox([formName, 'flag_principal'], obj.flagPrincipal);
64
+ cy.GLO_checkbox([formName, 'flag_transporter'], obj.flagTransporter);
65
+ cy.GLO_checkbox([formName, 'flag_internal_relation'], obj.flagInternalRelation);
66
+ cy.GLO_addInput([formName, 'telephone_nr'], obj.phoneNr);
67
+ cy.GLO_addInput([formName, 'gsm_nr'], obj.mobileNr);
68
+ if (obj.legalForm ||
69
+ obj.representativeName ||
70
+ obj.emailaddress ||
71
+ obj.vatNr ||
72
+ obj.traderegisterNr ||
73
+ obj.language ||
74
+ obj.eori ||
75
+ obj.dunsNr ||
76
+ obj.flagPeppol ||
77
+ obj.peppolCode) {
78
+ enterGeneralrTab(obj, formName);
79
+ }
80
+ if (obj.paymentConditionId ||
81
+ obj.customerWayOfPaymentId ||
82
+ obj.deliveryConditionId ||
83
+ obj.electronicInvoice ||
84
+ obj.invoiceCustomerCode ||
85
+ obj.flagSplitWHOPerSO ||
86
+ obj.flagSummaryDeliveries ||
87
+ obj.flagSummaryInvoices ||
88
+ obj.vatRegime ||
89
+ obj.debtorCode ||
90
+ obj.office ||
91
+ obj.newServiceLevel ||
92
+ obj.relationGroupType ||
93
+ obj.classification) {
94
+ enterCustomerTab(obj, formName);
95
+ }
96
+ if (obj.officeSupplier ||
97
+ obj.relationGroupTypeSupplier ||
98
+ obj.classificationSupplier ||
99
+ obj.supplierVatRegime ||
100
+ obj.supplierVatId ||
101
+ obj.supplierWayOfPaymentId ||
102
+ obj.supplierDeliveryconditionId ||
103
+ obj.supplierPaymentConditionId) {
104
+ enterSupplierTab(obj, formName);
105
+ }
106
+ if (obj.flagDangerousGoods || obj.flagHighValueAllowed || obj.flagTemperatureContolledAllowed || obj.flagAlcoholAllowed || obj.flagWasteAllowed) {
107
+ enterTransporterTab(obj, formName);
108
+ }
109
+ };
110
+ // Redirect to the normal form but use the formname of customers
111
+ export const GLO_enterCustomer = (obj) => {
112
+ const formNameCustomer = 'ng$customers_dtl';
113
+ GLO_enterRelation(obj, formNameCustomer);
114
+ };
115
+ // Redirect to the normal form but use the formname of supplier
116
+ export const GLO_enterSupplier = (obj) => {
117
+ const formNameSupplier = 'ng$suppliers_dtl';
118
+ GLO_enterRelation(obj, formNameSupplier);
119
+ };
120
+ // Customer tab
121
+ const enterCustomerTab = (obj, formName = 'ng$relations_dtl') => {
122
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Customer', open);
123
+ cy.GLO_addInput([formNameCustomer, 'vat_regime_id'], obj.vatRegime);
124
+ cy.GLO_addInput([formNameCustomer, 'paymentcondition_id'], obj.paymentConditionId);
125
+ cy.GLO_addInput([formNameCustomer, 'way_of_payment_id'], obj.customerWayOfPaymentId);
126
+ cy.GLO_addInput([formNameCustomer, 'deliverycondition_id'], obj.deliveryConditionId);
127
+ cy.GLO_checkbox([formNameCustomer, 'electronic_invoice'], obj.electronicInvoice);
128
+ cy.GLO_checkbox([formNameCustomer, 'flag_split_wo_per_so'], obj.flagSplitWHOPerSO);
129
+ cy.GLO_checkbox([formNameCustomer, 'summary_delivery'], obj.flagSummaryDeliveries);
130
+ cy.GLO_checkbox([formNameCustomer, 'summary_invoice'], obj.flagSummaryInvoices);
131
+ cy.GLO_checkbox([formNameCustomer, 'flag_ready_for_invoicing'], obj.flagReadyForInvoicing);
132
+ cy.GLO_addInput([formNameCustomer, 'responsible_user_id'], obj.responsible);
133
+ cy.GLO_addInput([formNameCustomer, 'vat_regime_id'], obj.vatRegimeCustomerTab);
134
+ if (obj.invoiceCustomerCode) {
135
+ cy.GLO_addInput([formNameCustomer, 'invoice_customer_code'], obj.invoiceCustomerCode);
136
+ cy.GLO_checkLoadingIndicator();
137
+ }
138
+ cy.GLO_addInput([formNameCustomer, 'debtorcode_accountancy'], obj.debtorCode);
139
+ cy.GLO_addInput([formNameCustomer, 'office'], obj.office);
140
+ cy.GLO_addInput([formNameCustomer, 'new_service_level'], obj.newServiceLevel);
141
+ cy.GLO_addInput([formNameCustomer, 'relation_group_type'], obj.relationGroupType);
142
+ cy.GLO_addInput([formNameCustomer, 'classification'], obj.classification);
143
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Customer', close);
144
+ };
145
+ // General tab
146
+ const enterGeneralrTab = (obj, formName = 'ng$relations_dtl') => {
147
+ cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
148
+ cy.GLO_addInput([formNameGeneral, 'legal_form'], obj.legalForm);
149
+ cy.GLO_addInput([formNameGeneral, 'vat_nr'], obj.vatNr);
150
+ if (obj.language) {
151
+ cy.GLO_addInput([formNameGeneral, 'language_code'], obj.language);
152
+ cy.GLO_dialogChoice('Yes');
153
+ }
154
+ cy.GLO_popupWindow([formNameGeneral, 'representative_name'], obj.representativeName);
155
+ cy.GLO_addInput([formNameGeneral, 'emailaddress'], obj.emailaddress);
156
+ cy.GLO_addInput([formNameGeneral, 'traderegister_nr'], obj.traderegisterNr);
157
+ cy.GLO_addInput([formNameGeneral, 'website'], obj.website);
158
+ cy.GLO_addInput([formNameGeneral, 'eori'], obj.eori);
159
+ cy.GLO_addInput([formNameGeneral, 'duns_nr'], obj.dunsNr);
160
+ cy.GLO_checkbox([formNameGeneral, 'flag_peppol'], obj.flagPeppol);
161
+ cy.GLO_addInput([formNameGeneral, 'peppol_code'], obj.peppolCode);
162
+ cy.GLO_selectTab([formName, 'tabs_70'], 'General', close);
163
+ };
164
+ // Supplier tab
165
+ const enterSupplierTab = (obj, formName = 'ng$relations_dtl') => {
166
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Supplier', open);
167
+ cy.GLO_addInput([formNameSupplier, 'vat_regime_id'], obj.supplierVatRegime);
168
+ cy.GLO_addInput([formNameSupplier, 'vat_id'], obj.supplierVatId);
169
+ cy.GLO_addInput([formNameSupplier, 'way_of_payment_id'], obj.supplierWayOfPaymentId);
170
+ cy.GLO_addInput([formNameSupplier, 'deliverycondition_id'], obj.supplierDeliveryconditionId);
171
+ cy.GLO_addInput([formNameSupplier, 'paymentcondition_id'], obj.supplierPaymentConditionId);
172
+ cy.GLO_addInput([formNameSupplier, 'office'], obj.officeSupplier);
173
+ cy.GLO_addInput([formNameSupplier, 'relation_group_type'], obj.relationGroupTypeSupplier);
174
+ cy.GLO_addInput([formNameSupplier, 'classification'], obj.classificationSupplier);
175
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Supplier', close);
176
+ };
177
+ // Transporter tab
178
+ const enterTransporterTab = (obj, formName = 'ng$relations_dtl') => {
179
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Transporter', open);
180
+ cy.GLO_checkbox([formNameTransporter, 'flag_dgn'], obj.flagDangerousGoods);
181
+ cy.GLO_checkbox([formNameTransporter, 'flag_high_value'], obj.flagHighValueAllowed);
182
+ cy.GLO_checkbox([formNameTransporter, 'flag_tcl_allowed'], obj.flagTemperatureContolledAllowed);
183
+ cy.GLO_checkbox([formNameTransporter, 'flag_alcohol_allowed'], obj.flagAlcoholAllowed);
184
+ cy.GLO_checkbox([formNameTransporter, 'flag_waste_allowed'], obj.flagWasteAllowed);
185
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Transporter', close);
186
+ };
@@ -0,0 +1,15 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objRelationType = {
3
+ relationtype_code?: string;
4
+ flag_customer?: CheckState;
5
+ flag_supplier?: CheckState;
6
+ flag_carrier?: CheckState;
7
+ flag_agent?: CheckState;
8
+ flag_transporter?: CheckState;
9
+ flag_hide_in_general_selection?: CheckState;
10
+ currency_id?: string;
11
+ vat_regime_id?: string;
12
+ discountpercentage?: number;
13
+ translations?: string;
14
+ };
15
+ export declare const GLO_enterRelationType: (obj: objRelationType) => void;
@@ -0,0 +1,31 @@
1
+ import { open } from '../tsHelper.js';
2
+ export const GLO_enterRelationType = (obj) => {
3
+ const formName = 'ng$relationtype_dtl';
4
+ const formNameGeneral = 'ng$relationtype_dtl_general';
5
+ const formNameTranslations = 'ng$basetabletranslation_uuid_lst_tab';
6
+ // Main form
7
+ cy.GLO_addInput([formName, 'relationtype_code'], obj.relationtype_code);
8
+ cy.GLO_checkbox([formName, 'flag_customer'], obj.flag_customer);
9
+ cy.GLO_checkbox([formName, 'flag_supplier'], obj.flag_supplier);
10
+ cy.GLO_checkbox([formName, 'flag_carrier'], obj.flag_carrier);
11
+ cy.GLO_checkbox([formName, 'flag_agent'], obj.flag_agent);
12
+ cy.GLO_checkbox([formName, 'flag_transporter'], obj.flag_transporter);
13
+ cy.GLO_checkbox([formName, 'flag_hide_in_general_selection'], obj.flag_hide_in_general_selection);
14
+ // General tab
15
+ if (obj.currency_id || obj.vat_regime_id || obj.discountpercentage) {
16
+ cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
17
+ cy.GLO_addInput([formNameGeneral, 'currency_id'], obj.currency_id);
18
+ cy.GLO_addInput([formNameGeneral, 'vat_regime_id'], obj.vat_regime_id);
19
+ cy.GLO_addInput([formNameGeneral, 'discountpercentage'], obj.discountpercentage);
20
+ }
21
+ if (obj.translations) {
22
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', open);
23
+ cy.GLO_getAllRowsInGrid([formNameTranslations, 'grid'])
24
+ .its('length')
25
+ .then((length) => {
26
+ for (let i = 0; i < length; i++) {
27
+ cy.GLO_fillInfieldInGrid([formNameTranslations, 'grid'], i, 'desc', obj.translations);
28
+ }
29
+ });
30
+ }
31
+ };
@@ -0,0 +1,10 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objRemarkType = {
3
+ remarkTypeCode?: string;
4
+ useAsRemark?: CheckState;
5
+ useAsInstruction?: CheckState;
6
+ useAsClause?: CheckState;
7
+ visiblePortal?: CheckState;
8
+ editablePortal?: CheckState;
9
+ };
10
+ export declare const GLO_enterRemarkType: (obj: objRemarkType) => void;
@@ -0,0 +1,9 @@
1
+ export const GLO_enterRemarkType = (obj) => {
2
+ const formName = 'ng$remark_type_dtl';
3
+ cy.GLO_addInput([formName, 'remark_type_code'], obj.remarkTypeCode);
4
+ cy.GLO_checkbox([formName, 'flag_use_as_remark'], obj.useAsRemark);
5
+ cy.GLO_checkbox([formName, 'flag_use_as_handling_instruction'], obj.useAsInstruction);
6
+ cy.GLO_checkbox([formName, 'flag_use_as_clause'], obj.useAsClause);
7
+ cy.GLO_checkbox([formName, 'flag_is_visible_in_portal'], obj.visiblePortal);
8
+ cy.GLO_checkbox([formName, 'flag_is_editable_in_portal'], obj.editablePortal);
9
+ };
@@ -0,0 +1,4 @@
1
+ export type objRemarkTypeDefaultValue = {
2
+ translations?: string;
3
+ };
4
+ export declare const GLO_enterRemarkTypeDefaultValue: (obj: objRemarkTypeDefaultValue) => void;
@@ -0,0 +1,14 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ export const GLO_enterRemarkTypeDefaultValue = (obj) => {
3
+ const formName = 'ng$remark_type_defaults_dtl';
4
+ const formNameTranslations = 'ng$basetabletranslation_uuid_lst_tab';
5
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', open);
6
+ cy.GLO_getAllRowsInGrid([formNameTranslations, 'grid'])
7
+ .its('length')
8
+ .then((length) => {
9
+ for (let i = 0; i < length; i++) {
10
+ cy.GLO_fillInfieldInGrid([formNameTranslations, 'grid'], i, 'desc', obj.translations);
11
+ }
12
+ });
13
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', close);
14
+ };
@@ -0,0 +1,10 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objRemarkTypeEntityType = {
3
+ entityType?: string;
4
+ sortOrder?: number;
5
+ default?: CheckState;
6
+ copyMultiple?: CheckState;
7
+ allowToChangeDefaultValue?: CheckState;
8
+ relationForLanguage?: string;
9
+ };
10
+ export declare const GLO_enterRemarkTypeEntityType: (obj: objRemarkTypeEntityType) => void;
@@ -0,0 +1,9 @@
1
+ export const GLO_enterRemarkTypeEntityType = (obj) => {
2
+ const formName = 'ng$remark_type_entity_type_dtl';
3
+ cy.GLO_addInput([formName, 'entity_type_id'], obj.entityType);
4
+ cy.GLO_addInput([formName, 'sort_order'], obj.sortOrder);
5
+ cy.GLO_checkbox([formName, 'flag_default'], obj.default);
6
+ cy.GLO_checkbox([formName, 'flag_copy_multiple'], obj.copyMultiple);
7
+ cy.GLO_checkbox([formName, 'allow_change_default'], obj.allowToChangeDefaultValue);
8
+ cy.GLO_addInput([formName, 'relation_language'], obj.relationForLanguage);
9
+ };
@@ -0,0 +1,7 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objRepresentative = {
3
+ representativeCode?: string;
4
+ name?: string;
5
+ flagSalesManager?: CheckState;
6
+ };
7
+ export declare const GLO_enterRepresentative: (obj: objRepresentative) => void;
@@ -0,0 +1,6 @@
1
+ export const GLO_enterRepresentative = (obj) => {
2
+ const formName = 'ng$representative_dtl';
3
+ cy.GLO_addInput([formName, 'representative_code'], obj.representativeCode);
4
+ cy.GLO_addInput([formName, 'name'], obj.name);
5
+ cy.GLO_checkbox([formName, 'flag_is_sales_manager'], obj.flagSalesManager);
6
+ };
@@ -0,0 +1,9 @@
1
+ export type objSalesInvoice = {
2
+ invoiceType?: string;
3
+ relation?: string;
4
+ externalInvoiceNr?: string | number;
5
+ externalInvoiceDate?: string;
6
+ deliveryCondition?: string;
7
+ paymentCondition?: string;
8
+ };
9
+ export declare const GLO_enterSalesInvoice: (obj: objSalesInvoice) => void;
@@ -0,0 +1,15 @@
1
+ import { close, input, open } from '../tsHelper.js';
2
+ const formName = 'ng$sales_invoice_dtl';
3
+ const formNameInvoiceAmounts = 'ng$sales_invoice_dtl_general';
4
+ export const GLO_enterSalesInvoice = (obj) => {
5
+ cy.GLO_addInput([formName, 'invoice_type'], obj.invoiceType);
6
+ cy.GLO_popupWindow([formName, 'relation'], obj.relation);
7
+ cy.GLO_addInput([formName, 'external_invoice_nr'], obj.externalInvoiceNr);
8
+ cy.GLO_addDate(input, [formName, 'external_invoice_date'], obj.externalInvoiceDate);
9
+ if (obj.deliveryCondition || obj.paymentCondition) {
10
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Invoice amounts', open);
11
+ cy.GLO_addInput([formNameInvoiceAmounts, 'deliverycondition_id'], obj.deliveryCondition);
12
+ cy.GLO_addInput([formNameInvoiceAmounts, 'paymentcondition_id'], obj.paymentCondition);
13
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Invoice amounts', close);
14
+ }
15
+ };
@@ -0,0 +1,9 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objSalesInvoiceLine = {
3
+ articleCode?: string;
4
+ quantity?: number;
5
+ articlePrice?: number;
6
+ contractualDiscount?: Partial<Record<1 | 2 | 3, number>>;
7
+ flagNominalContractDiscount?: CheckState;
8
+ };
9
+ export declare const GLO_enterSalesInvoiceLine: (obj: objSalesInvoiceLine) => void;
@@ -0,0 +1,13 @@
1
+ const formName = 'ng$sales_invoiceline_dtl';
2
+ export const GLO_enterSalesInvoiceLine = (obj) => {
3
+ cy.GLO_popupWindow([formName, 'btn_select_article_code'], obj.articleCode);
4
+ cy.GLO_addInput([formName, 'quantity'], obj.quantity);
5
+ cy.GLO_addInput([formName, 'price_article'], obj.articlePrice);
6
+ cy.GLO_checkbox([formName, 'flag_disc_contr_is_nominal'], obj.flagNominalContractDiscount);
7
+ if (obj.contractualDiscount) {
8
+ Object.entries(obj.contractualDiscount).forEach(([key, value]) => {
9
+ cy.GLO_addInput([formName, `discount_percentage${key}`], value);
10
+ cy.GLO_dialogChoice('Yes'); // No discount allowed for this article, allow anyway?
11
+ });
12
+ }
13
+ };
@@ -0,0 +1,13 @@
1
+ export type objSalesOrder = {
2
+ relationCode?: number | string;
3
+ type?: string;
4
+ subType?: string;
5
+ deliveryCondition?: string;
6
+ warehouseId?: string;
7
+ paymentCondition?: string;
8
+ yourReference?: string;
9
+ ourReference?: string;
10
+ representative?: string;
11
+ deliveryDate?: string;
12
+ };
13
+ export declare const GLO_enterSalesOrder: (obj: objSalesOrder) => void;
@@ -0,0 +1,25 @@
1
+ import { close, equal, equalBool, input, open } from '../tsHelper.js';
2
+ export const GLO_enterSalesOrder = (obj) => {
3
+ const formName = 'ng$salesorder_dtl';
4
+ const formNameGeneral = `${formName}_general`;
5
+ const detailTabsName = 'tabs_70';
6
+ cy.GLO_addInput([formName, 'salesorder_type_id'], obj.type);
7
+ if (obj.type && obj.subType)
8
+ cy.GLO_checkLoadingIndicator();
9
+ cy.GLO_addInput([formName, 'salesorder_subtype_id'], obj.subType);
10
+ cy.GLO_addInput([formName, 'warehouse_id'], obj.warehouseId);
11
+ cy.GLO_addDate(input, ['ng$salesorder_dtl', 'deliverydate'], obj.deliveryDate);
12
+ if (obj.relationCode || obj.yourReference || obj.ourReference || obj.representative || obj.paymentCondition || obj.deliveryCondition) {
13
+ cy.GLO_selectTab([formName, detailTabsName], 'General', open);
14
+ cy.GLO_popupWindow([formNameGeneral, 'relation_code'], obj.relationCode, 'relation_code', equalBool);
15
+ cy.GLO_checkField([formNameGeneral, 'relation_code'], obj.relationCode, equal, 30000);
16
+ cy.GLO_dialogChoice('OK');
17
+ cy.GLO_addInput([formNameGeneral, 'paymentcondition_id'], obj.paymentCondition);
18
+ cy.GLO_addInput([formNameGeneral, 'deliverycondition_id'], obj.deliveryCondition);
19
+ cy.GLO_addInput([formNameGeneral, 'customer_reference'], obj.yourReference);
20
+ cy.GLO_addInput([formNameGeneral, 'our_reference'], obj.ourReference);
21
+ cy.GLO_addInput([formNameGeneral, 'representative_id'], obj.representative);
22
+ cy.GLO_selectTab([formName, detailTabsName], 'General', close);
23
+ }
24
+ cy.GLO_addDate(input, ['ng$salesorder_dtl', 'deliverydate'], obj.deliveryDate);
25
+ };
@@ -0,0 +1,13 @@
1
+ export type objSalesOrderLine = {
2
+ articleCode?: number | string;
3
+ articleVersionCode?: string;
4
+ quantityBase?: number;
5
+ price?: number;
6
+ priceArticle?: number;
7
+ inputQuantity?: number;
8
+ discountPercentage1?: number;
9
+ contractArticleId?: string;
10
+ inputQtyPerUnitId?: string;
11
+ deliveryDate?: string;
12
+ };
13
+ export declare const GLO_enterSalesOrderLine: (obj: objSalesOrderLine) => void;
@@ -0,0 +1,34 @@
1
+ import { close, equal, input, open } from '../tsHelper.js';
2
+ export const GLO_enterSalesOrderLine = (obj) => {
3
+ const formName = 'ng$salesorderline_dtl';
4
+ const formNameGeneral = 'ng$salesorderline_dtl_general';
5
+ const detailTabsName = 'tabs_280';
6
+ if (obj.articleCode) {
7
+ cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
8
+ cy.GLO_dialogChoice('OK');
9
+ cy.GLO_dialogChoice('OK');
10
+ cy.GLO_checkField([formName, 'article_code'], obj.articleCode, equal, 30000);
11
+ }
12
+ cy.GLO_popupWindow([formName, 'articleversion_code'], obj.articleVersionCode);
13
+ if (obj.contractArticleId) {
14
+ cy.GLO_addInput([formName, 'contract_article_id'], obj.contractArticleId);
15
+ cy.GLO_dialogChoice('OK');
16
+ }
17
+ if (obj.quantityBase || obj.priceArticle || obj.price || obj.inputQuantity || obj.inputQtyPerUnitId || obj.discountPercentage1 || obj.deliveryDate) {
18
+ cy.GLO_selectTab([formName, detailTabsName], 'General', open);
19
+ if (obj.quantityBase) {
20
+ cy.GLO_addInput([formNameGeneral, 'quantity'], obj.quantityBase);
21
+ cy.GLO_checkField([formNameGeneral, 'quantity'], obj.quantityBase);
22
+ }
23
+ cy.GLO_addInput([formNameGeneral, 'price_article'], obj.priceArticle);
24
+ cy.GLO_addInput([formNameGeneral, 'price'], obj.price);
25
+ if (obj.inputQuantity) {
26
+ cy.GLO_addInput([formNameGeneral, 'input_qty'], obj.inputQuantity);
27
+ cy.GLO_checkLoadingIndicator(); // Needed because of data loading
28
+ }
29
+ cy.GLO_addInput([formNameGeneral, 'discount_percentage1'], obj.discountPercentage1);
30
+ cy.GLO_addInput([formNameGeneral, 'input_qty_per_unit_id'], obj.inputQtyPerUnitId);
31
+ cy.GLO_addDate(input, [formNameGeneral, 'delivery_date'], obj.deliveryDate);
32
+ cy.GLO_selectTab([formName, detailTabsName], 'General', close);
33
+ }
34
+ };
@@ -0,0 +1,14 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objStockCorrection = {
3
+ onlyAvailableStock?: CheckState;
4
+ articleCode?: string;
5
+ articleVersionCode?: string;
6
+ subType?: string;
7
+ deliveryCondition?: string;
8
+ localWarehouseId?: string;
9
+ lot?: string;
10
+ quantity?: string | number;
11
+ locationStock?: string;
12
+ localWarehouseLocationId?: string;
13
+ };
14
+ export declare const GLO_enterStockCorrection: (obj: objStockCorrection) => void;
@@ -0,0 +1,24 @@
1
+ export const GLO_enterStockCorrection = (obj) => {
2
+ const formName = 'ng$stock_correction_dtl';
3
+ cy.GLO_checkbox([formName, 'only_available_stock'], obj.onlyAvailableStock);
4
+ if (obj.articleCode) {
5
+ cy.get('body').then(($body) => {
6
+ if ($body.find('[data-cy="ng$stock_correction_dtl.btn_select_article"]').length > 0) {
7
+ cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode, 'article_code');
8
+ }
9
+ else {
10
+ cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode, 'article_code');
11
+ }
12
+ });
13
+ cy.GLO_checkField([formName, 'article_code'], obj.articleCode);
14
+ }
15
+ cy.GLO_addInput([formName, 'local_articleversion_id'], obj.articleVersionCode);
16
+ cy.GLO_addInput([formName, 'local_warehouse_id'], obj.localWarehouseId);
17
+ cy.GLO_addInput([formName, 'local_warehouse_location_id'], obj.localWarehouseLocationId);
18
+ cy.GLO_addInput([formName, 'local_lot_id'], obj.lot);
19
+ if (obj.locationStock) {
20
+ cy.GLO_addInput([formName, 'location_stock_id'], obj.locationStock);
21
+ cy.GLO_checkLoadingIndicator(); // Loads data
22
+ }
23
+ cy.GLO_addInput([formName, 'quantity'], obj.quantity);
24
+ };
@@ -0,0 +1,4 @@
1
+ export type objStopSchedule = {
2
+ code?: string;
3
+ };
4
+ export declare const GLO_enterStopSchedule: (obj: objStopSchedule) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterStopSchedule = (obj) => {
2
+ const formName = 'ng$delivery_schedule$logistic_contract_detail_stop_dtl';
3
+ cy.GLO_addInput([formName, 'schedule_code'], obj.code);
4
+ };
@@ -0,0 +1,8 @@
1
+ export type objSupplierArticle = {
2
+ articleCode?: string;
3
+ articleNumberSupplier?: string;
4
+ deliveryTimeInDays?: number;
5
+ articleVersionCode?: string;
6
+ relationCode?: string;
7
+ };
8
+ export declare const GLO_enterSupplierArticle: (obj: objSupplierArticle) => void;
@@ -0,0 +1,8 @@
1
+ const formName = 'ng$supplier_article_dtl';
2
+ export const GLO_enterSupplierArticle = (obj) => {
3
+ cy.GLO_popupWindow([formName, 'relation_code'], obj.relationCode);
4
+ cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
5
+ cy.GLO_popupWindow([formName, 'articleversion_code'], obj.articleVersionCode);
6
+ cy.GLO_addInput([formName, 'articlenumber_supplier'], obj.articleNumberSupplier);
7
+ cy.GLO_addInput([formName, 'delivery_time_in_days'], obj.deliveryTimeInDays);
8
+ };
@@ -0,0 +1,6 @@
1
+ export type objTclSettings = {
2
+ transportModality?: string;
3
+ plugIn?: string;
4
+ engineRunning?: string;
5
+ };
6
+ export declare const GLO_enterTclSettings: (obj: objTclSettings) => void;
@@ -0,0 +1,6 @@
1
+ export const GLO_enterTclSettings = (obj) => {
2
+ const formName = 'ng$logistic_contract_detail_transport_method_tcl_dlg';
3
+ cy.GLO_addInput([formName, 'transport_modality'], obj.transportModality);
4
+ cy.GLO_addInput([formName, 'tcl_plug_in'], obj.plugIn);
5
+ cy.GLO_addInput([formName, 'tcl_engine_running'], obj.engineRunning);
6
+ };
@@ -0,0 +1,10 @@
1
+ export type objTodo = {
2
+ type?: string;
3
+ subType?: string;
4
+ username?: string;
5
+ deadline?: string;
6
+ completed?: string;
7
+ description?: string;
8
+ article?: number | string;
9
+ };
10
+ export declare const GLO_enterTodo: (obj: objTodo) => void;
@@ -0,0 +1,21 @@
1
+ import { close, input, open } from '../tsHelper.js';
2
+ export const GLO_enterTodo = (obj) => {
3
+ const formName = 'ng$todos_dtl';
4
+ const detailTabsName = 'tabs_340';
5
+ cy.GLO_addInput([formName, 'todo_type_id'], obj.type);
6
+ cy.GLO_addInput([formName, 'todo_subtype_id'], obj.subType);
7
+ cy.GLO_popupWindow([formName, 'user_name'], obj.username);
8
+ cy.GLO_addDate(input, [formName, 'deadline'], obj.deadline);
9
+ cy.GLO_addDate(input, [formName, 'completed_date'], obj.completed);
10
+ if (obj.description) {
11
+ cy.GLO_selectTab([formName, detailTabsName], 'Description', open);
12
+ //! Added enter and click because otherwise the textarea doesn't know that a user has typed anything somehow....
13
+ cy.GLO_getElement(['ng$todos_dtl_description', 'description']).find('textarea').filter(':visible').click();
14
+ cy.GLO_addInput(['ng$todos_dtl_description', 'description'], `${obj.description}{enter}`);
15
+ }
16
+ if (obj.article) {
17
+ cy.GLO_selectTab([formName, detailTabsName], 'General', open);
18
+ cy.GLO_popupWindow(['todo_dtl_general$todos', 'articlearticle_id'], obj.article);
19
+ cy.GLO_selectTab([formName, detailTabsName], 'General', close);
20
+ }
21
+ };
@@ -0,0 +1,23 @@
1
+ export type objTodoSchedule = {
2
+ scheduleTypeId?: string;
3
+ scheduleSubtype?: string;
4
+ user?: string;
5
+ userRole?: string;
6
+ relation?: string;
7
+ contactPerson?: string;
8
+ responsible?: string;
9
+ description?: string;
10
+ scheduleStartDate?: string;
11
+ scheduleRecurringEvery?: number;
12
+ scheduleRecurringInterval?: string;
13
+ scheduleTimes?: {
14
+ daysOfWeek: dayItem[];
15
+ hours?: hoursSpec;
16
+ };
17
+ };
18
+ type weekdayKey = 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
19
+ type hhmm = `${number}${number}:${number}${number}`;
20
+ type hoursSpec = [hhmm?, hhmm?, hhmm?, hhmm?];
21
+ type dayItem = weekdayKey | Partial<Record<weekdayKey, hoursSpec>>;
22
+ export declare const GLO_todoSchedule: (obj: objTodoSchedule) => void;
23
+ export {};