@globisnv/cypress-core 0.0.1

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 (308) hide show
  1. package/README.md +255 -0
  2. package/bin/create-customer-repo.mjs +89 -0
  3. package/biome.json +49 -0
  4. package/dist/apiMethods/IGS_request.d.ts +98 -0
  5. package/dist/apiMethods/IGS_request.js +161 -0
  6. package/dist/apiMethods/IGS_response.d.ts +47 -0
  7. package/dist/apiMethods/IGS_response.js +1 -0
  8. package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
  9. package/dist/blueprints/GLO_addressPopup.js +96 -0
  10. package/dist/blueprints/GLO_article.d.ts +45 -0
  11. package/dist/blueprints/GLO_article.js +110 -0
  12. package/dist/blueprints/GLO_articleLot.d.ts +12 -0
  13. package/dist/blueprints/GLO_articleLot.js +23 -0
  14. package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
  15. package/dist/blueprints/GLO_articleVersion.js +4 -0
  16. package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
  17. package/dist/blueprints/GLO_attachmentPopup.js +10 -0
  18. package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
  19. package/dist/blueprints/GLO_bankAccount.js +7 -0
  20. package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
  21. package/dist/blueprints/GLO_billingProcess.js +4 -0
  22. package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
  23. package/dist/blueprints/GLO_billingProposal.js +9 -0
  24. package/dist/blueprints/GLO_cancel.d.ts +7 -0
  25. package/dist/blueprints/GLO_cancel.js +7 -0
  26. package/dist/blueprints/GLO_commandlist.d.ts +10 -0
  27. package/dist/blueprints/GLO_commandlist.js +10 -0
  28. package/dist/blueprints/GLO_complaint.d.ts +27 -0
  29. package/dist/blueprints/GLO_complaint.js +51 -0
  30. package/dist/blueprints/GLO_composition.d.ts +14 -0
  31. package/dist/blueprints/GLO_composition.js +20 -0
  32. package/dist/blueprints/GLO_consignment.d.ts +61 -0
  33. package/dist/blueprints/GLO_consignment.js +104 -0
  34. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
  35. package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
  36. package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
  37. package/dist/blueprints/GLO_consignmentGoods.js +62 -0
  38. package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
  39. package/dist/blueprints/GLO_consignmentHandling.js +4 -0
  40. package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
  41. package/dist/blueprints/GLO_consignmentOrder.js +37 -0
  42. package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
  43. package/dist/blueprints/GLO_consignmentPart.js +13 -0
  44. package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
  45. package/dist/blueprints/GLO_consignmentParts.js +12 -0
  46. package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
  47. package/dist/blueprints/GLO_consignmentPrice.js +19 -0
  48. package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
  49. package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
  50. package/dist/blueprints/GLO_contacts.d.ts +10 -0
  51. package/dist/blueprints/GLO_contacts.js +14 -0
  52. package/dist/blueprints/GLO_container.d.ts +6 -0
  53. package/dist/blueprints/GLO_container.js +4 -0
  54. package/dist/blueprints/GLO_contract.d.ts +22 -0
  55. package/dist/blueprints/GLO_contract.js +30 -0
  56. package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
  57. package/dist/blueprints/GLO_contractArticle.js +35 -0
  58. package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
  59. package/dist/blueprints/GLO_contractArticleCost.js +8 -0
  60. package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
  61. package/dist/blueprints/GLO_countryVatZone.js +9 -0
  62. package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
  63. package/dist/blueprints/GLO_currencyDeviation.js +15 -0
  64. package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
  65. package/dist/blueprints/GLO_customerArticle.js +15 -0
  66. package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
  67. package/dist/blueprints/GLO_customsFlow.js +19 -0
  68. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
  69. package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
  70. package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
  71. package/dist/blueprints/GLO_customsUnion.js +4 -0
  72. package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
  73. package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
  74. package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
  75. package/dist/blueprints/GLO_departureSchedule.js +57 -0
  76. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
  77. package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
  78. package/dist/blueprints/GLO_document.d.ts +7 -0
  79. package/dist/blueprints/GLO_document.js +7 -0
  80. package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
  81. package/dist/blueprints/GLO_documentAttachment.js +4 -0
  82. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
  83. package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
  84. package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
  85. package/dist/blueprints/GLO_documentGroup.js +4 -0
  86. package/dist/blueprints/GLO_documentType.d.ts +12 -0
  87. package/dist/blueprints/GLO_documentType.js +11 -0
  88. package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
  89. package/dist/blueprints/GLO_enterCountry.js +47 -0
  90. package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
  91. package/dist/blueprints/GLO_enterDiscount.js +9 -0
  92. package/dist/blueprints/GLO_equipment.d.ts +34 -0
  93. package/dist/blueprints/GLO_equipment.js +55 -0
  94. package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
  95. package/dist/blueprints/GLO_equipmentCategory.js +14 -0
  96. package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
  97. package/dist/blueprints/GLO_equipmentEntity.js +5 -0
  98. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
  99. package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
  100. package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
  101. package/dist/blueprints/GLO_equipmentType.js +20 -0
  102. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
  103. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
  104. package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
  105. package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
  106. package/dist/blueprints/GLO_formula.d.ts +9 -0
  107. package/dist/blueprints/GLO_formula.js +9 -0
  108. package/dist/blueprints/GLO_gang.d.ts +12 -0
  109. package/dist/blueprints/GLO_gang.js +12 -0
  110. package/dist/blueprints/GLO_holiday.d.ts +7 -0
  111. package/dist/blueprints/GLO_holiday.js +8 -0
  112. package/dist/blueprints/GLO_journey.d.ts +18 -0
  113. package/dist/blueprints/GLO_journey.js +24 -0
  114. package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
  115. package/dist/blueprints/GLO_journeyStop.js +44 -0
  116. package/dist/blueprints/GLO_layout.d.ts +6 -0
  117. package/dist/blueprints/GLO_layout.js +6 -0
  118. package/dist/blueprints/GLO_logging.d.ts +9 -0
  119. package/dist/blueprints/GLO_logging.js +12 -0
  120. package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
  121. package/dist/blueprints/GLO_logisticConnection.js +11 -0
  122. package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
  123. package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
  124. package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
  125. package/dist/blueprints/GLO_logisticContract.js +80 -0
  126. package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
  127. package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
  128. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
  129. package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
  130. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
  131. package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
  132. package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
  133. package/dist/blueprints/GLO_logisticContractItem.js +40 -0
  134. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
  135. package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
  136. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
  137. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
  138. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
  139. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
  140. package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
  141. package/dist/blueprints/GLO_logisticContractReference.js +4 -0
  142. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
  143. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
  144. package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
  145. package/dist/blueprints/GLO_logisticLocation.js +7 -0
  146. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
  147. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
  148. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
  149. package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
  150. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
  151. package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
  152. package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
  153. package/dist/blueprints/GLO_operationalDefault.js +25 -0
  154. package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
  155. package/dist/blueprints/GLO_outputDetailMail.js +13 -0
  156. package/dist/blueprints/GLO_postalcode.d.ts +6 -0
  157. package/dist/blueprints/GLO_postalcode.js +6 -0
  158. package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
  159. package/dist/blueprints/GLO_priceDependency.js +4 -0
  160. package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
  161. package/dist/blueprints/GLO_priceEntry.js +17 -0
  162. package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
  163. package/dist/blueprints/GLO_priceRequest.js +20 -0
  164. package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
  165. package/dist/blueprints/GLO_priceRequestLine.js +17 -0
  166. package/dist/blueprints/GLO_principal.d.ts +9 -0
  167. package/dist/blueprints/GLO_principal.js +13 -0
  168. package/dist/blueprints/GLO_printPopup.d.ts +10 -0
  169. package/dist/blueprints/GLO_printPopup.js +62 -0
  170. package/dist/blueprints/GLO_production.d.ts +9 -0
  171. package/dist/blueprints/GLO_production.js +9 -0
  172. package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
  173. package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
  174. package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
  175. package/dist/blueprints/GLO_productionMaterial.js +5 -0
  176. package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
  177. package/dist/blueprints/GLO_purchaseCosts.js +9 -0
  178. package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
  179. package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
  180. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
  181. package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
  182. package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
  183. package/dist/blueprints/GLO_purchaseOrder.js +25 -0
  184. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
  185. package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
  186. package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
  187. package/dist/blueprints/GLO_purchasePrices.js +10 -0
  188. package/dist/blueprints/GLO_quotation.d.ts +12 -0
  189. package/dist/blueprints/GLO_quotation.js +32 -0
  190. package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
  191. package/dist/blueprints/GLO_quotationLine.js +28 -0
  192. package/dist/blueprints/GLO_receipt.d.ts +13 -0
  193. package/dist/blueprints/GLO_receipt.js +17 -0
  194. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
  195. package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
  196. package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
  197. package/dist/blueprints/GLO_receiptLine.js +28 -0
  198. package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
  199. package/dist/blueprints/GLO_relationAddress.js +58 -0
  200. package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
  201. package/dist/blueprints/GLO_relationBankAccount.js +9 -0
  202. package/dist/blueprints/GLO_relationContact.d.ts +23 -0
  203. package/dist/blueprints/GLO_relationContact.js +45 -0
  204. package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
  205. package/dist/blueprints/GLO_relationGroupType.js +6 -0
  206. package/dist/blueprints/GLO_relations.d.ts +67 -0
  207. package/dist/blueprints/GLO_relations.js +186 -0
  208. package/dist/blueprints/GLO_relationtype.d.ts +15 -0
  209. package/dist/blueprints/GLO_relationtype.js +31 -0
  210. package/dist/blueprints/GLO_remarkType.d.ts +10 -0
  211. package/dist/blueprints/GLO_remarkType.js +9 -0
  212. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
  213. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
  214. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
  215. package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
  216. package/dist/blueprints/GLO_representative.d.ts +7 -0
  217. package/dist/blueprints/GLO_representative.js +6 -0
  218. package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
  219. package/dist/blueprints/GLO_salesInvoice.js +15 -0
  220. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
  221. package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
  222. package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
  223. package/dist/blueprints/GLO_salesOrder.js +25 -0
  224. package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
  225. package/dist/blueprints/GLO_salesOrderLine.js +34 -0
  226. package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
  227. package/dist/blueprints/GLO_stockCorrection.js +24 -0
  228. package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
  229. package/dist/blueprints/GLO_stopSchedule.js +4 -0
  230. package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
  231. package/dist/blueprints/GLO_supplierArticle.js +8 -0
  232. package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
  233. package/dist/blueprints/GLO_tclSetting.js +6 -0
  234. package/dist/blueprints/GLO_todo.d.ts +10 -0
  235. package/dist/blueprints/GLO_todo.js +21 -0
  236. package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
  237. package/dist/blueprints/GLO_todoSchedule.js +79 -0
  238. package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
  239. package/dist/blueprints/GLO_tractionDistance.js +6 -0
  240. package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
  241. package/dist/blueprints/GLO_transportOrder.js +4 -0
  242. package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
  243. package/dist/blueprints/GLO_transportPrice.js +34 -0
  244. package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
  245. package/dist/blueprints/GLO_transportRequirement.js +32 -0
  246. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
  247. package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
  248. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
  249. package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
  250. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
  251. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
  252. package/dist/blueprints/GLO_transportStock.d.ts +4 -0
  253. package/dist/blueprints/GLO_transportStock.js +4 -0
  254. package/dist/blueprints/GLO_visit.d.ts +9 -0
  255. package/dist/blueprints/GLO_visit.js +10 -0
  256. package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
  257. package/dist/blueprints/GLO_warehouseMove.js +9 -0
  258. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
  259. package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
  260. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
  261. package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
  262. package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
  263. package/dist/blueprints/GLO_workflowVerification.js +19 -0
  264. package/dist/blueprints/GLO_zone.d.ts +9 -0
  265. package/dist/blueprints/GLO_zone.js +9 -0
  266. package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
  267. package/dist/blueprints/GLO_zone_postalcode.js +10 -0
  268. package/dist/blueprints/GLO_zone_type.d.ts +8 -0
  269. package/dist/blueprints/GLO_zone_type.js +7 -0
  270. package/dist/blueprints/GLT_goods.d.ts +2 -0
  271. package/dist/blueprints/GLT_goods.js +12 -0
  272. package/dist/commands/FOB_commands.d.ts +124 -0
  273. package/dist/commands/FOB_commands.js +211 -0
  274. package/dist/commands/GLJ_commands.d.ts +28 -0
  275. package/dist/commands/GLJ_commands.js +40 -0
  276. package/dist/commands/GLO_commands.d.ts +685 -0
  277. package/dist/commands/GLO_commands.js +2315 -0
  278. package/dist/commands/GLS_commands.d.ts +63 -0
  279. package/dist/commands/GLS_commands.js +103 -0
  280. package/dist/commands/GLT_commands.d.ts +78 -0
  281. package/dist/commands/GLT_commands.js +148 -0
  282. package/dist/commands/POR_commands.d.ts +85 -0
  283. package/dist/commands/POR_commands.js +122 -0
  284. package/dist/config.d.ts +9 -0
  285. package/dist/config.js +115 -0
  286. package/dist/index.d.ts +2 -0
  287. package/dist/index.js +15 -0
  288. package/dist/plugins/prometheusWriter.d.ts +15 -0
  289. package/dist/plugins/prometheusWriter.js +111 -0
  290. package/dist/register.d.ts +8 -0
  291. package/dist/register.js +23 -0
  292. package/dist/tsHelper.d.ts +161 -0
  293. package/dist/tsHelper.js +294 -0
  294. package/dist/types.d.ts +363 -0
  295. package/dist/types.js +4 -0
  296. package/dist/websocketDetector.d.ts +71 -0
  297. package/dist/websocketDetector.js +1593 -0
  298. package/package.json +58 -0
  299. package/scripts/check-unnecessary-waiting.mjs +119 -0
  300. package/template/CODEOWNERS +20 -0
  301. package/template/biome.json +7 -0
  302. package/template/cypress/e2e/__CUSTOMER__/template.cy.ts.example +18 -0
  303. package/template/cypress/support/e2e.ts +21 -0
  304. package/template/cypress/support/record.mjs +46 -0
  305. package/template/cypress.config.ts +3 -0
  306. package/template/cypress.env.json.example +24 -0
  307. package/template/package.json +20 -0
  308. package/template/tsconfig.json +11 -0
@@ -0,0 +1,80 @@
1
+ import { close, input, open } from '../tsHelper.js';
2
+ export const GLO_enterLogisticContract = (obj) => {
3
+ const formName = 'ng$logistic_contract_dtl';
4
+ const tabs = 'tabs_70';
5
+ cy.GLO_addInput([formName, 'logistic_contract_type_code'], obj.type);
6
+ cy.GLO_popupWindow([formName, 'logistic_contract_subtype_code'], obj.subType, 'logistic_contract_subtype_code');
7
+ cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
8
+ cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTill);
9
+ cy.GLO_addInput([formName, 'description'], obj.description);
10
+ cy.GLO_addInput([formName, 'currency_id'], obj.currency);
11
+ cy.GLO_addInput([formName, 'general_contract_type'], obj.generalContractType);
12
+ cy.GLO_checkbox([formName, 'flag_spot_contract'], obj.flagSpotContract);
13
+ cy.GLO_checkbox([formName, 'flag_general_contract'], obj.flagGeneralContract);
14
+ if (obj.branch) {
15
+ cy.GLO_addInput([formName, 'sec_branch_id'], obj.branch);
16
+ cy.GLO_checkLoadingIndicator();
17
+ }
18
+ if (obj.department) {
19
+ cy.GLO_addInput([formName, 'sec_department_id'], obj.department);
20
+ cy.GLO_checkLoadingIndicator();
21
+ }
22
+ if (obj.businessUnit) {
23
+ cy.GLO_addInput([formName, 'business_unit_id'], obj.businessUnit);
24
+ cy.GLO_checkLoadingIndicator();
25
+ }
26
+ // General Tab
27
+ if (obj.supplierCode) {
28
+ cy.GLO_selectTab([formName, tabs], 'General', open);
29
+ generalTab(obj);
30
+ cy.GLO_selectTab([formName, tabs], 'General', close);
31
+ }
32
+ // Pricing tab
33
+ if (obj.flagDefWaitingHoursProofRequired !== undefined || obj.defWaitingHoursThreshold) {
34
+ cy.GLO_selectTab([formName, tabs], 'Pricing', open);
35
+ pricingTab(obj);
36
+ cy.GLO_selectTab([formName, tabs], 'Pricing', close);
37
+ }
38
+ // User role tab
39
+ if (obj.keyAccountManager || obj.accountManager) {
40
+ cy.GLO_selectTab([formName, tabs], 'User role', open);
41
+ userRoleTab(obj);
42
+ cy.GLO_selectTab([formName, tabs], 'User role', close);
43
+ }
44
+ // Billing (turnover)
45
+ if (obj.flagAutomatedInvoice || obj.flagDirectInvoice || obj.flagElectronicInvoice || obj.flagMergeInvoiceAndPOD || obj.flagSummaryInvoice || obj.dayForAutomaticInvoicing) {
46
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Billing (turnover)', open);
47
+ billingTurnoverTab(obj);
48
+ cy.GLO_selectTab([formName, tabs], 'Billing (turnover)', close);
49
+ }
50
+ };
51
+ // Billing tab
52
+ const billingTurnoverTab = (obj) => {
53
+ const formNameBilingTurnover = 'ng$logistic_contract_dtl_invoicing_turnover';
54
+ cy.GLO_checkbox([formNameBilingTurnover, 'flag_direct_invoice'], obj.flagDirectInvoice);
55
+ cy.GLO_checkbox([formNameBilingTurnover, 'flag_automated_invoice'], obj.flagAutomatedInvoice);
56
+ cy.GLO_checkbox([formNameBilingTurnover, 'flag_merge_inv_pod'], obj.flagMergeInvoiceAndPOD);
57
+ cy.GLO_checkbox([formNameBilingTurnover, 'flag_electronic_invoice'], obj.flagElectronicInvoice);
58
+ cy.GLO_checkbox([formNameBilingTurnover, 'flag_summary_invoice'], obj.flagSummaryInvoice);
59
+ cy.GLO_addInput([formNameBilingTurnover, 'def_automated_invoice_days'], obj.dayForAutomaticInvoicing);
60
+ };
61
+ // User role tab
62
+ const userRoleTab = (obj) => {
63
+ const formNameUserRoles = 'ng$logistic_contract_dtl_user_roles';
64
+ cy.GLO_addInput([formNameUserRoles, 'key_account_manager_id'], obj.keyAccountManager);
65
+ cy.GLO_addInput([formNameUserRoles, 'account_manager'], obj.accountManager);
66
+ };
67
+ // General tab
68
+ const generalTab = (obj) => {
69
+ const formNameGeneral = 'ng$logistic_contract_dtl_general';
70
+ if (obj.supplierCode) {
71
+ cy.GLO_popupWindow([formNameGeneral, 'relation_code'], obj.supplierCode);
72
+ cy.GLO_checkLoadingIndicator();
73
+ }
74
+ };
75
+ // Pricing tab
76
+ const pricingTab = (obj) => {
77
+ const formNamePricing = 'ng$logistic_contract_dtl_billing';
78
+ cy.GLO_checkbox([formNamePricing, 'flag_def_waiting_hours_proof_required'], obj.flagDefWaitingHoursProofRequired);
79
+ cy.GLO_addInput([formNamePricing, 'def_waiting_hours_threshold'], obj.defWaitingHoursThreshold);
80
+ };
@@ -0,0 +1,42 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ import { type objTclSettings } from './GLO_tclSetting.js';
3
+ export type objLogisticContractDetail = {
4
+ detailType?: string;
5
+ from?: string | JQuery;
6
+ to?: string | JQuery;
7
+ fromCountry?: string;
8
+ toCountry?: string;
9
+ fromZone?: string;
10
+ toZone?: string;
11
+ fromAddressCode?: string;
12
+ toAddressCode?: string;
13
+ leadTime?: string;
14
+ laneType?: string;
15
+ truckLoad?: string;
16
+ equipmentType?: string;
17
+ preferreRequired?: string;
18
+ transportMethod?: string;
19
+ group1?: string;
20
+ flagDirectInvoice?: CheckState;
21
+ flagElectronicInvoice?: CheckState;
22
+ flagPaperInvoice?: CheckState;
23
+ priceBreakUnit?: string;
24
+ logisticConnection?: string;
25
+ leadTimePrefReq?: string;
26
+ priceBreakOptimization?: string;
27
+ priceRule?: string;
28
+ fromAddressType?: string;
29
+ toAddressType?: string;
30
+ branch?: string;
31
+ department?: string;
32
+ planBloc?: string;
33
+ businessUnit?: string;
34
+ tcl?: CheckState;
35
+ theftSensitive?: CheckState;
36
+ flagLoadSecuringEquipment?: CheckState;
37
+ tclSettings?: [objTclSettings];
38
+ collectionSupplier?: string;
39
+ equipmentCategory?: string;
40
+ article?: string;
41
+ };
42
+ export declare const GLO_enterLogisticContractDetail: (obj: objLogisticContractDetail) => void;
@@ -0,0 +1,122 @@
1
+ import { check, close, open } from '../tsHelper.js';
2
+ import { GLO_enterTclSettings } from './GLO_tclSetting.js';
3
+ const formName = 'ng$logistic_contract_detail_dtl';
4
+ const formNameAddress = 'ng$logistic_contract_detail_dtl_address';
5
+ const formNameBilling = 'ng$logistic_contract_detail_dtl_invoicing';
6
+ const formNameOperational = 'ng$logistic_contract_detail_dtl_operational';
7
+ const formNameLaneConditions = 'ng$logistic_contract_detail_dtl_lane_conditions';
8
+ const formNamePricing = 'ng$logistic_contract_detail_dtl_billing';
9
+ const tabs = 'tabs_70';
10
+ export const GLO_enterLogisticContractDetail = (obj) => {
11
+ cy.GLO_addInput([formName, 'logistic_contract_detail_type'], obj.detailType);
12
+ cy.GLO_popupWindow([formName, 'local_logistic_conn_code'], obj.logisticConnection);
13
+ cy.GLO_addInput([formName, 'price_rule_logistic_contract_detail_id'], obj.priceRule);
14
+ cy.GLO_addInput([formName, 'sec_branch_id'], obj.branch);
15
+ if (obj.branch)
16
+ cy.GLO_checkLoadingIndicator();
17
+ cy.GLO_addInput([formName, 'sec_department_id'], obj.department);
18
+ if (obj.department)
19
+ cy.GLO_checkLoadingIndicator();
20
+ cy.GLO_addInput([formName, 'plan_bloc'], obj.planBloc);
21
+ cy.GLO_addInput([formName, 'business_unit_id'], obj.businessUnit);
22
+ if (obj.businessUnit)
23
+ cy.GLO_checkLoadingIndicator();
24
+ cy.GLO_checkbox([formName, 'flag_tcl_required'], obj.tcl);
25
+ // Tab Address data
26
+ GLO_enterLogisticContractDetailAddressData(obj);
27
+ // Tab Address
28
+ GLO_enterLogisticContractDetailAddresses(obj);
29
+ // Tab billing
30
+ GLO_enterLogisticContractDetailBilling(obj);
31
+ // Tab Operational
32
+ GLO_enterLogisticContractDetailOperational(obj);
33
+ // Tab Pricing
34
+ GLO_enterLogisticContractDetailPricing(obj);
35
+ // Tab Lane conditions
36
+ GLO_enterLogisticContractDetailLaneCondition(obj);
37
+ // Tab TCL settings
38
+ GLO_enterTclSettingsTab(obj);
39
+ };
40
+ const GLO_enterLogisticContractDetailAddresses = (obj) => {
41
+ if (obj.fromZone || obj.toZone || obj.fromAddressType || obj.toAddressType) {
42
+ cy.GLO_selectTab([formName, tabs], 'Address', open);
43
+ if (obj.from === 'Country')
44
+ cy.GLO_checkbox([formNameBilling, 'flag_direct_invoice'], check);
45
+ if (obj.to === 'Country')
46
+ cy.GLO_checkbox([formNameBilling, 'flag_direct_invoice'], check);
47
+ cy.GLO_radioButton([formNameAddress, 'from_address_data_type'], obj.fromAddressType);
48
+ cy.GLO_radioButton([formNameAddress, 'to_address_data_type'], obj.toAddressType);
49
+ cy.GLO_addInput([formNameAddress, 'from_country_code'], obj.fromCountry);
50
+ cy.GLO_addInput([formNameAddress, 'to_country_code'], obj.toCountry);
51
+ cy.GLO_addInput([formNameAddress, 'from_zone_id'], obj.fromZone);
52
+ cy.GLO_addInput([formNameAddress, 'to_zone_id'], obj.toZone);
53
+ cy.GLO_addInput([formNameAddress, 'from_address'], obj.fromAddressCode);
54
+ cy.GLO_addInput([formNameAddress, 'to_address'], obj.toAddressCode);
55
+ cy.GLO_selectTab([formName, tabs], 'Address', close);
56
+ }
57
+ };
58
+ const GLO_enterLogisticContractDetailAddressData = (obj) => {
59
+ if (obj.from || obj.to) {
60
+ cy.GLO_selectTab([formName, tabs], 'Address data', open);
61
+ cy.GLO_radioListCData([formNameAddress, 'from_address_data_type'], obj.from);
62
+ cy.GLO_radioListCData([formNameAddress, 'to_address_data_type'], obj.to);
63
+ cy.GLO_addInput([formNameAddress, 'from_country_code'], obj.fromCountry);
64
+ cy.GLO_addInput([formNameAddress, 'to_country_code'], obj.toCountry);
65
+ cy.GLO_selectTab([formName, tabs], 'Address data', close);
66
+ }
67
+ };
68
+ const GLO_enterLogisticContractDetailBilling = (obj) => {
69
+ if (obj.flagDirectInvoice || obj.flagElectronicInvoice || obj.flagPaperInvoice) {
70
+ cy.GLO_selectTab([formName, tabs], 'Billing', open);
71
+ cy.GLO_checkbox([formNameBilling, 'flag_direct_invoice'], obj.flagDirectInvoice);
72
+ cy.GLO_checkbox([formNameBilling, 'flag_paper_invoice'], obj.flagPaperInvoice);
73
+ cy.GLO_checkbox([formNameBilling, 'flag_electronic_invoice'], obj.flagElectronicInvoice);
74
+ cy.GLO_selectTab([formName, tabs], 'Billing', close);
75
+ }
76
+ };
77
+ const GLO_enterLogisticContractDetailOperational = (obj) => {
78
+ if (obj.leadTime || obj.leadTimePrefReq || obj.collectionSupplier || obj.flagLoadSecuringEquipment) {
79
+ cy.GLO_selectTab([formName, tabs], 'Operational', open);
80
+ cy.GLO_addInput([formNameOperational, 'leadtime_id'], obj.leadTime);
81
+ cy.GLO_addInput([formNameOperational, 'lead_time_pref_req'], obj.leadTimePrefReq);
82
+ cy.GLO_popupWindow([formNameOperational, 'collection_supplier_id'], obj.collectionSupplier);
83
+ cy.GLO_checkbox([formNameOperational, 'flag_load_securing_equipment'], obj.flagLoadSecuringEquipment);
84
+ cy.GLO_selectTab([formName, tabs], 'Operational', close);
85
+ }
86
+ };
87
+ const GLO_enterLogisticContractDetailPricing = (obj) => {
88
+ if (obj.group1 || obj.priceBreakUnit || obj.priceBreakOptimization) {
89
+ cy.GLO_selectTab([formName, tabs], 'Pricing', open);
90
+ cy.GLO_addInput([formNamePricing, 'pricing_group_1'], obj.group1);
91
+ cy.GLO_addInput([formNamePricing, 'price_articleunit_id'], obj.priceBreakUnit);
92
+ cy.GLO_addInput([formNamePricing, 'price_break_optimization'], obj.priceBreakOptimization);
93
+ cy.GLO_selectTab([formName, tabs], 'Pricing', close);
94
+ }
95
+ };
96
+ const GLO_enterLogisticContractDetailLaneCondition = (obj) => {
97
+ if (obj.laneType || obj.truckLoad || obj.equipmentType || obj.preferreRequired || obj.transportMethod || obj.theftSensitive || obj.equipmentCategory || obj.article) {
98
+ cy.GLO_selectTab([formName, tabs], 'Lane conditions', open);
99
+ cy.GLO_addInput([formNameLaneConditions, 'lane_type'], obj.laneType);
100
+ cy.GLO_addInput([formNameLaneConditions, 'truck_load'], obj.truckLoad);
101
+ cy.GLO_addInput([formNameLaneConditions, 'equipment_type'], obj.equipmentType);
102
+ cy.GLO_addInput([formNameLaneConditions, 'equipment_type_pref_req'], obj.preferreRequired);
103
+ cy.GLO_addInput([formNameLaneConditions, 'transport_method'], obj.transportMethod);
104
+ cy.GLO_checkbox([formNameLaneConditions, 'flag_theft_sensitive'], obj.theftSensitive);
105
+ cy.GLO_addInput([formNameLaneConditions, 'equipment_category'], obj.equipmentCategory);
106
+ cy.GLO_popupWindow([formNameLaneConditions, 'article'], obj.article);
107
+ cy.GLO_selectTab([formName, tabs], 'Lane conditions', close);
108
+ }
109
+ };
110
+ const GLO_enterTclSettingsTab = (obj) => {
111
+ const formNameTclSettingTab = 'ng$logistic_contract_detail_dtl_tcl_settings';
112
+ const formNameTclSettingDlg = 'ng$logistic_contract_detail_transport_method_tcl_dlg';
113
+ if (obj.tclSettings) {
114
+ cy.GLO_selectTab([formName, tabs], 'TCL settings', open);
115
+ obj.tclSettings.forEach((tclSetting) => {
116
+ cy.GLO_clickButton([formNameTclSettingTab, 'btn_add'], 'fa-plus');
117
+ GLO_enterTclSettings(tclSetting);
118
+ cy.GLO_clickButton([formNameTclSettingDlg, 'btn_ok']);
119
+ });
120
+ cy.GLO_selectTab([formName, tabs], 'TCL settings', close);
121
+ }
122
+ };
@@ -0,0 +1,11 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ import { type objAddressPopup } from './GLO_addressPopup.js';
3
+ export type objLogisticContractDetailHandling = {
4
+ addressDataType?: 'Country' | 'Zones' | 'Postalcode range' | 'Single postalcode/town' | 'Single address' | 'Logistic location';
5
+ countryCode?: string;
6
+ singleAddress?: objAddressPopup;
7
+ timeActivity?: string;
8
+ flagCollection?: CheckState;
9
+ flagDelivery?: CheckState;
10
+ };
11
+ export declare const GLO_enterLogisticContractDetailHandling: (obj: objLogisticContractDetailHandling) => void;
@@ -0,0 +1,14 @@
1
+ import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
2
+ export const GLO_enterLogisticContractDetailHandling = (obj) => {
3
+ const formName = 'ng$logistic_contract_detail_handling_dtl';
4
+ const formNameAddress = 'ng$logistic_contract_detail_handling_dtl_address';
5
+ cy.GLO_addInput([formName, 'time_activity_id'], obj.timeActivity);
6
+ cy.GLO_checkbox([formNameAddress, 'flag_collection'], obj.flagCollection);
7
+ cy.GLO_checkbox([formNameAddress, 'flag_delivery'], obj.flagDelivery);
8
+ cy.GLO_radioListCData([formNameAddress, 'address_data_type'], obj.addressDataType);
9
+ cy.GLO_addInput([formNameAddress, 'country_code'], obj.countryCode);
10
+ if (obj.singleAddress) {
11
+ cy.GLO_clickButton([formNameAddress, 'address_id'], 'fa-search-plus');
12
+ GLO_enterAddressPopup(obj.singleAddress);
13
+ }
14
+ };
@@ -0,0 +1,5 @@
1
+ export type objLogisticContractDetailItem = {
2
+ logisticContractItemCode?: string;
3
+ invoiceRelation?: string;
4
+ };
5
+ export declare const GLO_enterLogisticContractDetailItem: (obj: objLogisticContractDetailItem) => void;
@@ -0,0 +1,8 @@
1
+ export const GLO_enterLogisticContractDetailItem = (obj) => {
2
+ const formName = 'ng$logistic_contract_detail_item_dtl';
3
+ cy.GLO_popupWindow([formName, 'logistic_contract_item_id'], obj.logisticContractItemCode);
4
+ cy.GLO_addInput([formName, 'invoice_relation_id'], obj.invoiceRelation);
5
+ if (obj.invoiceRelation) {
6
+ cy.GLO_checkLoadingIndicator();
7
+ }
8
+ };
@@ -0,0 +1,14 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objLogisticContractItem = {
3
+ articleCode?: string;
4
+ branch?: string;
5
+ department?: string;
6
+ businessUnit?: string;
7
+ flagProformaInvoice?: CheckState;
8
+ priceRule?: string;
9
+ invoiceRelation?: string;
10
+ priceLogisticContract?: string;
11
+ indexLogisticContract?: string;
12
+ invoiceLogisticContractItem?: string;
13
+ };
14
+ export declare const GLO_enterLogisticContractItem: (obj: objLogisticContractItem) => void;
@@ -0,0 +1,40 @@
1
+ import { open } from '../tsHelper.js';
2
+ export const GLO_enterLogisticContractItem = (obj) => {
3
+ const formName = 'ng$logistic_contract_item_dtl';
4
+ const generalFormName = 'ng$logistic_contract_item_dtl_general';
5
+ cy.GLO_addInput([formName, 'article_code'], obj.articleCode);
6
+ if (obj.articleCode)
7
+ cy.GLO_checkLoadingIndicator();
8
+ cy.GLO_addInput([formName, 'sec_branch_id'], obj.branch);
9
+ if (obj.branch)
10
+ cy.GLO_checkLoadingIndicator();
11
+ cy.GLO_addInput([formName, 'sec_department_id'], obj.department);
12
+ if (obj.department)
13
+ cy.GLO_checkLoadingIndicator();
14
+ cy.GLO_addInput([formName, 'business_unit_id'], obj.businessUnit);
15
+ if (obj.businessUnit)
16
+ cy.GLO_checkLoadingIndicator();
17
+ cy.GLO_addInput([formName, 'price_rule_id'], obj.priceRule);
18
+ cy.GLO_addInput([formName, 'price_logistic_contract_id'], obj.priceLogisticContract);
19
+ if (obj.priceLogisticContract)
20
+ cy.GLO_checkLoadingIndicator();
21
+ cy.GLO_addInput([formName, 'index_logistic_contract_id'], obj.indexLogisticContract);
22
+ if (obj.indexLogisticContract)
23
+ cy.GLO_checkLoadingIndicator();
24
+ // General tab - invoice relation and invoice logistic contract reference
25
+ if (obj.invoiceRelation || obj.invoiceLogisticContractItem) {
26
+ cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
27
+ cy.GLO_addInput([generalFormName, 'invoice_relation_code'], obj.invoiceRelation);
28
+ if (obj.invoiceRelation) {
29
+ cy.GLO_checkLoadingIndicator();
30
+ }
31
+ cy.GLO_addInput([generalFormName, 'invoice_logistic_contract_item_id'], obj.invoiceLogisticContractItem);
32
+ if (obj.invoiceLogisticContractItem) {
33
+ cy.GLO_checkLoadingIndicator();
34
+ }
35
+ }
36
+ if (obj.flagProformaInvoice) {
37
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Billing', open);
38
+ cy.GLO_checkbox(['ng$logistic_contract_item_dtl_invoicing', 'flag_proforma_invoice'], obj.flagProformaInvoice);
39
+ }
40
+ };
@@ -0,0 +1,4 @@
1
+ export type objLogisticContractItemActivity = {
2
+ activityCode?: string;
3
+ };
4
+ export declare const GLO_enterLogisticContractItemActivity: (obj: objLogisticContractItemActivity) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterLogisticContractItemActivity = (obj) => {
2
+ const formName = 'ng$logistic_contract_item_activity_dtl';
3
+ cy.GLO_addInput([formName, 'time_activity_code'], obj.activityCode);
4
+ };
@@ -0,0 +1,7 @@
1
+ export type objLogisticContractItemSurcharge = {
2
+ articleCode?: string;
3
+ priceType?: string;
4
+ surchargeBase?: string;
5
+ value?: number;
6
+ };
7
+ export declare const GLO_enterLogisticContractItemSurcharge: (obj: objLogisticContractItemSurcharge) => void;
@@ -0,0 +1,7 @@
1
+ export const GLO_enterLogisticContractItemSurcharge = (obj) => {
2
+ const formName = 'ng$logistic_contract_item_surcharge_dtl';
3
+ cy.GLO_addInput([formName, 'article_code'], obj.articleCode);
4
+ cy.GLO_addInput([formName, 'price_type'], obj.priceType);
5
+ cy.GLO_addInput([formName, 'index_base_value'], obj.surchargeBase);
6
+ cy.GLO_addInput([formName, 'value'], obj.value);
7
+ };
@@ -0,0 +1,4 @@
1
+ export type objLogisticContractItemSurchargeItem = {
2
+ articleCode?: string;
3
+ };
4
+ export declare const GLO_enterLogisticContractItemSurchargeItem: (obj: objLogisticContractItemSurchargeItem) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterLogisticContractItemSurchargeItem = (obj) => {
2
+ const formName = 'ng$logistic_contract_item_surcharge_item_dtl';
3
+ cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode);
4
+ };
@@ -0,0 +1,4 @@
1
+ export type objLogisticContractReference = {
2
+ blanketPurchaseOrderNr?: string | JQuery;
3
+ };
4
+ export declare const GLO_enterLogisticContractReference: (obj: objLogisticContractReference) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterLogisticContractReference = (obj) => {
2
+ const formName = 'ng$logistic_contract_reference_dtl';
3
+ cy.GLO_addInput([formName, 'blanket_purchase_order_id'], obj.blanketPurchaseOrderNr);
4
+ };
@@ -0,0 +1,9 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objLogisticContractVolumeConstraint = {
3
+ fromCountry?: string;
4
+ toCountry?: string;
5
+ period?: string;
6
+ limit?: string;
7
+ flagActive?: CheckState;
8
+ };
9
+ export declare const GLO_enterLogisticContractVolumeConstraint: (obj: objLogisticContractVolumeConstraint) => void;
@@ -0,0 +1,8 @@
1
+ export const GLO_enterLogisticContractVolumeConstraint = (obj) => {
2
+ const formName = 'ng$logistic_contract_volume_constraint_dtl';
3
+ cy.GLO_popupWindow([formName, 'from_country_id'], obj.fromCountry);
4
+ cy.GLO_popupWindow([formName, 'to_country_id'], obj.toCountry);
5
+ cy.GLO_addInput([formName, 'period'], obj.period);
6
+ cy.GLO_addInput([formName, 'limit'], obj.limit);
7
+ cy.GLO_checkbox([formName, 'flag_active'], obj.flagActive);
8
+ };
@@ -0,0 +1,7 @@
1
+ export type objLogisticLocation = {
2
+ locationCode?: string;
3
+ locationName?: string;
4
+ LogisticLocationType?: string;
5
+ country?: string;
6
+ };
7
+ export declare const GLO_enterLogisticLocation: (obj: objLogisticLocation) => void;
@@ -0,0 +1,7 @@
1
+ export const GLO_enterLogisticLocation = (obj) => {
2
+ const formName = 'ng$logistic_location_dtl';
3
+ cy.GLO_addInput([formName, 'logistic_location_code'], obj.locationCode);
4
+ cy.GLO_addInput([formName, 'logistic_location_name'], obj.locationName);
5
+ cy.GLO_addInput([formName, 'logistic_location_type_id'], obj.LogisticLocationType);
6
+ cy.GLO_popupWindow([formName, 'logistic_location_country_id'], obj.country);
7
+ };
@@ -0,0 +1,19 @@
1
+ export type objLogisticPriceRequestDetailExternalPrice = {
2
+ articleCode?: string;
3
+ price?: number;
4
+ articleUnitCode?: string;
5
+ priceUnitCode?: string;
6
+ relationCode?: string;
7
+ containerTypeSubType?: string;
8
+ quantity?: number;
9
+ handling?: string;
10
+ goods?: string;
11
+ logisticContainer?: string;
12
+ priceArticleCode?: string;
13
+ currencyCode?: string;
14
+ pricePer?: number;
15
+ externalPlatformRelationCode?: string;
16
+ remark?: string;
17
+ };
18
+ export declare const GLO_enterlogisticPriceRequestDetailExternalPriceDialog: (obj: objLogisticPriceRequestDetailExternalPrice) => void;
19
+ export declare const GLO_enterLogisticPriceRequestDetailExternalPrice: (obj: objLogisticPriceRequestDetailExternalPrice) => void;
@@ -0,0 +1,30 @@
1
+ export const GLO_enterlogisticPriceRequestDetailExternalPriceDialog = (obj) => {
2
+ const formName = 'ng$add_logistic_price_request_detail_external_price_dlg';
3
+ cy.GLO_addInput([formName, 'relation_id'], obj.relationCode);
4
+ cy.GLO_addInput([formName, 'handling'], obj.handling);
5
+ cy.GLO_addInput([formName, 'container_subtype'], obj.containerTypeSubType);
6
+ cy.GLO_addInput([formName, 'logistic_container'], obj.logisticContainer);
7
+ cy.GLO_addInput([formName, 'local_article_code'], obj.articleCode);
8
+ cy.GLO_addInput([formName, 'quantity'], obj.quantity);
9
+ cy.GLO_addInput([formName, 'price'], obj.price);
10
+ cy.GLO_addInput([formName, 'articleunit_id'], obj.articleUnitCode);
11
+ cy.GLO_addInput([formName, 'price_per_unit_id'], obj.priceUnitCode);
12
+ cy.GLO_clickButton([formName, 'btn_add']);
13
+ };
14
+ export const GLO_enterLogisticPriceRequestDetailExternalPrice = (obj) => {
15
+ const formName = 'ng$logistic_price_request_detail_external_price_dtl';
16
+ cy.GLO_addInput([formName, 'handling'], obj.handling);
17
+ cy.GLO_addInput([formName, 'goods'], obj.goods);
18
+ cy.GLO_popupWindow([formName, 'article'], obj.articleCode);
19
+ cy.GLO_addInput([formName, 'logistic_container'], obj.logisticContainer);
20
+ cy.GLO_addInput([formName, 'container_subtype'], obj.containerTypeSubType);
21
+ cy.GLO_popupWindow([formName, 'price_article'], obj.priceArticleCode);
22
+ cy.GLO_addInput([formName, 'quantity'], obj.quantity);
23
+ cy.GLO_addInput([formName, 'articleunit_id'], obj.articleUnitCode);
24
+ cy.GLO_addInput([formName, 'price'], obj.price);
25
+ cy.GLO_addInput([formName, 'currency_code'], obj.currencyCode);
26
+ cy.GLO_addInput([formName, 'price_per'], obj.pricePer);
27
+ cy.GLO_addInput([formName, 'price_per_unit_id'], obj.priceUnitCode);
28
+ cy.GLO_addInput([formName, 'external_platform_relation_code'], obj.externalPlatformRelationCode);
29
+ cy.GLO_addInput([formName, 'remark'], obj.remark);
30
+ };
@@ -0,0 +1,4 @@
1
+ export type objLogisticPurchaseOrder = {
2
+ invoiceRelation?: string;
3
+ };
4
+ export declare const GLO_enterLogisticPurchaseOrder: (obj: objLogisticPurchaseOrder) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterLogisticPurchaseOrder = (obj) => {
2
+ const formName = 'ng$logistic_purchase_order_dtl';
3
+ cy.GLO_addInput([formName, 'invoice_relation'], obj.invoiceRelation);
4
+ };
@@ -0,0 +1,6 @@
1
+ export type objLogisticWaitingHours = {
2
+ timeActivityCodeId?: string;
3
+ logisticContrctItemId?: string;
4
+ waitingHours?: string;
5
+ };
6
+ export declare const GLO_enterLogisticWaitingHours: (obj: objLogisticWaitingHours) => void;
@@ -0,0 +1,6 @@
1
+ const formName = 'ng$logistic_waiting_hours_dtl';
2
+ export const GLO_enterLogisticWaitingHours = (obj) => {
3
+ cy.GLO_popupWindow([formName, 'logistic_contract_item_id'], obj.logisticContrctItemId);
4
+ cy.GLO_addInput([formName, 'time_activity_code_id'], obj.timeActivityCodeId);
5
+ cy.GLO_addInput([formName, 'waiting_hours'], obj.waitingHours);
6
+ };
@@ -0,0 +1,23 @@
1
+ import { type objAddressPopup } from './GLO_addressPopup.js';
2
+ type AddressType = 'Country' | 'Postalcode range' | 'Zones' | 'Single address' | 'Logistic location';
3
+ export type objOperationalDefault = {
4
+ company?: string;
5
+ orderByCode?: string;
6
+ description?: string;
7
+ validFrom?: string;
8
+ score?: number;
9
+ ownerName?: string;
10
+ address?: {
11
+ fromType?: AddressType;
12
+ toType?: AddressType;
13
+ fromCountry?: string;
14
+ toCountry?: string;
15
+ fromPostalFrom?: number;
16
+ fromPostalTo?: number;
17
+ toAddressCodePick?: objAddressPopup;
18
+ fromZone?: string;
19
+ toLogisticLocation?: string;
20
+ };
21
+ };
22
+ export declare const GLO_enterOperationalDefault: (args: objOperationalDefault) => void;
23
+ export {};
@@ -0,0 +1,25 @@
1
+ import { input, open } from '../tsHelper.js';
2
+ import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
3
+ const formNameOperationalDefault = 'ng$operational_default_dtl';
4
+ const formNameOperationalDefaultAddress = `${formNameOperationalDefault}_address`;
5
+ export const GLO_enterOperationalDefault = (args) => {
6
+ cy.GLO_addInput([formNameOperationalDefault, 'company'], args.company);
7
+ cy.GLO_popupWindow([formNameOperationalDefault, 'order_by_relation_code'], args.orderByCode);
8
+ cy.GLO_popupWindow([formNameOperationalDefault, 'responsible_user'], args.ownerName);
9
+ cy.GLO_addInput([formNameOperationalDefault, 'description'], args.description);
10
+ cy.GLO_addDate(input, [formNameOperationalDefault, 'valid_from'], args.validFrom);
11
+ cy.GLO_addInput([formNameOperationalDefault, 'score_manual'], args.score);
12
+ cy.GLO_selectTab([formNameOperationalDefault, 'tabs_70'], 'Addresses', open);
13
+ cy.GLO_radioListCData([formNameOperationalDefaultAddress, 'from_address_data_type'], args.address.fromType);
14
+ cy.GLO_radioListCData([formNameOperationalDefaultAddress, 'to_address_data_type'], args.address.toType);
15
+ cy.GLO_addInput([formNameOperationalDefaultAddress, 'from_country_code'], args.address.fromCountry);
16
+ cy.GLO_addInput([formNameOperationalDefaultAddress, 'to_country_code'], args.address.toCountry);
17
+ cy.GLO_addInput([formNameOperationalDefaultAddress, 'from_postalcoderangefrom'], args.address.fromPostalFrom);
18
+ cy.GLO_addInput([formNameOperationalDefaultAddress, 'from_postalcoderangeto'], args.address.fromPostalTo);
19
+ if (args.address.toAddressCodePick) {
20
+ cy.GLO_clickButton([formNameOperationalDefaultAddress, 'to_address'], 'fa-search-plus');
21
+ GLO_enterAddressPopup(args.address.toAddressCodePick);
22
+ }
23
+ cy.GLO_addInput([formNameOperationalDefaultAddress, 'from_zone_id'], args.address.fromZone);
24
+ cy.GLO_addInput([formNameOperationalDefaultAddress, 'to_logistic_location'], args.address.toLogisticLocation);
25
+ };
@@ -0,0 +1,14 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objMail = {
3
+ mailFrom?: string;
4
+ mailTo?: string;
5
+ mailCc?: string;
6
+ mailBcc?: string;
7
+ mailSubject?: string;
8
+ mailMessage?: string;
9
+ checkSendAsSeperate?: CheckState;
10
+ checkIsEnabled?: CheckState;
11
+ checkIsDefault?: CheckState;
12
+ language?: string;
13
+ };
14
+ export declare const GLO_enterMail: (obj: objMail) => void;
@@ -0,0 +1,13 @@
1
+ export const GLO_enterMail = (obj) => {
2
+ const formName = 'ng$mail_output_dtl';
3
+ cy.GLO_addInput([formName, 'mail_from'], obj.mailFrom);
4
+ cy.GLO_addInput([formName, 'mail_to'], obj.mailTo);
5
+ cy.GLO_addInput([formName, 'mail_cc'], obj.mailCc);
6
+ cy.GLO_addInput([formName, 'mail_bcc'], obj.mailBcc);
7
+ cy.GLO_addInput([formName, 'subject'], obj.mailSubject);
8
+ cy.GLO_addInput([formName, 'mail_message'], obj.mailMessage);
9
+ cy.GLO_checkbox([formName, 'send_as_separate_mail'], obj.checkSendAsSeperate);
10
+ cy.GLO_checkbox([formName, 'is_enabled'], obj.checkIsEnabled);
11
+ cy.GLO_checkbox([formName, 'is_default'], obj.checkIsDefault);
12
+ cy.GLO_addInput([formName, 'language_code_selected'], obj.language);
13
+ };
@@ -0,0 +1,6 @@
1
+ export type objPostalcode = {
2
+ country?: string;
3
+ PC?: string;
4
+ city?: string;
5
+ };
6
+ export declare const GLO_enterPostalcode: (obj: objPostalcode) => void;
@@ -0,0 +1,6 @@
1
+ export const GLO_enterPostalcode = (obj) => {
2
+ const formName = 'ng$postalcode_dtl';
3
+ cy.GLO_addInput([formName, 'country_id'], obj.country);
4
+ cy.GLO_addInput([formName, 'city'], obj.city);
5
+ cy.GLO_addInput([formName, 'postalcode'], obj.PC);
6
+ };
@@ -0,0 +1,5 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objPriceDependency = {
3
+ readOnly?: CheckState;
4
+ };
5
+ export declare const GLO_enterPriceDependency: (obj: objPriceDependency) => void;
@@ -0,0 +1,4 @@
1
+ const formName = 'ng$price_dependency_dtl';
2
+ export const GLO_enterPriceDependency = (obj) => {
3
+ cy.GLO_checkbox([formName, 'flag_readonly'], obj.readOnly);
4
+ };