@globisnv/cypress-core 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/README.md +12 -7
  2. package/dist/apiMethods/IGS_request.d.ts +98 -0
  3. package/dist/apiMethods/IGS_request.js +161 -0
  4. package/dist/apiMethods/IGS_response.d.ts +47 -0
  5. package/dist/apiMethods/IGS_response.js +1 -0
  6. package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
  7. package/dist/blueprints/GLO_addressPopup.js +96 -0
  8. package/dist/blueprints/GLO_article.d.ts +45 -0
  9. package/dist/blueprints/GLO_article.js +110 -0
  10. package/dist/blueprints/GLO_articleLot.d.ts +12 -0
  11. package/dist/blueprints/GLO_articleLot.js +23 -0
  12. package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
  13. package/dist/blueprints/GLO_articleVersion.js +4 -0
  14. package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
  15. package/dist/blueprints/GLO_attachmentPopup.js +10 -0
  16. package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
  17. package/dist/blueprints/GLO_bankAccount.js +7 -0
  18. package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
  19. package/dist/blueprints/GLO_billingProcess.js +4 -0
  20. package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
  21. package/dist/blueprints/GLO_billingProposal.js +9 -0
  22. package/dist/blueprints/GLO_cancel.d.ts +7 -0
  23. package/dist/blueprints/GLO_cancel.js +7 -0
  24. package/dist/blueprints/GLO_commandlist.d.ts +10 -0
  25. package/dist/blueprints/GLO_commandlist.js +10 -0
  26. package/dist/blueprints/GLO_complaint.d.ts +27 -0
  27. package/dist/blueprints/GLO_complaint.js +51 -0
  28. package/dist/blueprints/GLO_composition.d.ts +14 -0
  29. package/dist/blueprints/GLO_composition.js +20 -0
  30. package/dist/blueprints/GLO_consignment.d.ts +61 -0
  31. package/dist/blueprints/GLO_consignment.js +104 -0
  32. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
  33. package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
  34. package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
  35. package/dist/blueprints/GLO_consignmentGoods.js +62 -0
  36. package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
  37. package/dist/blueprints/GLO_consignmentHandling.js +4 -0
  38. package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
  39. package/dist/blueprints/GLO_consignmentOrder.js +37 -0
  40. package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
  41. package/dist/blueprints/GLO_consignmentPart.js +13 -0
  42. package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
  43. package/dist/blueprints/GLO_consignmentParts.js +12 -0
  44. package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
  45. package/dist/blueprints/GLO_consignmentPrice.js +19 -0
  46. package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
  47. package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
  48. package/dist/blueprints/GLO_contacts.d.ts +10 -0
  49. package/dist/blueprints/GLO_contacts.js +14 -0
  50. package/dist/blueprints/GLO_container.d.ts +6 -0
  51. package/dist/blueprints/GLO_container.js +4 -0
  52. package/dist/blueprints/GLO_contract.d.ts +22 -0
  53. package/dist/blueprints/GLO_contract.js +30 -0
  54. package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
  55. package/dist/blueprints/GLO_contractArticle.js +35 -0
  56. package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
  57. package/dist/blueprints/GLO_contractArticleCost.js +8 -0
  58. package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
  59. package/dist/blueprints/GLO_countryVatZone.js +9 -0
  60. package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
  61. package/dist/blueprints/GLO_currencyDeviation.js +15 -0
  62. package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
  63. package/dist/blueprints/GLO_customerArticle.js +15 -0
  64. package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
  65. package/dist/blueprints/GLO_customsFlow.js +19 -0
  66. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
  67. package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
  68. package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
  69. package/dist/blueprints/GLO_customsUnion.js +4 -0
  70. package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
  71. package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
  72. package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
  73. package/dist/blueprints/GLO_departureSchedule.js +57 -0
  74. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
  75. package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
  76. package/dist/blueprints/GLO_document.d.ts +7 -0
  77. package/dist/blueprints/GLO_document.js +7 -0
  78. package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
  79. package/dist/blueprints/GLO_documentAttachment.js +4 -0
  80. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
  81. package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
  82. package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
  83. package/dist/blueprints/GLO_documentGroup.js +4 -0
  84. package/dist/blueprints/GLO_documentType.d.ts +12 -0
  85. package/dist/blueprints/GLO_documentType.js +11 -0
  86. package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
  87. package/dist/blueprints/GLO_enterCountry.js +47 -0
  88. package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
  89. package/dist/blueprints/GLO_enterDiscount.js +9 -0
  90. package/dist/blueprints/GLO_equipment.d.ts +34 -0
  91. package/dist/blueprints/GLO_equipment.js +55 -0
  92. package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
  93. package/dist/blueprints/GLO_equipmentCategory.js +14 -0
  94. package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
  95. package/dist/blueprints/GLO_equipmentEntity.js +5 -0
  96. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
  97. package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
  98. package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
  99. package/dist/blueprints/GLO_equipmentType.js +20 -0
  100. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
  101. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
  102. package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
  103. package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
  104. package/dist/blueprints/GLO_formula.d.ts +9 -0
  105. package/dist/blueprints/GLO_formula.js +9 -0
  106. package/dist/blueprints/GLO_gang.d.ts +12 -0
  107. package/dist/blueprints/GLO_gang.js +12 -0
  108. package/dist/blueprints/GLO_holiday.d.ts +7 -0
  109. package/dist/blueprints/GLO_holiday.js +8 -0
  110. package/dist/blueprints/GLO_journey.d.ts +18 -0
  111. package/dist/blueprints/GLO_journey.js +24 -0
  112. package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
  113. package/dist/blueprints/GLO_journeyStop.js +44 -0
  114. package/dist/blueprints/GLO_layout.d.ts +6 -0
  115. package/dist/blueprints/GLO_layout.js +6 -0
  116. package/dist/blueprints/GLO_logging.d.ts +9 -0
  117. package/dist/blueprints/GLO_logging.js +12 -0
  118. package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
  119. package/dist/blueprints/GLO_logisticConnection.js +11 -0
  120. package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
  121. package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
  122. package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
  123. package/dist/blueprints/GLO_logisticContract.js +80 -0
  124. package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
  125. package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
  126. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
  127. package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
  128. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
  129. package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
  130. package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
  131. package/dist/blueprints/GLO_logisticContractItem.js +40 -0
  132. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
  133. package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
  134. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
  135. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
  136. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
  137. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
  138. package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
  139. package/dist/blueprints/GLO_logisticContractReference.js +4 -0
  140. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
  141. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
  142. package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
  143. package/dist/blueprints/GLO_logisticLocation.js +7 -0
  144. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
  145. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
  146. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
  147. package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
  148. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
  149. package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
  150. package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
  151. package/dist/blueprints/GLO_operationalDefault.js +25 -0
  152. package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
  153. package/dist/blueprints/GLO_outputDetailMail.js +13 -0
  154. package/dist/blueprints/GLO_postalcode.d.ts +6 -0
  155. package/dist/blueprints/GLO_postalcode.js +6 -0
  156. package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
  157. package/dist/blueprints/GLO_priceDependency.js +4 -0
  158. package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
  159. package/dist/blueprints/GLO_priceEntry.js +17 -0
  160. package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
  161. package/dist/blueprints/GLO_priceRequest.js +20 -0
  162. package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
  163. package/dist/blueprints/GLO_priceRequestLine.js +17 -0
  164. package/dist/blueprints/GLO_principal.d.ts +9 -0
  165. package/dist/blueprints/GLO_principal.js +13 -0
  166. package/dist/blueprints/GLO_printPopup.d.ts +10 -0
  167. package/dist/blueprints/GLO_printPopup.js +62 -0
  168. package/dist/blueprints/GLO_production.d.ts +9 -0
  169. package/dist/blueprints/GLO_production.js +9 -0
  170. package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
  171. package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
  172. package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
  173. package/dist/blueprints/GLO_productionMaterial.js +5 -0
  174. package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
  175. package/dist/blueprints/GLO_purchaseCosts.js +9 -0
  176. package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
  177. package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
  178. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
  179. package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
  180. package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
  181. package/dist/blueprints/GLO_purchaseOrder.js +25 -0
  182. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
  183. package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
  184. package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
  185. package/dist/blueprints/GLO_purchasePrices.js +10 -0
  186. package/dist/blueprints/GLO_quotation.d.ts +12 -0
  187. package/dist/blueprints/GLO_quotation.js +32 -0
  188. package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
  189. package/dist/blueprints/GLO_quotationLine.js +28 -0
  190. package/dist/blueprints/GLO_receipt.d.ts +13 -0
  191. package/dist/blueprints/GLO_receipt.js +17 -0
  192. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
  193. package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
  194. package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
  195. package/dist/blueprints/GLO_receiptLine.js +28 -0
  196. package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
  197. package/dist/blueprints/GLO_relationAddress.js +58 -0
  198. package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
  199. package/dist/blueprints/GLO_relationBankAccount.js +9 -0
  200. package/dist/blueprints/GLO_relationContact.d.ts +23 -0
  201. package/dist/blueprints/GLO_relationContact.js +45 -0
  202. package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
  203. package/dist/blueprints/GLO_relationGroupType.js +6 -0
  204. package/dist/blueprints/GLO_relations.d.ts +67 -0
  205. package/dist/blueprints/GLO_relations.js +186 -0
  206. package/dist/blueprints/GLO_relationtype.d.ts +15 -0
  207. package/dist/blueprints/GLO_relationtype.js +31 -0
  208. package/dist/blueprints/GLO_remarkType.d.ts +10 -0
  209. package/dist/blueprints/GLO_remarkType.js +9 -0
  210. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
  211. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
  212. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
  213. package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
  214. package/dist/blueprints/GLO_representative.d.ts +7 -0
  215. package/dist/blueprints/GLO_representative.js +6 -0
  216. package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
  217. package/dist/blueprints/GLO_salesInvoice.js +15 -0
  218. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
  219. package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
  220. package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
  221. package/dist/blueprints/GLO_salesOrder.js +25 -0
  222. package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
  223. package/dist/blueprints/GLO_salesOrderLine.js +34 -0
  224. package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
  225. package/dist/blueprints/GLO_stockCorrection.js +24 -0
  226. package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
  227. package/dist/blueprints/GLO_stopSchedule.js +4 -0
  228. package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
  229. package/dist/blueprints/GLO_supplierArticle.js +8 -0
  230. package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
  231. package/dist/blueprints/GLO_tclSetting.js +6 -0
  232. package/dist/blueprints/GLO_todo.d.ts +10 -0
  233. package/dist/blueprints/GLO_todo.js +21 -0
  234. package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
  235. package/dist/blueprints/GLO_todoSchedule.js +79 -0
  236. package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
  237. package/dist/blueprints/GLO_tractionDistance.js +6 -0
  238. package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
  239. package/dist/blueprints/GLO_transportOrder.js +4 -0
  240. package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
  241. package/dist/blueprints/GLO_transportPrice.js +34 -0
  242. package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
  243. package/dist/blueprints/GLO_transportRequirement.js +32 -0
  244. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
  245. package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
  246. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
  247. package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
  248. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
  249. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
  250. package/dist/blueprints/GLO_transportStock.d.ts +4 -0
  251. package/dist/blueprints/GLO_transportStock.js +4 -0
  252. package/dist/blueprints/GLO_visit.d.ts +9 -0
  253. package/dist/blueprints/GLO_visit.js +10 -0
  254. package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
  255. package/dist/blueprints/GLO_warehouseMove.js +9 -0
  256. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
  257. package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
  258. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
  259. package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
  260. package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
  261. package/dist/blueprints/GLO_workflowVerification.js +19 -0
  262. package/dist/blueprints/GLO_zone.d.ts +9 -0
  263. package/dist/blueprints/GLO_zone.js +9 -0
  264. package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
  265. package/dist/blueprints/GLO_zone_postalcode.js +10 -0
  266. package/dist/blueprints/GLO_zone_type.d.ts +8 -0
  267. package/dist/blueprints/GLO_zone_type.js +7 -0
  268. package/dist/blueprints/GLT_goods.d.ts +2 -0
  269. package/dist/blueprints/GLT_goods.js +12 -0
  270. package/dist/commands/FOB_commands.d.ts +124 -0
  271. package/dist/commands/FOB_commands.js +211 -0
  272. package/dist/commands/GLJ_commands.d.ts +28 -0
  273. package/dist/commands/GLJ_commands.js +40 -0
  274. package/dist/commands/GLO_commands.d.ts +685 -0
  275. package/dist/commands/GLO_commands.js +2319 -0
  276. package/dist/commands/GLS_commands.d.ts +63 -0
  277. package/dist/commands/GLS_commands.js +103 -0
  278. package/dist/commands/GLT_commands.d.ts +78 -0
  279. package/dist/commands/GLT_commands.js +148 -0
  280. package/dist/commands/POR_commands.d.ts +85 -0
  281. package/dist/commands/POR_commands.js +122 -0
  282. package/dist/config.d.ts +9 -0
  283. package/dist/config.js +115 -0
  284. package/dist/index.d.ts +2 -0
  285. package/dist/index.js +15 -0
  286. package/dist/plugins/prometheusWriter.d.ts +15 -0
  287. package/dist/plugins/prometheusWriter.js +111 -0
  288. package/dist/register.d.ts +8 -0
  289. package/dist/register.js +23 -0
  290. package/dist/tsHelper.d.ts +161 -0
  291. package/dist/tsHelper.js +294 -0
  292. package/dist/types.d.ts +363 -0
  293. package/dist/types.js +4 -0
  294. package/dist/websocketDetector.d.ts +71 -0
  295. package/dist/websocketDetector.js +1593 -0
  296. package/package.json +10 -2
  297. package/template/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { select } from '../tsHelper.js';
2
+ export const GLO_createGang = (obj) => {
3
+ cy.GLO_addInput(['gang_status'], obj.status);
4
+ cy.GLO_addInput(['gang_type_code'], obj.type);
5
+ cy.GLO_addInput(['terminal'], obj.terminal);
6
+ cy.GLO_addInput(['warehouse'], obj.warehouse);
7
+ cy.GLO_addInput(['foreman_user_id'], obj.foreman);
8
+ cy.GLO_addInput(['description'], obj.description);
9
+ cy.GLO_addInput(['tallyman_user_id'], obj.tallyman);
10
+ cy.GLO_addDate(select, ['ng$gang_dtl', 'shift_date'], obj.shiftDate);
11
+ cy.GLO_addInput(['calendarday_segment_id'], obj.calendarDay);
12
+ };
@@ -0,0 +1,7 @@
1
+ export type objHoliday = {
2
+ country?: string;
3
+ date?: string;
4
+ description?: string;
5
+ company?: string;
6
+ };
7
+ export declare const GLO_enterHoliday: (obj: objHoliday) => void;
@@ -0,0 +1,8 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterHoliday = (obj) => {
3
+ const formName = 'ng$holidays_dtl';
4
+ cy.GLO_addInput([formName, 'country_id'], obj.country);
5
+ cy.GLO_addDate(input, [formName, 'holiday_date'], obj.date);
6
+ cy.GLO_addInput([formName, 'description'], obj.description);
7
+ cy.GLO_addInput([formName, 'company_id'], obj.company);
8
+ };
@@ -0,0 +1,18 @@
1
+ export type objJourney = {
2
+ journeyCode?: string;
3
+ transportMethod?: string;
4
+ equipment?: string;
5
+ agentCode?: string;
6
+ shippingAgentCode?: string;
7
+ agentReference?: string;
8
+ journeyNr?: string;
9
+ activityType?: string;
10
+ handlingStart?: string;
11
+ handlingEnd?: string;
12
+ volume?: number;
13
+ volumeUnit?: string;
14
+ grossWeight?: number;
15
+ grossWeightUnit?: string;
16
+ loadingMeters?: number;
17
+ };
18
+ export declare const GLO_enterJourney: (obj: objJourney) => void;
@@ -0,0 +1,24 @@
1
+ import { close, input, open } from '../tsHelper.js';
2
+ export const GLO_enterJourney = (obj) => {
3
+ const formName = 'ng$journey_dtl';
4
+ const quantitiesFormName = 'ng$journey_dtl_quantitites';
5
+ cy.GLO_addInput([formName, 'journey_code'], obj.journeyCode);
6
+ cy.GLO_addInput([formName, 'journey_nr'], obj.journeyNr);
7
+ cy.GLO_addInput([formName, 'transport_method'], obj.transportMethod);
8
+ cy.GLO_popupWindow([formName, 'equipment_id'], obj.equipment);
9
+ cy.GLO_addInput([formName, 'agent'], obj.agentCode);
10
+ cy.GLO_addInput([formName, 'shipping_agent'], obj.shippingAgentCode);
11
+ cy.GLO_addInput([formName, 'agent_reference'], obj.agentReference);
12
+ cy.GLO_addInput([formName, 'time_activity_type'], obj.activityType);
13
+ cy.GLO_addDate(input, [formName, 'start_handling'], obj.handlingStart);
14
+ cy.GLO_addDate(input, [formName, 'end_handling'], obj.handlingEnd);
15
+ if (obj.volume || obj.volumeUnit || obj.grossWeight || obj.grossWeightUnit || obj.loadingMeters) {
16
+ cy.GLO_selectTab([formName, 'tabs'], 'Quantities', open);
17
+ cy.GLO_addInput([quantitiesFormName, 'capacity_volume'], obj.volume);
18
+ cy.GLO_addInput([quantitiesFormName, 'capacity_volume_unit_id'], obj.volumeUnit);
19
+ cy.GLO_addInput([quantitiesFormName, 'capcacity_gross_weight'], obj.grossWeight);
20
+ cy.GLO_addInput([quantitiesFormName, 'capacity_gross_weight_unit_id'], obj.grossWeightUnit);
21
+ cy.GLO_addInput([quantitiesFormName, 'capacity_loading_meters'], obj.loadingMeters);
22
+ cy.GLO_selectTab([formName, 'tabs'], 'Quantities', close);
23
+ }
24
+ };
@@ -0,0 +1,32 @@
1
+ export type objJourneyStop = {
2
+ logisticLocationId?: string;
3
+ departureStartBooked?: string;
4
+ departureEndBooked?: string;
5
+ departureStartActual?: string;
6
+ closingBooked?: string;
7
+ arrivalStartBooked?: string;
8
+ arrivalStartPlanned?: string;
9
+ arrivalStartActual?: string;
10
+ arrivalStartBookedTime?: string;
11
+ arrivalStartPlannedTime?: string;
12
+ arrivalStartActualTime?: string;
13
+ departureEndPlanned?: string;
14
+ departureEndActual?: string;
15
+ departureEndBookedTime?: string;
16
+ departureEndPlannedTime?: string;
17
+ departureEndActualTime?: string;
18
+ quayCode?: string;
19
+ nrOfConsignments?: number;
20
+ stayNr?: number;
21
+ grossWeightLoad?: number;
22
+ grossWeightUnload?: number;
23
+ colour?: string;
24
+ goodsClosing?: string;
25
+ vgmClosing?: string;
26
+ dgnClosing?: string;
27
+ stuffingReportClosing?: string;
28
+ shippingInstructionClosing?: string;
29
+ portTimePlanned?: string;
30
+ stopTimezone?: string;
31
+ };
32
+ export declare const GLO_enterJourneyStop: (obj: objJourneyStop) => void;
@@ -0,0 +1,44 @@
1
+ import { close, equalBool, input, open } from '../tsHelper.js';
2
+ export const GLO_enterJourneyStop = (obj) => {
3
+ const formName = 'ng$journey_stop_dtl';
4
+ cy.GLO_popupWindow([formName, 'logistic_location_id'], obj.logisticLocationId, undefined, equalBool);
5
+ cy.GLO_addInput([formName, 'quay_code_valuelist'], obj.quayCode);
6
+ cy.GLO_addInput([formName, 'nr_of_consignments'], obj.nrOfConsignments);
7
+ cy.GLO_addInput([formName, 'stay_nr'], obj.stayNr);
8
+ cy.GLO_addInput([formName, 'gross_weight_load'], obj.grossWeightLoad);
9
+ cy.GLO_addInput([formName, 'gross_weight_unload'], obj.grossWeightUnload);
10
+ cy.GLO_addInput([formName, 'colour'], obj.colour);
11
+ cy.GLO_addInput([formName, 'port_time_duration_planned'], obj.portTimePlanned);
12
+ cy.GLO_addDate(input, [formName, 'goods_closing'], obj.goodsClosing);
13
+ cy.GLO_addDate(input, [formName, 'vgm_closing'], obj.vgmClosing);
14
+ cy.GLO_addDate(input, [formName, 'dgn_closing'], obj.dgnClosing);
15
+ cy.GLO_addDate(input, [formName, 'stuffing_report_closing'], obj.stuffingReportClosing);
16
+ cy.GLO_addDate(input, [formName, 'shipping_instructions_closing'], obj.shippingInstructionClosing);
17
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Timings', open);
18
+ GLO_enterJourneyStopTabTimings(obj);
19
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Timings', close);
20
+ if (obj.stopTimezone) {
21
+ const scheduleFormName = 'ng$journey_stop_dtl_schedule';
22
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Schedule', open);
23
+ cy.GLO_addInput([scheduleFormName, 'stop_timezone'], obj.stopTimezone);
24
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Schedule', close);
25
+ }
26
+ };
27
+ const GLO_enterJourneyStopTabTimings = (obj) => {
28
+ const formName = 'ng$journey_stop_dtl_timings';
29
+ cy.GLO_addDate(input, [formName, 'arrival_start_booked'], obj.arrivalStartBooked);
30
+ cy.GLO_addDate(input, [formName, 'arrival_start_planned'], obj.arrivalStartPlanned);
31
+ cy.GLO_addDate(input, [formName, 'arrival_start_actual'], obj.arrivalStartActual);
32
+ cy.GLO_addDate(input, [formName, 'arrival_start_booked_time'], obj.arrivalStartBookedTime);
33
+ cy.GLO_addDate(input, [formName, 'arrival_start_planned_time'], obj.arrivalStartPlannedTime);
34
+ cy.GLO_addDate(input, [formName, 'arrival_start_actual_time'], obj.arrivalStartActualTime);
35
+ cy.GLO_addDate(input, [formName, 'departure_end_booked'], obj.departureEndBooked);
36
+ cy.GLO_addDate(input, [formName, 'departure_end_planned'], obj.departureEndPlanned);
37
+ cy.GLO_addDate(input, [formName, 'departure_end_actual'], obj.departureEndActual);
38
+ cy.GLO_addDate(input, [formName, 'departure_end_booked_time'], obj.departureEndBookedTime);
39
+ cy.GLO_addDate(input, [formName, 'departure_end_planned_time'], obj.departureEndPlannedTime);
40
+ cy.GLO_addDate(input, [formName, 'departure_end_actual_time'], obj.departureEndActualTime);
41
+ cy.GLO_addDate(input, [formName, 'departure_start_actual'], obj.departureStartActual);
42
+ cy.GLO_addDate(input, [formName, 'departure_start_booked'], obj.departureStartBooked);
43
+ cy.GLO_addDate(input, [formName, 'closing_booked'], obj.closingBooked);
44
+ };
@@ -0,0 +1,6 @@
1
+ export type objLayout = {
2
+ documentType?: string;
3
+ documentGroup?: string;
4
+ predefinedQuery?: string;
5
+ };
6
+ export declare const GLO_enterLayout: (obj: objLayout) => void;
@@ -0,0 +1,6 @@
1
+ export const GLO_enterLayout = (obj) => {
2
+ const formName = 'ng$layout_dtl';
3
+ cy.GLO_addInput([formName, 'document_group_id'], obj.documentGroup);
4
+ cy.GLO_addInput([formName, 'document_type_id'], obj.documentType);
5
+ cy.GLO_addInput([formName, 'predefined_query'], obj.predefinedQuery);
6
+ };
@@ -0,0 +1,9 @@
1
+ export type objLogging = {
2
+ relationContactId?: string;
3
+ loggingTypeId?: string;
4
+ loggingSubtypeId?: string;
5
+ subject?: string;
6
+ description?: string;
7
+ internalRemark?: string;
8
+ };
9
+ export declare const GLO_enterLogging: (obj: objLogging) => void;
@@ -0,0 +1,12 @@
1
+ import { open } from '../tsHelper.js';
2
+ export const GLO_enterLogging = (obj) => {
3
+ const formName = 'ng$logging_dtl';
4
+ const formNameGeneral = 'ng$logging_dtl_description';
5
+ cy.GLO_addInput([formName, 'relation_contact_id'], obj.relationContactId);
6
+ cy.GLO_addInput([formName, 'logging_type_id'], obj.loggingTypeId);
7
+ cy.GLO_addInput([formName, 'logging_subtype_id'], obj.loggingSubtypeId);
8
+ cy.GLO_selectTab([formName, 'tabs_340'], 'Description', open);
9
+ cy.GLO_addInput([formNameGeneral, 'subject'], obj.subject);
10
+ cy.GLO_addInput([formNameGeneral, 'description'], obj.description);
11
+ cy.GLO_addInput([formNameGeneral, 'internal_remark'], obj.internalRemark);
12
+ };
@@ -0,0 +1,10 @@
1
+ export type objLogisticConnection = {
2
+ connectionCode?: string;
3
+ connectionType?: string;
4
+ direction?: string;
5
+ locationFrom?: string;
6
+ locationTo?: string;
7
+ validFrom?: string;
8
+ validTill?: string;
9
+ };
10
+ export declare const GLO_enterLogisticConnection: (obj: objLogisticConnection) => void;
@@ -0,0 +1,11 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterLogisticConnection = (obj) => {
3
+ const formName = 'ng$logistic_conn_dtl';
4
+ cy.GLO_addInput([formName, 'connection_code'], obj.connectionCode);
5
+ cy.GLO_addInput([formName, 'connection_type_id'], obj.connectionType);
6
+ cy.GLO_addInput([formName, 'direction'], obj.direction);
7
+ cy.GLO_popupWindow([formName, 'local_logistic_loc_from'], obj.locationFrom);
8
+ cy.GLO_popupWindow([formName, 'local_logistic_loc_to'], obj.locationTo);
9
+ cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
10
+ cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTill);
11
+ };
@@ -0,0 +1,5 @@
1
+ export type objLogisticConnectionType = {
2
+ connectionType?: string;
3
+ transportMethod?: string;
4
+ };
5
+ export declare const GLO_enterLogisticConnectionType: (obj: objLogisticConnectionType) => void;
@@ -0,0 +1,5 @@
1
+ export const GLO_enterLogisticConnectionType = (obj) => {
2
+ const formName = 'ng$logistic_conn_type_dtl';
3
+ cy.GLO_addInput([formName, 'logistic_conn_type_code'], obj.connectionType);
4
+ cy.GLO_addInput([formName, 'transport_method'], obj.transportMethod);
5
+ };
@@ -0,0 +1,28 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objLogisticContract = {
3
+ type?: string;
4
+ subType?: string;
5
+ subTypeColmun?: string;
6
+ validFrom?: string;
7
+ validTill?: string;
8
+ description?: string;
9
+ supplierCode?: string;
10
+ keyAccountManager?: string;
11
+ accountManager?: string;
12
+ currency?: string;
13
+ flagDirectInvoice?: CheckState;
14
+ flagAutomatedInvoice?: CheckState;
15
+ flagMergeInvoiceAndPOD?: CheckState;
16
+ flagElectronicInvoice?: CheckState;
17
+ generalContractType?: string;
18
+ flagSpotContract?: CheckState;
19
+ flagGeneralContract?: CheckState;
20
+ flagSummaryInvoice?: CheckState;
21
+ branch?: string;
22
+ department?: string;
23
+ businessUnit?: string;
24
+ dayForAutomaticInvoicing?: number;
25
+ flagDefWaitingHoursProofRequired?: CheckState;
26
+ defWaitingHoursThreshold?: string;
27
+ };
28
+ export declare const GLO_enterLogisticContract: (obj: objLogisticContract) => void;
@@ -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
+ };