@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.
- package/README.md +255 -0
- package/bin/create-customer-repo.mjs +89 -0
- package/biome.json +49 -0
- package/dist/apiMethods/IGS_request.d.ts +98 -0
- package/dist/apiMethods/IGS_request.js +161 -0
- package/dist/apiMethods/IGS_response.d.ts +47 -0
- package/dist/apiMethods/IGS_response.js +1 -0
- package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
- package/dist/blueprints/GLO_addressPopup.js +96 -0
- package/dist/blueprints/GLO_article.d.ts +45 -0
- package/dist/blueprints/GLO_article.js +110 -0
- package/dist/blueprints/GLO_articleLot.d.ts +12 -0
- package/dist/blueprints/GLO_articleLot.js +23 -0
- package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
- package/dist/blueprints/GLO_articleVersion.js +4 -0
- package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
- package/dist/blueprints/GLO_attachmentPopup.js +10 -0
- package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
- package/dist/blueprints/GLO_bankAccount.js +7 -0
- package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
- package/dist/blueprints/GLO_billingProcess.js +4 -0
- package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
- package/dist/blueprints/GLO_billingProposal.js +9 -0
- package/dist/blueprints/GLO_cancel.d.ts +7 -0
- package/dist/blueprints/GLO_cancel.js +7 -0
- package/dist/blueprints/GLO_commandlist.d.ts +10 -0
- package/dist/blueprints/GLO_commandlist.js +10 -0
- package/dist/blueprints/GLO_complaint.d.ts +27 -0
- package/dist/blueprints/GLO_complaint.js +51 -0
- package/dist/blueprints/GLO_composition.d.ts +14 -0
- package/dist/blueprints/GLO_composition.js +20 -0
- package/dist/blueprints/GLO_consignment.d.ts +61 -0
- package/dist/blueprints/GLO_consignment.js +104 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
- package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
- package/dist/blueprints/GLO_consignmentGoods.js +62 -0
- package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
- package/dist/blueprints/GLO_consignmentHandling.js +4 -0
- package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
- package/dist/blueprints/GLO_consignmentOrder.js +37 -0
- package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
- package/dist/blueprints/GLO_consignmentPart.js +13 -0
- package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
- package/dist/blueprints/GLO_consignmentParts.js +12 -0
- package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
- package/dist/blueprints/GLO_consignmentPrice.js +19 -0
- package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
- package/dist/blueprints/GLO_contacts.d.ts +10 -0
- package/dist/blueprints/GLO_contacts.js +14 -0
- package/dist/blueprints/GLO_container.d.ts +6 -0
- package/dist/blueprints/GLO_container.js +4 -0
- package/dist/blueprints/GLO_contract.d.ts +22 -0
- package/dist/blueprints/GLO_contract.js +30 -0
- package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
- package/dist/blueprints/GLO_contractArticle.js +35 -0
- package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
- package/dist/blueprints/GLO_contractArticleCost.js +8 -0
- package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
- package/dist/blueprints/GLO_countryVatZone.js +9 -0
- package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
- package/dist/blueprints/GLO_currencyDeviation.js +15 -0
- package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
- package/dist/blueprints/GLO_customerArticle.js +15 -0
- package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
- package/dist/blueprints/GLO_customsFlow.js +19 -0
- package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
- package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
- package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
- package/dist/blueprints/GLO_customsUnion.js +4 -0
- package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
- package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
- package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
- package/dist/blueprints/GLO_departureSchedule.js +57 -0
- package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
- package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
- package/dist/blueprints/GLO_document.d.ts +7 -0
- package/dist/blueprints/GLO_document.js +7 -0
- package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
- package/dist/blueprints/GLO_documentAttachment.js +4 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
- package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
- package/dist/blueprints/GLO_documentGroup.js +4 -0
- package/dist/blueprints/GLO_documentType.d.ts +12 -0
- package/dist/blueprints/GLO_documentType.js +11 -0
- package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
- package/dist/blueprints/GLO_enterCountry.js +47 -0
- package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
- package/dist/blueprints/GLO_enterDiscount.js +9 -0
- package/dist/blueprints/GLO_equipment.d.ts +34 -0
- package/dist/blueprints/GLO_equipment.js +55 -0
- package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
- package/dist/blueprints/GLO_equipmentCategory.js +14 -0
- package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
- package/dist/blueprints/GLO_equipmentEntity.js +5 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
- package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
- package/dist/blueprints/GLO_equipmentType.js +20 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
- package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
- package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
- package/dist/blueprints/GLO_formula.d.ts +9 -0
- package/dist/blueprints/GLO_formula.js +9 -0
- package/dist/blueprints/GLO_gang.d.ts +12 -0
- package/dist/blueprints/GLO_gang.js +12 -0
- package/dist/blueprints/GLO_holiday.d.ts +7 -0
- package/dist/blueprints/GLO_holiday.js +8 -0
- package/dist/blueprints/GLO_journey.d.ts +18 -0
- package/dist/blueprints/GLO_journey.js +24 -0
- package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
- package/dist/blueprints/GLO_journeyStop.js +44 -0
- package/dist/blueprints/GLO_layout.d.ts +6 -0
- package/dist/blueprints/GLO_layout.js +6 -0
- package/dist/blueprints/GLO_logging.d.ts +9 -0
- package/dist/blueprints/GLO_logging.js +12 -0
- package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
- package/dist/blueprints/GLO_logisticConnection.js +11 -0
- package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
- package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
- package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
- package/dist/blueprints/GLO_logisticContract.js +80 -0
- package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
- package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
- package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
- package/dist/blueprints/GLO_logisticContractItem.js +40 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
- package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractReference.js +4 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
- package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
- package/dist/blueprints/GLO_logisticLocation.js +7 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
- package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
- package/dist/blueprints/GLO_operationalDefault.js +25 -0
- package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
- package/dist/blueprints/GLO_outputDetailMail.js +13 -0
- package/dist/blueprints/GLO_postalcode.d.ts +6 -0
- package/dist/blueprints/GLO_postalcode.js +6 -0
- package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
- package/dist/blueprints/GLO_priceDependency.js +4 -0
- package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
- package/dist/blueprints/GLO_priceEntry.js +17 -0
- package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
- package/dist/blueprints/GLO_priceRequest.js +20 -0
- package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
- package/dist/blueprints/GLO_priceRequestLine.js +17 -0
- package/dist/blueprints/GLO_principal.d.ts +9 -0
- package/dist/blueprints/GLO_principal.js +13 -0
- package/dist/blueprints/GLO_printPopup.d.ts +10 -0
- package/dist/blueprints/GLO_printPopup.js +62 -0
- package/dist/blueprints/GLO_production.d.ts +9 -0
- package/dist/blueprints/GLO_production.js +9 -0
- package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
- package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
- package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
- package/dist/blueprints/GLO_productionMaterial.js +5 -0
- package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
- package/dist/blueprints/GLO_purchaseCosts.js +9 -0
- package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
- package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
- package/dist/blueprints/GLO_purchaseOrder.js +25 -0
- package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
- package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
- package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
- package/dist/blueprints/GLO_purchasePrices.js +10 -0
- package/dist/blueprints/GLO_quotation.d.ts +12 -0
- package/dist/blueprints/GLO_quotation.js +32 -0
- package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
- package/dist/blueprints/GLO_quotationLine.js +28 -0
- package/dist/blueprints/GLO_receipt.d.ts +13 -0
- package/dist/blueprints/GLO_receipt.js +17 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
- package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
- package/dist/blueprints/GLO_receiptLine.js +28 -0
- package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
- package/dist/blueprints/GLO_relationAddress.js +58 -0
- package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
- package/dist/blueprints/GLO_relationBankAccount.js +9 -0
- package/dist/blueprints/GLO_relationContact.d.ts +23 -0
- package/dist/blueprints/GLO_relationContact.js +45 -0
- package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
- package/dist/blueprints/GLO_relationGroupType.js +6 -0
- package/dist/blueprints/GLO_relations.d.ts +67 -0
- package/dist/blueprints/GLO_relations.js +186 -0
- package/dist/blueprints/GLO_relationtype.d.ts +15 -0
- package/dist/blueprints/GLO_relationtype.js +31 -0
- package/dist/blueprints/GLO_remarkType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkType.js +9 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
- package/dist/blueprints/GLO_representative.d.ts +7 -0
- package/dist/blueprints/GLO_representative.js +6 -0
- package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoice.js +15 -0
- package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrder.js +25 -0
- package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrderLine.js +34 -0
- package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
- package/dist/blueprints/GLO_stockCorrection.js +24 -0
- package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
- package/dist/blueprints/GLO_stopSchedule.js +4 -0
- package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
- package/dist/blueprints/GLO_supplierArticle.js +8 -0
- package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
- package/dist/blueprints/GLO_tclSetting.js +6 -0
- package/dist/blueprints/GLO_todo.d.ts +10 -0
- package/dist/blueprints/GLO_todo.js +21 -0
- package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
- package/dist/blueprints/GLO_todoSchedule.js +79 -0
- package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
- package/dist/blueprints/GLO_tractionDistance.js +6 -0
- package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
- package/dist/blueprints/GLO_transportOrder.js +4 -0
- package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
- package/dist/blueprints/GLO_transportPrice.js +34 -0
- package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
- package/dist/blueprints/GLO_transportRequirement.js +32 -0
- package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
- package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
- package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
- package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
- package/dist/blueprints/GLO_transportStock.d.ts +4 -0
- package/dist/blueprints/GLO_transportStock.js +4 -0
- package/dist/blueprints/GLO_visit.d.ts +9 -0
- package/dist/blueprints/GLO_visit.js +10 -0
- package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
- package/dist/blueprints/GLO_warehouseMove.js +9 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
- package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
- package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
- package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
- package/dist/blueprints/GLO_workflowVerification.js +19 -0
- package/dist/blueprints/GLO_zone.d.ts +9 -0
- package/dist/blueprints/GLO_zone.js +9 -0
- package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
- package/dist/blueprints/GLO_zone_postalcode.js +10 -0
- package/dist/blueprints/GLO_zone_type.d.ts +8 -0
- package/dist/blueprints/GLO_zone_type.js +7 -0
- package/dist/blueprints/GLT_goods.d.ts +2 -0
- package/dist/blueprints/GLT_goods.js +12 -0
- package/dist/commands/FOB_commands.d.ts +124 -0
- package/dist/commands/FOB_commands.js +211 -0
- package/dist/commands/GLJ_commands.d.ts +28 -0
- package/dist/commands/GLJ_commands.js +40 -0
- package/dist/commands/GLO_commands.d.ts +685 -0
- package/dist/commands/GLO_commands.js +2315 -0
- package/dist/commands/GLS_commands.d.ts +63 -0
- package/dist/commands/GLS_commands.js +103 -0
- package/dist/commands/GLT_commands.d.ts +78 -0
- package/dist/commands/GLT_commands.js +148 -0
- package/dist/commands/POR_commands.d.ts +85 -0
- package/dist/commands/POR_commands.js +122 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.js +115 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -0
- package/dist/plugins/prometheusWriter.d.ts +15 -0
- package/dist/plugins/prometheusWriter.js +111 -0
- package/dist/register.d.ts +8 -0
- package/dist/register.js +23 -0
- package/dist/tsHelper.d.ts +161 -0
- package/dist/tsHelper.js +294 -0
- package/dist/types.d.ts +363 -0
- package/dist/types.js +4 -0
- package/dist/websocketDetector.d.ts +71 -0
- package/dist/websocketDetector.js +1593 -0
- package/package.json +58 -0
- package/scripts/check-unnecessary-waiting.mjs +119 -0
- package/template/CODEOWNERS +20 -0
- package/template/biome.json +7 -0
- package/template/cypress/e2e/__CUSTOMER__/template.cy.ts.example +18 -0
- package/template/cypress/support/e2e.ts +21 -0
- package/template/cypress/support/record.mjs +46 -0
- package/template/cypress.config.ts +3 -0
- package/template/cypress.env.json.example +24 -0
- package/template/package.json +20 -0
- package/template/tsconfig.json +11 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
|
|
3
|
+
export const GLO_enterEquipment = (obj, tabName = 'tabs_70') => {
|
|
4
|
+
const formName = 'ng$equipment_dtl';
|
|
5
|
+
const generalFormName = 'ng$equipment_dtl_general';
|
|
6
|
+
// Relation information
|
|
7
|
+
cy.GLO_addInput([formName, 'equipment_code'], obj.equipmentCode);
|
|
8
|
+
cy.GLO_addInput([formName, 'equipment_category_id'], obj.equipmentCategory);
|
|
9
|
+
if (obj.equipmentCategory && obj.equipmentType)
|
|
10
|
+
cy.GLO_checkLoadingIndicator();
|
|
11
|
+
cy.GLO_addInput([formName, 'equipment_type_id'], obj.equipmentType);
|
|
12
|
+
cy.GLO_addInput([formName, 'shipment_container_type_id'], obj.shipmentContainerType);
|
|
13
|
+
cy.GLO_addInput([formName, 'shipment_container_subtype_id'], obj.shipmentContainerSubType);
|
|
14
|
+
cy.GLO_addInput([formName, 'series_nr'], obj.seriesNr);
|
|
15
|
+
cy.GLO_addInput([formName, 'tarra'], obj.tarraWeight);
|
|
16
|
+
cy.GLO_popupWindow([formName, 'owner_relation_id'], obj.owner, 'relation_code');
|
|
17
|
+
cy.GLO_addInput([formName, 'in_use_by_relation_id'], obj.inUseByRelation);
|
|
18
|
+
cy.GLO_checkbox([formName, 'flag_is_active'], obj.flagIsActive);
|
|
19
|
+
if (obj.lastKnownAddress) {
|
|
20
|
+
cy.GLO_clickButton([formName, 'last_known_address_id'], 'fa-search');
|
|
21
|
+
GLO_enterAddressPopup(obj.lastKnownAddress);
|
|
22
|
+
}
|
|
23
|
+
if (obj.damaged) {
|
|
24
|
+
cy.GLO_selectTab([formName, tabName], 'General', open);
|
|
25
|
+
cy.GLO_checkbox([generalFormName, 'flag_damaged'], obj.damaged);
|
|
26
|
+
cy.GLO_selectTab([formName, tabName], 'General', close);
|
|
27
|
+
}
|
|
28
|
+
if (obj.rentedOutTo) {
|
|
29
|
+
cy.GLO_selectTab([formName, tabName], 'General', open);
|
|
30
|
+
cy.GLO_popupWindow([generalFormName, 'rented_out_relation_id'], obj.rentedOutTo);
|
|
31
|
+
cy.GLO_selectTab([formName, tabName], 'General', close);
|
|
32
|
+
}
|
|
33
|
+
if (obj.oneTimeUse || obj.flagHighValue) {
|
|
34
|
+
cy.GLO_selectTab([formName, tabName], 'Container', open);
|
|
35
|
+
cy.GLO_checkbox([`${formName}_container`, 'one_time_use'], obj.oneTimeUse);
|
|
36
|
+
cy.GLO_checkbox([`${formName}_container`, 'flag_high_value'], obj.flagHighValue);
|
|
37
|
+
cy.GLO_selectTab([formName, tabName], 'Container', close);
|
|
38
|
+
}
|
|
39
|
+
// Road tab
|
|
40
|
+
if (obj.licensePlate || obj.exteriorHeight || obj.roadTarra) {
|
|
41
|
+
cy.GLO_selectTab(['ng$equipment_dtl', tabName], 'Road', open);
|
|
42
|
+
cy.GLO_addInput([`${formName}_road`, 'license_plate'], obj.licensePlate);
|
|
43
|
+
cy.GLO_addInput([`${formName}_road`, 'equipment_height'], obj.exteriorHeight);
|
|
44
|
+
cy.GLO_addInput([`${formName}_road`, 'Tarra'], obj.roadTarra);
|
|
45
|
+
cy.GLO_checkbox([`${formName}_road`, 'flag_dangerous_goods'], obj.flagDangerousGoods);
|
|
46
|
+
cy.GLO_checkbox([`${formName}_road`, 'flag_high_value'], obj.flagHighValue);
|
|
47
|
+
cy.GLO_checkbox([`${formName}_road`, 'flag_tcl_allowed'], obj.flagTemperatureContolledAllowed);
|
|
48
|
+
cy.GLO_checkbox([`${formName}_road`, 'flag_alcohol_allowed'], obj.flagAlcoholAllowed);
|
|
49
|
+
cy.GLO_checkbox([`${formName}_road`, 'flag_waste_allowed'], obj.flagWasteAllowed);
|
|
50
|
+
cy.GLO_addInput([`${formName}_road`, 'euro_class'], obj.euroClass);
|
|
51
|
+
cy.GLO_addInput([`${formName}_road`, 'fuel_type'], obj.fuelType);
|
|
52
|
+
cy.GLO_addInput([`${formName}_road`, 'nr_of_axles'], obj.numberOfAxles);
|
|
53
|
+
cy.GLO_selectTab(['ng$equipment_dtl', tabName], 'Road', close);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objEquipmentCategory = {
|
|
3
|
+
equipmentCategoryCode?: string;
|
|
4
|
+
default?: CheckState;
|
|
5
|
+
charter?: CheckState;
|
|
6
|
+
rail?: CheckState;
|
|
7
|
+
container?: CheckState;
|
|
8
|
+
towingVehicle?: CheckState;
|
|
9
|
+
road?: CheckState;
|
|
10
|
+
air?: CheckState;
|
|
11
|
+
ocean?: CheckState;
|
|
12
|
+
ferry?: CheckState;
|
|
13
|
+
inlandShipping?: CheckState;
|
|
14
|
+
};
|
|
15
|
+
export declare const GLO_enterEquipmentCategory: (obj: objEquipmentCategory) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const GLO_enterEquipmentCategory = (obj) => {
|
|
2
|
+
const formName = 'ng$equipment_category_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'equipment_category_code'], obj.equipmentCategoryCode);
|
|
4
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_default'], obj.default);
|
|
5
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_charter'], obj.charter);
|
|
6
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_rail'], obj.rail);
|
|
7
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_container'], obj.container);
|
|
8
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_towing_vehicle'], obj.towingVehicle);
|
|
9
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_road'], obj.road);
|
|
10
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_air'], obj.air);
|
|
11
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_ocean'], obj.ocean);
|
|
12
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_ferry'], obj.ferry);
|
|
13
|
+
cy.GLO_checkbox([formName, 'checkbox_flag_inland_shipping'], obj.inlandShipping);
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objEquipmentServiceCategory = {
|
|
3
|
+
serviceCategory?: string;
|
|
4
|
+
serviceType?: string;
|
|
5
|
+
lastService?: string;
|
|
6
|
+
nextService?: string;
|
|
7
|
+
temporaryDisabled?: CheckState;
|
|
8
|
+
serviceUpcoming?: CheckState;
|
|
9
|
+
serviceRequired?: CheckState;
|
|
10
|
+
serviceExceeded?: CheckState;
|
|
11
|
+
active?: CheckState;
|
|
12
|
+
};
|
|
13
|
+
export declare const GLO_enterEquipmentServiceCategory: (obj: objEquipmentServiceCategory) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterEquipmentServiceCategory = (obj) => {
|
|
3
|
+
const formName = 'ng$equipment_service_category$active_dtl';
|
|
4
|
+
cy.GLO_addDate(input, [formName, 'last_service_date'], obj.lastService);
|
|
5
|
+
cy.GLO_addDate(input, [formName, 'next_service_date'], obj.nextService);
|
|
6
|
+
cy.GLO_addInput([formName, 'service_category'], obj.serviceCategory);
|
|
7
|
+
cy.GLO_addInput([formName, 'service_type'], obj.serviceType);
|
|
8
|
+
cy.GLO_checkbox([formName, 'flag_temporarily_disabled'], obj.temporaryDisabled);
|
|
9
|
+
cy.GLO_checkbox([formName, 'flag_service_upcoming'], obj.serviceUpcoming);
|
|
10
|
+
cy.GLO_checkbox([formName, 'flag_service_required'], obj.serviceRequired);
|
|
11
|
+
cy.GLO_checkbox([formName, 'flag_service_exceeded'], obj.serviceExceeded);
|
|
12
|
+
cy.GLO_checkbox([formName, 'flag_active'], obj.active);
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objEquipmentType = {
|
|
3
|
+
equipmentTypeCode: string;
|
|
4
|
+
equipmentCategoryCode?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
externalPlatform?: string;
|
|
7
|
+
classificationGroup?: string;
|
|
8
|
+
defaultLoadWeight?: number;
|
|
9
|
+
defaultLoadWeightUnit?: string;
|
|
10
|
+
transportMethod?: string;
|
|
11
|
+
charter?: CheckState;
|
|
12
|
+
rail?: CheckState;
|
|
13
|
+
container?: CheckState;
|
|
14
|
+
towingVehicle?: CheckState;
|
|
15
|
+
road?: CheckState;
|
|
16
|
+
air?: CheckState;
|
|
17
|
+
ocean?: CheckState;
|
|
18
|
+
ferry?: CheckState;
|
|
19
|
+
inlandShipping?: CheckState;
|
|
20
|
+
};
|
|
21
|
+
export declare const GLO_enterEquipmentType: (obj: objEquipmentType) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const GLO_enterEquipmentType = (obj) => {
|
|
2
|
+
const formName = 'ng$equipment_type_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'textbox_equipment_category'], obj.equipmentCategoryCode);
|
|
4
|
+
cy.GLO_addInput([formName, 'equipment_type_code'], obj.equipmentTypeCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'description'], obj.description);
|
|
6
|
+
cy.GLO_addInput([formName, 'external_platform'], obj.externalPlatform);
|
|
7
|
+
cy.GLO_addInput([formName, 'classification_group'], obj.classificationGroup);
|
|
8
|
+
cy.GLO_addInput([formName, 'default_load_weight'], obj.defaultLoadWeight);
|
|
9
|
+
cy.GLO_addInput([formName, 'weight_unit_id'], obj.defaultLoadWeightUnit);
|
|
10
|
+
cy.GLO_addInput([formName, 'transport_method'], obj.transportMethod);
|
|
11
|
+
cy.GLO_checkbox([formName, 'flag_charter'], obj.charter);
|
|
12
|
+
cy.GLO_checkbox([formName, 'flag_rail'], obj.rail);
|
|
13
|
+
cy.GLO_checkbox([formName, 'flag_container'], obj.container);
|
|
14
|
+
cy.GLO_checkbox([formName, 'flag_towing_vehicle'], obj.towingVehicle);
|
|
15
|
+
cy.GLO_checkbox([formName, 'flag_road'], obj.road);
|
|
16
|
+
cy.GLO_checkbox([formName, 'flag_air'], obj.air);
|
|
17
|
+
cy.GLO_checkbox([formName, 'flag_water'], obj.ocean);
|
|
18
|
+
cy.GLO_checkbox([formName, 'flag_ferry'], obj.ferry);
|
|
19
|
+
cy.GLO_checkbox([formName, 'flag_inland_shipping'], obj.inlandShipping);
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objEquipmentTypeServiceCategory = {
|
|
3
|
+
equipmentCategoryCode?: string;
|
|
4
|
+
equipmentTypeCode?: string;
|
|
5
|
+
serviceCategoryCode: string;
|
|
6
|
+
serviceType?: string;
|
|
7
|
+
noAutomaticCalculation?: CheckState;
|
|
8
|
+
alertWindowUpcoming?: string;
|
|
9
|
+
alerWindowRequired?: string;
|
|
10
|
+
intervalWindow?: string;
|
|
11
|
+
intervalBase?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const GLO_enterEquipmentTypeServiceCategory: (obj: objEquipmentTypeServiceCategory) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const GLO_enterEquipmentTypeServiceCategory = (obj) => {
|
|
2
|
+
const formName = 'ng$equipment_type_service_category_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'equipment_type'], obj.equipmentCategoryCode);
|
|
4
|
+
cy.GLO_popupWindow([formName, 'equipment_subtype'], obj.equipmentTypeCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'service_category'], obj.serviceCategoryCode);
|
|
6
|
+
cy.GLO_addInput([formName, 'service_type'], obj.serviceType);
|
|
7
|
+
cy.GLO_checkbox([formName, 'flag_no_automatic_calculation'], obj.noAutomaticCalculation);
|
|
8
|
+
cy.GLO_addInput([formName, 'alert_window_upcoming'], obj.alertWindowUpcoming);
|
|
9
|
+
cy.GLO_addInput([formName, 'alert_window_required'], obj.alerWindowRequired);
|
|
10
|
+
cy.GLO_addInput([formName, 'interval_window'], obj.intervalWindow);
|
|
11
|
+
cy.GLO_addInput([formName, 'interval_base'], obj.intervalBase);
|
|
12
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
type ParameterType = 'Attribute' | 'Relation' | 'Dynamic attribute';
|
|
3
|
+
type ValidationEvent = 'onPreSave' | 'onDataChange' | 'onEdit' | 'onNew' | 'onNew & onEdit' | 'onDuplicate' | 'onNew & onDuplicate' | 'onEdit & onDuplicate' | 'onNew & onEdit & onDuplicate';
|
|
4
|
+
type ValidationType = 'Content validation' | 'Default value' | 'Editable' | 'Mandatory';
|
|
5
|
+
type DefaultValueSetting = 'Always' | 'When blanc' | 'New' | 'When new and blanc';
|
|
6
|
+
export type objContentValidation = {
|
|
7
|
+
inputFormat?: string;
|
|
8
|
+
contentValidationSimple?: string;
|
|
9
|
+
contentValidationFormula?: string;
|
|
10
|
+
};
|
|
11
|
+
export type objDefaultValue = {
|
|
12
|
+
defaultValueSetting?: DefaultValueSetting;
|
|
13
|
+
defaultValueConditionSimple?: string;
|
|
14
|
+
defaultValueConditionFormula?: string;
|
|
15
|
+
defaultValueSimple?: string;
|
|
16
|
+
defaultValueFormula?: string;
|
|
17
|
+
};
|
|
18
|
+
export type objEditable = {
|
|
19
|
+
flagEditable?: CheckState;
|
|
20
|
+
editableConditionSimple?: string;
|
|
21
|
+
editableConditionFormula?: string;
|
|
22
|
+
};
|
|
23
|
+
export type objMandatory = {
|
|
24
|
+
flagMandatory?: CheckState;
|
|
25
|
+
mandatoryConditionSimple?: string;
|
|
26
|
+
mandatoryFormula?: string;
|
|
27
|
+
};
|
|
28
|
+
export type objFieldInputValidation = {
|
|
29
|
+
program?: string;
|
|
30
|
+
customView?: string;
|
|
31
|
+
userGroup?: string;
|
|
32
|
+
validFrom?: string;
|
|
33
|
+
validTill?: string;
|
|
34
|
+
validationType?: ValidationType;
|
|
35
|
+
setField?: string;
|
|
36
|
+
setFieldType?: ParameterType;
|
|
37
|
+
validationEvent?: ValidationEvent;
|
|
38
|
+
field?: string;
|
|
39
|
+
fieldType?: ParameterType;
|
|
40
|
+
contentValidation?: objContentValidation;
|
|
41
|
+
defaultValue?: objDefaultValue;
|
|
42
|
+
editable?: objEditable;
|
|
43
|
+
mandatory?: objMandatory;
|
|
44
|
+
};
|
|
45
|
+
export declare const GLO_enterFieldInputValidation: (obj: objFieldInputValidation) => void;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { input, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$field_input_validation_dtl';
|
|
3
|
+
export const GLO_enterFieldInputValidation = (obj) => {
|
|
4
|
+
cy.GLO_addInput([formName, 'program'], obj.program);
|
|
5
|
+
cy.GLO_popupWindow([formName, 'custom_view'], obj.customView);
|
|
6
|
+
cy.GLO_addInput([formName, 'sec_group_id'], obj.userGroup);
|
|
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, 'validation_type'], obj.validationType);
|
|
10
|
+
if (obj.setField) {
|
|
11
|
+
cy.GLO_clickButton([formName, 'set_field'], 'fa-search');
|
|
12
|
+
if (obj.setFieldType) {
|
|
13
|
+
cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_type'], obj.setFieldType);
|
|
14
|
+
}
|
|
15
|
+
cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_attribute'], obj.setField);
|
|
16
|
+
cy.GLO_clickButton(['ng$field_input_validation_dataprovider_dlg', 'submit_btn']);
|
|
17
|
+
}
|
|
18
|
+
cy.GLO_addInput([formName, 'validation_event'], obj.validationEvent);
|
|
19
|
+
if (obj.field) {
|
|
20
|
+
cy.GLO_clickButton([formName, 'field'], 'fa-search');
|
|
21
|
+
if (obj.fieldType) {
|
|
22
|
+
cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_type'], obj.fieldType);
|
|
23
|
+
}
|
|
24
|
+
cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_attribute'], obj.field);
|
|
25
|
+
cy.GLO_clickButton(['ng$field_input_validation_dataprovider_dlg', 'submit_btn']);
|
|
26
|
+
}
|
|
27
|
+
// Content validation tab
|
|
28
|
+
if (obj.contentValidation) {
|
|
29
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Content validation', open);
|
|
30
|
+
enterContentValidation(obj.contentValidation);
|
|
31
|
+
}
|
|
32
|
+
// Default value tab
|
|
33
|
+
if (obj.defaultValue) {
|
|
34
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Default values', open);
|
|
35
|
+
enterDefaultValue(obj.defaultValue);
|
|
36
|
+
}
|
|
37
|
+
// Editable tab
|
|
38
|
+
if (obj.editable) {
|
|
39
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Editable', open);
|
|
40
|
+
enterEditable(obj.editable);
|
|
41
|
+
}
|
|
42
|
+
// Mandatory tab
|
|
43
|
+
if (obj.mandatory) {
|
|
44
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Mandatory', open);
|
|
45
|
+
enterMandatory(obj.mandatory);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const enterContentValidation = (obj) => {
|
|
49
|
+
const tabFormName = 'ng$field_input_validation_dtl_content_validation';
|
|
50
|
+
cy.GLO_addInput([tabFormName, 'input_format'], obj.inputFormat);
|
|
51
|
+
cy.GLO_addInput([tabFormName, 'content_validation_simple'], obj.contentValidationSimple);
|
|
52
|
+
cy.GLO_popupWindow([tabFormName, 'content_validation_formula'], obj.contentValidationFormula);
|
|
53
|
+
};
|
|
54
|
+
const enterDefaultValue = (obj) => {
|
|
55
|
+
const tabFormName = 'ng$field_input_validation_dtl_default_value';
|
|
56
|
+
cy.GLO_addInput([tabFormName, 'default_value_setting'], obj.defaultValueSetting);
|
|
57
|
+
cy.GLO_addInput([tabFormName, 'default_value_condition_simple'], obj.defaultValueConditionSimple);
|
|
58
|
+
cy.GLO_popupWindow([tabFormName, 'default_value_condition_formula'], obj.defaultValueConditionFormula);
|
|
59
|
+
cy.GLO_addInput([tabFormName, 'default_value_simple'], obj.defaultValueSimple);
|
|
60
|
+
cy.GLO_popupWindow([tabFormName, 'default_value_formula'], obj.defaultValueFormula);
|
|
61
|
+
};
|
|
62
|
+
const enterEditable = (obj) => {
|
|
63
|
+
const tabFormName = 'ng$field_input_validation_dtl_editable';
|
|
64
|
+
cy.GLO_checkbox([tabFormName, 'flag_editable'], obj.flagEditable);
|
|
65
|
+
cy.GLO_addInput([tabFormName, 'editable_condition_simple'], obj.editableConditionSimple);
|
|
66
|
+
cy.GLO_popupWindow([tabFormName, 'editable_condition_formula'], obj.editableConditionFormula);
|
|
67
|
+
};
|
|
68
|
+
const enterMandatory = (obj) => {
|
|
69
|
+
const tabFormName = 'ng$field_input_validation_dtl_mandatory';
|
|
70
|
+
cy.GLO_checkbox([tabFormName, 'flag_mandatory'], obj.flagMandatory);
|
|
71
|
+
cy.GLO_addInput([tabFormName, 'mandatory_condition_simple'], obj.mandatoryConditionSimple);
|
|
72
|
+
cy.GLO_popupWindow([tabFormName, 'mandatory_formula'], obj.mandatoryFormula);
|
|
73
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const GLO_enterFormula = (obj) => {
|
|
2
|
+
const formName = 'ng$formula_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'formula_code'], obj.formulaCode);
|
|
4
|
+
cy.GLO_addInput([formName, 'formula_type'], obj.formulaType);
|
|
5
|
+
cy.GLO_addInput([formName, 'ticket_nr'], obj.ticketNr);
|
|
6
|
+
cy.GLO_addInput([formName, 'formula'], obj.formula);
|
|
7
|
+
cy.GLO_addInput([formName, 'feature_code'], obj.featureCode);
|
|
8
|
+
cy.GLO_addInput([formName, 'scenario_code'], obj.scenarioCode);
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type objGang = {
|
|
2
|
+
type?: string;
|
|
3
|
+
status?: string;
|
|
4
|
+
terminal?: string;
|
|
5
|
+
foreman?: string;
|
|
6
|
+
tallyman?: string;
|
|
7
|
+
shiftDate?: string;
|
|
8
|
+
calendarDay?: string;
|
|
9
|
+
warehouse?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const GLO_createGang: (obj: objGang) => void;
|
|
@@ -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,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 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,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,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;
|