@globisnv/cypress-core 0.0.1 → 0.0.2

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 (296) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -7
  3. package/dist/apiMethods/IGS_request.d.ts +0 -98
  4. package/dist/apiMethods/IGS_request.js +0 -161
  5. package/dist/apiMethods/IGS_response.d.ts +0 -47
  6. package/dist/apiMethods/IGS_response.js +0 -1
  7. package/dist/blueprints/GLO_addressPopup.d.ts +0 -45
  8. package/dist/blueprints/GLO_addressPopup.js +0 -96
  9. package/dist/blueprints/GLO_article.d.ts +0 -45
  10. package/dist/blueprints/GLO_article.js +0 -110
  11. package/dist/blueprints/GLO_articleLot.d.ts +0 -12
  12. package/dist/blueprints/GLO_articleLot.js +0 -23
  13. package/dist/blueprints/GLO_articleVersion.d.ts +0 -4
  14. package/dist/blueprints/GLO_articleVersion.js +0 -4
  15. package/dist/blueprints/GLO_attachmentPopup.d.ts +0 -9
  16. package/dist/blueprints/GLO_attachmentPopup.js +0 -10
  17. package/dist/blueprints/GLO_bankAccount.d.ts +0 -7
  18. package/dist/blueprints/GLO_bankAccount.js +0 -7
  19. package/dist/blueprints/GLO_billingProcess.d.ts +0 -4
  20. package/dist/blueprints/GLO_billingProcess.js +0 -4
  21. package/dist/blueprints/GLO_billingProposal.d.ts +0 -9
  22. package/dist/blueprints/GLO_billingProposal.js +0 -9
  23. package/dist/blueprints/GLO_cancel.d.ts +0 -7
  24. package/dist/blueprints/GLO_cancel.js +0 -7
  25. package/dist/blueprints/GLO_commandlist.d.ts +0 -10
  26. package/dist/blueprints/GLO_commandlist.js +0 -10
  27. package/dist/blueprints/GLO_complaint.d.ts +0 -27
  28. package/dist/blueprints/GLO_complaint.js +0 -51
  29. package/dist/blueprints/GLO_composition.d.ts +0 -14
  30. package/dist/blueprints/GLO_composition.js +0 -20
  31. package/dist/blueprints/GLO_consignment.d.ts +0 -61
  32. package/dist/blueprints/GLO_consignment.js +0 -104
  33. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +0 -6
  34. package/dist/blueprints/GLO_consignmentContainerGroup.js +0 -6
  35. package/dist/blueprints/GLO_consignmentGoods.d.ts +0 -40
  36. package/dist/blueprints/GLO_consignmentGoods.js +0 -62
  37. package/dist/blueprints/GLO_consignmentHandling.d.ts +0 -4
  38. package/dist/blueprints/GLO_consignmentHandling.js +0 -4
  39. package/dist/blueprints/GLO_consignmentOrder.d.ts +0 -31
  40. package/dist/blueprints/GLO_consignmentOrder.js +0 -37
  41. package/dist/blueprints/GLO_consignmentPart.d.ts +0 -13
  42. package/dist/blueprints/GLO_consignmentPart.js +0 -13
  43. package/dist/blueprints/GLO_consignmentParts.d.ts +0 -5
  44. package/dist/blueprints/GLO_consignmentParts.js +0 -12
  45. package/dist/blueprints/GLO_consignmentPrice.d.ts +0 -11
  46. package/dist/blueprints/GLO_consignmentPrice.js +0 -19
  47. package/dist/blueprints/GLO_consignmentSupplier.d.ts +0 -6
  48. package/dist/blueprints/GLO_consignmentSupplier.js +0 -11
  49. package/dist/blueprints/GLO_contacts.d.ts +0 -10
  50. package/dist/blueprints/GLO_contacts.js +0 -14
  51. package/dist/blueprints/GLO_container.d.ts +0 -6
  52. package/dist/blueprints/GLO_container.js +0 -4
  53. package/dist/blueprints/GLO_contract.d.ts +0 -22
  54. package/dist/blueprints/GLO_contract.js +0 -30
  55. package/dist/blueprints/GLO_contractArticle.d.ts +0 -17
  56. package/dist/blueprints/GLO_contractArticle.js +0 -35
  57. package/dist/blueprints/GLO_contractArticleCost.d.ts +0 -5
  58. package/dist/blueprints/GLO_contractArticleCost.js +0 -8
  59. package/dist/blueprints/GLO_countryVatZone.d.ts +0 -8
  60. package/dist/blueprints/GLO_countryVatZone.js +0 -9
  61. package/dist/blueprints/GLO_currencyDeviation.d.ts +0 -14
  62. package/dist/blueprints/GLO_currencyDeviation.js +0 -15
  63. package/dist/blueprints/GLO_customerArticle.d.ts +0 -12
  64. package/dist/blueprints/GLO_customerArticle.js +0 -15
  65. package/dist/blueprints/GLO_customsFlow.d.ts +0 -8
  66. package/dist/blueprints/GLO_customsFlow.js +0 -19
  67. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +0 -15
  68. package/dist/blueprints/GLO_customsFlowDefinition.js +0 -14
  69. package/dist/blueprints/GLO_customsUnion.d.ts +0 -4
  70. package/dist/blueprints/GLO_customsUnion.js +0 -4
  71. package/dist/blueprints/GLO_deliveryReceipt.d.ts +0 -10
  72. package/dist/blueprints/GLO_deliveryReceipt.js +0 -22
  73. package/dist/blueprints/GLO_departureSchedule.d.ts +0 -27
  74. package/dist/blueprints/GLO_departureSchedule.js +0 -57
  75. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +0 -49
  76. package/dist/blueprints/GLO_departureScheduleTimes.js +0 -61
  77. package/dist/blueprints/GLO_document.d.ts +0 -7
  78. package/dist/blueprints/GLO_document.js +0 -7
  79. package/dist/blueprints/GLO_documentAttachment.d.ts +0 -4
  80. package/dist/blueprints/GLO_documentAttachment.js +0 -4
  81. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +0 -5
  82. package/dist/blueprints/GLO_documentDefinitionEntity.js +0 -5
  83. package/dist/blueprints/GLO_documentGroup.d.ts +0 -4
  84. package/dist/blueprints/GLO_documentGroup.js +0 -4
  85. package/dist/blueprints/GLO_documentType.d.ts +0 -12
  86. package/dist/blueprints/GLO_documentType.js +0 -11
  87. package/dist/blueprints/GLO_enterCountry.d.ts +0 -21
  88. package/dist/blueprints/GLO_enterCountry.js +0 -47
  89. package/dist/blueprints/GLO_enterDiscount.d.ts +0 -8
  90. package/dist/blueprints/GLO_enterDiscount.js +0 -9
  91. package/dist/blueprints/GLO_equipment.d.ts +0 -34
  92. package/dist/blueprints/GLO_equipment.js +0 -55
  93. package/dist/blueprints/GLO_equipmentCategory.d.ts +0 -15
  94. package/dist/blueprints/GLO_equipmentCategory.js +0 -14
  95. package/dist/blueprints/GLO_equipmentEntity.d.ts +0 -5
  96. package/dist/blueprints/GLO_equipmentEntity.js +0 -5
  97. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +0 -13
  98. package/dist/blueprints/GLO_equipmentServiceCategory.js +0 -13
  99. package/dist/blueprints/GLO_equipmentType.d.ts +0 -21
  100. package/dist/blueprints/GLO_equipmentType.js +0 -20
  101. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +0 -13
  102. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +0 -12
  103. package/dist/blueprints/GLO_fieldInputValidation.d.ts +0 -46
  104. package/dist/blueprints/GLO_fieldInputValidation.js +0 -73
  105. package/dist/blueprints/GLO_formula.d.ts +0 -9
  106. package/dist/blueprints/GLO_formula.js +0 -9
  107. package/dist/blueprints/GLO_gang.d.ts +0 -12
  108. package/dist/blueprints/GLO_gang.js +0 -12
  109. package/dist/blueprints/GLO_holiday.d.ts +0 -7
  110. package/dist/blueprints/GLO_holiday.js +0 -8
  111. package/dist/blueprints/GLO_journey.d.ts +0 -18
  112. package/dist/blueprints/GLO_journey.js +0 -24
  113. package/dist/blueprints/GLO_journeyStop.d.ts +0 -32
  114. package/dist/blueprints/GLO_journeyStop.js +0 -44
  115. package/dist/blueprints/GLO_layout.d.ts +0 -6
  116. package/dist/blueprints/GLO_layout.js +0 -6
  117. package/dist/blueprints/GLO_logging.d.ts +0 -9
  118. package/dist/blueprints/GLO_logging.js +0 -12
  119. package/dist/blueprints/GLO_logisticConnection.d.ts +0 -10
  120. package/dist/blueprints/GLO_logisticConnection.js +0 -11
  121. package/dist/blueprints/GLO_logisticConnectionType.d.ts +0 -5
  122. package/dist/blueprints/GLO_logisticConnectionType.js +0 -5
  123. package/dist/blueprints/GLO_logisticContract.d.ts +0 -28
  124. package/dist/blueprints/GLO_logisticContract.js +0 -80
  125. package/dist/blueprints/GLO_logisticContractDetail.d.ts +0 -42
  126. package/dist/blueprints/GLO_logisticContractDetail.js +0 -122
  127. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +0 -11
  128. package/dist/blueprints/GLO_logisticContractDetailHandling.js +0 -14
  129. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +0 -5
  130. package/dist/blueprints/GLO_logisticContractDetailItem.js +0 -8
  131. package/dist/blueprints/GLO_logisticContractItem.d.ts +0 -14
  132. package/dist/blueprints/GLO_logisticContractItem.js +0 -40
  133. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +0 -4
  134. package/dist/blueprints/GLO_logisticContractItemActivity.js +0 -4
  135. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +0 -7
  136. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +0 -7
  137. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +0 -4
  138. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +0 -4
  139. package/dist/blueprints/GLO_logisticContractReference.d.ts +0 -4
  140. package/dist/blueprints/GLO_logisticContractReference.js +0 -4
  141. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +0 -9
  142. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +0 -8
  143. package/dist/blueprints/GLO_logisticLocation.d.ts +0 -7
  144. package/dist/blueprints/GLO_logisticLocation.js +0 -7
  145. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +0 -19
  146. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +0 -30
  147. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +0 -4
  148. package/dist/blueprints/GLO_logisticPurchaseOrder.js +0 -4
  149. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +0 -6
  150. package/dist/blueprints/GLO_logistic_waiting_hours.js +0 -6
  151. package/dist/blueprints/GLO_operationalDefault.d.ts +0 -23
  152. package/dist/blueprints/GLO_operationalDefault.js +0 -25
  153. package/dist/blueprints/GLO_outputDetailMail.d.ts +0 -14
  154. package/dist/blueprints/GLO_outputDetailMail.js +0 -13
  155. package/dist/blueprints/GLO_postalcode.d.ts +0 -6
  156. package/dist/blueprints/GLO_postalcode.js +0 -6
  157. package/dist/blueprints/GLO_priceDependency.d.ts +0 -5
  158. package/dist/blueprints/GLO_priceDependency.js +0 -4
  159. package/dist/blueprints/GLO_priceEntry.d.ts +0 -17
  160. package/dist/blueprints/GLO_priceEntry.js +0 -17
  161. package/dist/blueprints/GLO_priceRequest.d.ts +0 -8
  162. package/dist/blueprints/GLO_priceRequest.js +0 -20
  163. package/dist/blueprints/GLO_priceRequestLine.d.ts +0 -12
  164. package/dist/blueprints/GLO_priceRequestLine.js +0 -17
  165. package/dist/blueprints/GLO_principal.d.ts +0 -9
  166. package/dist/blueprints/GLO_principal.js +0 -13
  167. package/dist/blueprints/GLO_printPopup.d.ts +0 -10
  168. package/dist/blueprints/GLO_printPopup.js +0 -62
  169. package/dist/blueprints/GLO_production.d.ts +0 -9
  170. package/dist/blueprints/GLO_production.js +0 -9
  171. package/dist/blueprints/GLO_productionLineMaterial.d.ts +0 -8
  172. package/dist/blueprints/GLO_productionLineMaterial.js +0 -13
  173. package/dist/blueprints/GLO_productionMaterial.d.ts +0 -5
  174. package/dist/blueprints/GLO_productionMaterial.js +0 -5
  175. package/dist/blueprints/GLO_purchaseCosts.d.ts +0 -6
  176. package/dist/blueprints/GLO_purchaseCosts.js +0 -9
  177. package/dist/blueprints/GLO_purchaseInvoice.d.ts +0 -12
  178. package/dist/blueprints/GLO_purchaseInvoice.js +0 -25
  179. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +0 -8
  180. package/dist/blueprints/GLO_purchaseInvoiceLine.js +0 -13
  181. package/dist/blueprints/GLO_purchaseOrder.d.ts +0 -14
  182. package/dist/blueprints/GLO_purchaseOrder.js +0 -25
  183. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +0 -10
  184. package/dist/blueprints/GLO_purchaseOrderLine.js +0 -24
  185. package/dist/blueprints/GLO_purchasePrices.d.ts +0 -10
  186. package/dist/blueprints/GLO_purchasePrices.js +0 -10
  187. package/dist/blueprints/GLO_quotation.d.ts +0 -12
  188. package/dist/blueprints/GLO_quotation.js +0 -32
  189. package/dist/blueprints/GLO_quotationLine.d.ts +0 -12
  190. package/dist/blueprints/GLO_quotationLine.js +0 -28
  191. package/dist/blueprints/GLO_receipt.d.ts +0 -13
  192. package/dist/blueprints/GLO_receipt.js +0 -17
  193. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +0 -8
  194. package/dist/blueprints/GLO_receiptFromTempReceipt.js +0 -8
  195. package/dist/blueprints/GLO_receiptLine.d.ts +0 -22
  196. package/dist/blueprints/GLO_receiptLine.js +0 -28
  197. package/dist/blueprints/GLO_relationAddress.d.ts +0 -26
  198. package/dist/blueprints/GLO_relationAddress.js +0 -58
  199. package/dist/blueprints/GLO_relationBankAccount.d.ts +0 -9
  200. package/dist/blueprints/GLO_relationBankAccount.js +0 -9
  201. package/dist/blueprints/GLO_relationContact.d.ts +0 -23
  202. package/dist/blueprints/GLO_relationContact.js +0 -45
  203. package/dist/blueprints/GLO_relationGroupType.d.ts +0 -7
  204. package/dist/blueprints/GLO_relationGroupType.js +0 -6
  205. package/dist/blueprints/GLO_relations.d.ts +0 -67
  206. package/dist/blueprints/GLO_relations.js +0 -186
  207. package/dist/blueprints/GLO_relationtype.d.ts +0 -15
  208. package/dist/blueprints/GLO_relationtype.js +0 -31
  209. package/dist/blueprints/GLO_remarkType.d.ts +0 -10
  210. package/dist/blueprints/GLO_remarkType.js +0 -9
  211. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +0 -4
  212. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +0 -14
  213. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +0 -10
  214. package/dist/blueprints/GLO_remarkTypeEntityType.js +0 -9
  215. package/dist/blueprints/GLO_representative.d.ts +0 -7
  216. package/dist/blueprints/GLO_representative.js +0 -6
  217. package/dist/blueprints/GLO_salesInvoice.d.ts +0 -9
  218. package/dist/blueprints/GLO_salesInvoice.js +0 -15
  219. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +0 -9
  220. package/dist/blueprints/GLO_salesInvoiceLine.js +0 -13
  221. package/dist/blueprints/GLO_salesOrder.d.ts +0 -13
  222. package/dist/blueprints/GLO_salesOrder.js +0 -25
  223. package/dist/blueprints/GLO_salesOrderLine.d.ts +0 -13
  224. package/dist/blueprints/GLO_salesOrderLine.js +0 -34
  225. package/dist/blueprints/GLO_stockCorrection.d.ts +0 -14
  226. package/dist/blueprints/GLO_stockCorrection.js +0 -24
  227. package/dist/blueprints/GLO_stopSchedule.d.ts +0 -4
  228. package/dist/blueprints/GLO_stopSchedule.js +0 -4
  229. package/dist/blueprints/GLO_supplierArticle.d.ts +0 -8
  230. package/dist/blueprints/GLO_supplierArticle.js +0 -8
  231. package/dist/blueprints/GLO_tclSetting.d.ts +0 -6
  232. package/dist/blueprints/GLO_tclSetting.js +0 -6
  233. package/dist/blueprints/GLO_todo.d.ts +0 -10
  234. package/dist/blueprints/GLO_todo.js +0 -21
  235. package/dist/blueprints/GLO_todoSchedule.d.ts +0 -23
  236. package/dist/blueprints/GLO_todoSchedule.js +0 -79
  237. package/dist/blueprints/GLO_tractionDistance.d.ts +0 -6
  238. package/dist/blueprints/GLO_tractionDistance.js +0 -6
  239. package/dist/blueprints/GLO_transportOrder.d.ts +0 -4
  240. package/dist/blueprints/GLO_transportOrder.js +0 -4
  241. package/dist/blueprints/GLO_transportPrice.d.ts +0 -18
  242. package/dist/blueprints/GLO_transportPrice.js +0 -34
  243. package/dist/blueprints/GLO_transportRequirement.d.ts +0 -18
  244. package/dist/blueprints/GLO_transportRequirement.js +0 -32
  245. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +0 -8
  246. package/dist/blueprints/GLO_transportRequirementContainer.js +0 -8
  247. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +0 -33
  248. package/dist/blueprints/GLO_transportRequirementGoods.js +0 -51
  249. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +0 -6
  250. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +0 -6
  251. package/dist/blueprints/GLO_transportStock.d.ts +0 -4
  252. package/dist/blueprints/GLO_transportStock.js +0 -4
  253. package/dist/blueprints/GLO_visit.d.ts +0 -9
  254. package/dist/blueprints/GLO_visit.js +0 -10
  255. package/dist/blueprints/GLO_warehouseMove.d.ts +0 -9
  256. package/dist/blueprints/GLO_warehouseMove.js +0 -9
  257. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +0 -6
  258. package/dist/blueprints/GLO_warehouseOrderSubline.js +0 -11
  259. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +0 -20
  260. package/dist/blueprints/GLO_workflowLoggingTable.js +0 -20
  261. package/dist/blueprints/GLO_workflowVerification.d.ts +0 -10
  262. package/dist/blueprints/GLO_workflowVerification.js +0 -19
  263. package/dist/blueprints/GLO_zone.d.ts +0 -9
  264. package/dist/blueprints/GLO_zone.js +0 -9
  265. package/dist/blueprints/GLO_zone_postalcode.d.ts +0 -12
  266. package/dist/blueprints/GLO_zone_postalcode.js +0 -10
  267. package/dist/blueprints/GLO_zone_type.d.ts +0 -8
  268. package/dist/blueprints/GLO_zone_type.js +0 -7
  269. package/dist/blueprints/GLT_goods.d.ts +0 -2
  270. package/dist/blueprints/GLT_goods.js +0 -12
  271. package/dist/commands/FOB_commands.d.ts +0 -124
  272. package/dist/commands/FOB_commands.js +0 -211
  273. package/dist/commands/GLJ_commands.d.ts +0 -28
  274. package/dist/commands/GLJ_commands.js +0 -40
  275. package/dist/commands/GLO_commands.d.ts +0 -685
  276. package/dist/commands/GLO_commands.js +0 -2315
  277. package/dist/commands/GLS_commands.d.ts +0 -63
  278. package/dist/commands/GLS_commands.js +0 -103
  279. package/dist/commands/GLT_commands.d.ts +0 -78
  280. package/dist/commands/GLT_commands.js +0 -148
  281. package/dist/commands/POR_commands.d.ts +0 -85
  282. package/dist/commands/POR_commands.js +0 -122
  283. package/dist/config.d.ts +0 -9
  284. package/dist/config.js +0 -115
  285. package/dist/index.d.ts +0 -2
  286. package/dist/index.js +0 -15
  287. package/dist/plugins/prometheusWriter.d.ts +0 -15
  288. package/dist/plugins/prometheusWriter.js +0 -111
  289. package/dist/register.d.ts +0 -8
  290. package/dist/register.js +0 -23
  291. package/dist/tsHelper.d.ts +0 -161
  292. package/dist/tsHelper.js +0 -294
  293. package/dist/types.d.ts +0 -363
  294. package/dist/types.js +0 -4
  295. package/dist/websocketDetector.d.ts +0 -71
  296. package/dist/websocketDetector.js +0 -1593
@@ -1,186 +0,0 @@
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
- };
@@ -1,15 +0,0 @@
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;
@@ -1,31 +0,0 @@
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
- };
@@ -1,10 +0,0 @@
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;
@@ -1,9 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export type objRemarkTypeDefaultValue = {
2
- translations?: string;
3
- };
4
- export declare const GLO_enterRemarkTypeDefaultValue: (obj: objRemarkTypeDefaultValue) => void;
@@ -1,14 +0,0 @@
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
- };
@@ -1,10 +0,0 @@
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;
@@ -1,9 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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;
@@ -1,6 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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;
@@ -1,15 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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;
@@ -1,13 +0,0 @@
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
- };
@@ -1,13 +0,0 @@
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;
@@ -1,25 +0,0 @@
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
- };
@@ -1,13 +0,0 @@
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;
@@ -1,34 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
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;
@@ -1,24 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export type objStopSchedule = {
2
- code?: string;
3
- };
4
- export declare const GLO_enterStopSchedule: (obj: objStopSchedule) => void;
@@ -1,4 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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;
@@ -1,8 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- export type objTclSettings = {
2
- transportModality?: string;
3
- plugIn?: string;
4
- engineRunning?: string;
5
- };
6
- export declare const GLO_enterTclSettings: (obj: objTclSettings) => void;
@@ -1,6 +0,0 @@
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
- };
@@ -1,10 +0,0 @@
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;
@@ -1,21 +0,0 @@
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
- };
@@ -1,23 +0,0 @@
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 {};