@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,9 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterCountryVatZone = (obj) => {
|
|
3
|
+
const formName = 'ng$country_vat_zone_dtl';
|
|
4
|
+
cy.GLO_addInput([formName, 'company_id'], obj.company);
|
|
5
|
+
cy.GLO_addInput([formName, 'country_state'], obj.countryState);
|
|
6
|
+
cy.GLO_addInput([formName, 'vat_zone_id'], obj.vatZone);
|
|
7
|
+
cy.GLO_addInput([formName, 'customs_union_id'], obj.customsUnion);
|
|
8
|
+
cy.GLO_addDate(input, [formName, 'startdate'], obj.validFrom);
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type objCurrencyDeviation = {
|
|
2
|
+
currencyCode?: string;
|
|
3
|
+
relationCode?: string;
|
|
4
|
+
dateFrom?: string;
|
|
5
|
+
percentagePurchaseInvoiceNegativeAllowed?: number;
|
|
6
|
+
amountPurchaseInvoiceNegativeAllowed?: number;
|
|
7
|
+
percentagePurchaseInvoicePositiveAllowed?: number;
|
|
8
|
+
amountPurchaseInvoicePositiveAllowed?: number;
|
|
9
|
+
percentagePurchaseInvoicelineNegativeAllowed?: number;
|
|
10
|
+
amountPurchaseInvoicelineNegativeAllowed?: number;
|
|
11
|
+
percentagePurchaseInvoicelinePositiveAllowed?: number;
|
|
12
|
+
amountPurchaseInvoicelinePositiveAllowed?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const GLO_enterCurrencyDeviation: (obj: objCurrencyDeviation) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterCurrencyDeviation = (obj) => {
|
|
3
|
+
const formName = 'ng$currency_deviation_dtl';
|
|
4
|
+
cy.GLO_addInput([formName, 'currency_id'], obj.currencyCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'relation_id'], obj.relationCode);
|
|
6
|
+
cy.GLO_addDate(input, [formName, 'date_from'], obj.dateFrom);
|
|
7
|
+
cy.GLO_addInput([formName, 'purchase_invoice_neg_allowed_diff_perc'], obj.percentagePurchaseInvoiceNegativeAllowed);
|
|
8
|
+
cy.GLO_addInput([formName, 'purchase_invoice_neg_allowed_diff_amount'], obj.amountPurchaseInvoiceNegativeAllowed);
|
|
9
|
+
cy.GLO_addInput([formName, 'purchase_invoice_pos_allowed_diff_perc'], obj.percentagePurchaseInvoicePositiveAllowed);
|
|
10
|
+
cy.GLO_addInput([formName, 'purchase_invoice_pos_allowed_diff_amount'], obj.amountPurchaseInvoicePositiveAllowed);
|
|
11
|
+
cy.GLO_addInput([formName, 'purchase_invoiceline_neg_allowed_diff_perc'], obj.percentagePurchaseInvoicelineNegativeAllowed);
|
|
12
|
+
cy.GLO_addInput([formName, 'purchase_invoiceline_neg_allowed_diff_amount'], obj.amountPurchaseInvoicelineNegativeAllowed);
|
|
13
|
+
cy.GLO_addInput([formName, 'purchase_invoiceline_pos_allowed_diff_perc'], obj.percentagePurchaseInvoicelinePositiveAllowed);
|
|
14
|
+
cy.GLO_addInput([formName, 'purchase_invoiceline_pos_allowed_diff_amount'], obj.amountPurchaseInvoicelinePositiveAllowed);
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type objCustomerArticle = {
|
|
2
|
+
customerCode?: string;
|
|
3
|
+
customerArticleCode?: string;
|
|
4
|
+
customerArticleCustomerArticleCode?: string;
|
|
5
|
+
customerArticleMinimumQuantityToOrder?: number;
|
|
6
|
+
customerArticleContractQuantity?: number;
|
|
7
|
+
customerArticlePrice?: string;
|
|
8
|
+
customerArticleVersion?: string;
|
|
9
|
+
customerDefaultCustomsStatus?: string;
|
|
10
|
+
containerSubtype?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const GLO_addCustomerArticle: (obj: objCustomerArticle) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const customerArticleMainForm = 'ng$customer_article_dtl';
|
|
2
|
+
export const GLO_addCustomerArticle = (obj) => {
|
|
3
|
+
cy.GLO_popupWindow([customerArticleMainForm, 'relation_code'], obj.customerCode);
|
|
4
|
+
if (obj.customerArticleCode) {
|
|
5
|
+
cy.GLO_addInput([customerArticleMainForm, 'article_code'], obj.customerArticleCode);
|
|
6
|
+
cy.GLO_checkLoadingIndicator();
|
|
7
|
+
}
|
|
8
|
+
cy.GLO_addInput([customerArticleMainForm, 'customer_article_code'], obj.customerArticleCustomerArticleCode);
|
|
9
|
+
cy.GLO_addInput([customerArticleMainForm, 'minimum_orderquantity'], obj.customerArticleMinimumQuantityToOrder);
|
|
10
|
+
cy.GLO_addInput([customerArticleMainForm, 'quantity'], obj.customerArticleContractQuantity);
|
|
11
|
+
cy.GLO_addInput([customerArticleMainForm, 'price'], obj.customerArticlePrice);
|
|
12
|
+
cy.GLO_addInput([customerArticleMainForm, 'articleversion_code'], obj.customerArticleVersion);
|
|
13
|
+
cy.GLO_addInput([customerArticleMainForm, 'default_customs_status'], obj.customerDefaultCustomsStatus);
|
|
14
|
+
cy.GLO_addInput([customerArticleMainForm, 'container_subtype'], obj.containerSubtype);
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterCustomsFlow = (obj) => {
|
|
3
|
+
const formName = 'ng$customs_flow_dtl';
|
|
4
|
+
const tabs = 'tabs_70';
|
|
5
|
+
const translationGrid = 'ng$basetabletranslation_uuid_lst_tab';
|
|
6
|
+
cy.GLO_addInput([formName, 'customs_flow_code'], obj.customsFlowCode);
|
|
7
|
+
cy.GLO_addInput([formName, 'sequence_nr'], obj.sequenceNr);
|
|
8
|
+
cy.GLO_checkbox([formName, 'flag_active'], obj.flagActive);
|
|
9
|
+
if (obj.translation) {
|
|
10
|
+
const translation = obj.translation;
|
|
11
|
+
cy.GLO_selectTab([formName, tabs], 'Translations', open);
|
|
12
|
+
cy.GLO_getElement([translationGrid, 'grid']).within(() => {
|
|
13
|
+
cy.get('.editable-field').each((field) => {
|
|
14
|
+
cy.wrap(field).dblclick().type(translation);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
cy.GLO_selectTab([formName, tabs], 'Translations', close);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objCustomsFlowDefinition = {
|
|
3
|
+
sequenceNr?: number;
|
|
4
|
+
definitionCode?: string;
|
|
5
|
+
customsType?: string;
|
|
6
|
+
customsResponsibility?: string;
|
|
7
|
+
customsOfficeDefinition?: string;
|
|
8
|
+
outboundStopDefinition?: string;
|
|
9
|
+
outboundDocumentType?: string;
|
|
10
|
+
inboundStopDefinition?: string;
|
|
11
|
+
inboundDocumentType?: string;
|
|
12
|
+
remarks?: string;
|
|
13
|
+
flagActive?: CheckState;
|
|
14
|
+
};
|
|
15
|
+
export declare const GLO_enterCustomsFlowDefinition: (obj: objCustomsFlowDefinition) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const GLO_enterCustomsFlowDefinition = (obj) => {
|
|
2
|
+
const formName = 'ng$customs_flow_definition_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'sequence_nr'], obj.sequenceNr);
|
|
4
|
+
cy.GLO_addInput([formName, 'customs_flow_definition_code'], obj.definitionCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'customs_type'], obj.customsType);
|
|
6
|
+
cy.GLO_addInput([formName, 'customs_responsibility'], obj.customsResponsibility);
|
|
7
|
+
cy.GLO_addInput([formName, 'customs_office_definition'], obj.customsOfficeDefinition);
|
|
8
|
+
cy.GLO_addInput([formName, 'outbound_stop_definition'], obj.outboundStopDefinition);
|
|
9
|
+
cy.GLO_addInput([formName, 'outbound_document_type_id'], obj.outboundDocumentType);
|
|
10
|
+
cy.GLO_addInput([formName, 'inbound_stop_definition'], obj.inboundStopDefinition);
|
|
11
|
+
cy.GLO_addInput([formName, 'inbound_document_type_id'], obj.inboundDocumentType);
|
|
12
|
+
cy.GLO_addInput([formName, 'remarks'], obj.remarks);
|
|
13
|
+
cy.GLO_checkbox([formName, 'flag_active'], obj.flagActive);
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type objDeliveryReceipt = {
|
|
2
|
+
relationCode?: number | string;
|
|
3
|
+
deliveredEuroPallets?: number;
|
|
4
|
+
deliveredMeloPallets?: number;
|
|
5
|
+
deliveredSinglePallets?: number;
|
|
6
|
+
retourEuroPallets?: number;
|
|
7
|
+
retourMeloPallets?: number;
|
|
8
|
+
retourSinglePallets?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterDeliveryReceipt: (obj: objDeliveryReceipt) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterDeliveryReceipt = (obj) => {
|
|
3
|
+
const formName = 'ng$delivery_dtl';
|
|
4
|
+
const detailTabsName = 'tabs_70';
|
|
5
|
+
if (obj.relationCode) {
|
|
6
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
7
|
+
cy.GLO_addInput(['ng$delivery_dtl_general', 'relation_code'], obj.relationCode);
|
|
8
|
+
cy.GLO_checkLoadingIndicator(); // Loading data
|
|
9
|
+
cy.GLO_dialogChoice('Yes');
|
|
10
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
11
|
+
}
|
|
12
|
+
if (obj.deliveredEuroPallets || obj.deliveredMeloPallets || obj.deliveredSinglePallets || obj.retourEuroPallets || obj.retourMeloPallets || obj.deliveredSinglePallets) {
|
|
13
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Attributes', open);
|
|
14
|
+
cy.GLO_addInput(['attribute_value_b1fe5ae8_7bd6_4e1d_932e_4fbc94ee5aac'], obj.deliveredEuroPallets);
|
|
15
|
+
cy.GLO_addInput(['attribute_value_af15d164_55d2_4824_a9c3_38e1b7bdd731'], obj.deliveredMeloPallets);
|
|
16
|
+
cy.GLO_addInput(['attribute_value_122511ba_516a_4f39_8359_bc47e9b6cd6d'], obj.deliveredSinglePallets);
|
|
17
|
+
cy.GLO_addInput(['attribute_value_b8efaae0_2890_424d_9bf1_e774cd0334e1'], obj.retourEuroPallets);
|
|
18
|
+
cy.GLO_addInput(['attribute_value_7a21c397_9223_4af6_b961_05478a1c4341'], obj.retourMeloPallets);
|
|
19
|
+
cy.GLO_addInput(['attribute_value_11f832aa_c149_4036_815f_b650918413c9'], obj.retourSinglePallets);
|
|
20
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Attributes', close);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objDepartureSchedule = {
|
|
3
|
+
logisticConnection?: string;
|
|
4
|
+
supplier?: string;
|
|
5
|
+
validFrom?: string;
|
|
6
|
+
validTill?: string;
|
|
7
|
+
logisticContractDetail?: string;
|
|
8
|
+
operationalActive?: CheckState;
|
|
9
|
+
dgnAllowed?: CheckState;
|
|
10
|
+
comment?: string;
|
|
11
|
+
scheduleComment?: string;
|
|
12
|
+
userInSimulation?: CheckState;
|
|
13
|
+
useInPriceCalculation?: CheckState;
|
|
14
|
+
automaticCreation?: CheckState;
|
|
15
|
+
automaticCreationWeeks?: string;
|
|
16
|
+
departureAddress?: string;
|
|
17
|
+
arrivalAddress?: string;
|
|
18
|
+
distance?: number;
|
|
19
|
+
bookingOpeningRelativeDays?: string;
|
|
20
|
+
bookingOpeningTime?: string;
|
|
21
|
+
bookingClosingRelativeDays?: string;
|
|
22
|
+
bookingClosingTime?: string;
|
|
23
|
+
flagDgnAllowed?: CheckState;
|
|
24
|
+
flagDgnLimitedQuantityAllowed?: CheckState;
|
|
25
|
+
flagWasteAllowed?: CheckState;
|
|
26
|
+
};
|
|
27
|
+
export declare const GLO_enterDepartureSchedule: (obj: objDepartureSchedule) => void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { close, input, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterDepartureSchedule = (obj) => {
|
|
3
|
+
const formName = 'ng$logistic_conn_schedule_dtl';
|
|
4
|
+
const addressFormName = 'ng$logistic_conn_schedule_dtl_address_time';
|
|
5
|
+
const defaultsFormName = 'ng$logistic_conn_schedule_dtl_defaults';
|
|
6
|
+
const remarkFormName = 'ng$remark_dtl_logistic_conn_schedule';
|
|
7
|
+
const detailTabsName = 'tabs_70';
|
|
8
|
+
cy.GLO_popupWindow([formName, 'local_logistic_conn_code'], obj.logisticConnection);
|
|
9
|
+
cy.GLO_popupWindow([formName, 'local_supplier_code'], obj.supplier);
|
|
10
|
+
cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
|
|
11
|
+
cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTill);
|
|
12
|
+
cy.GLO_popupWindow([formName, 'local_logistic_contract_detail_code'], obj.logisticContractDetail);
|
|
13
|
+
cy.GLO_checkbox([formName, 'flag_operational_active'], obj.operationalActive);
|
|
14
|
+
cy.GLO_checkbox([formName, 'flag_dgn_allowed'], obj.dgnAllowed);
|
|
15
|
+
cy.GLO_addInput([formName, 'comment1'], obj.comment);
|
|
16
|
+
cy.GLO_checkbox([formName, 'flag_sim'], obj.userInSimulation);
|
|
17
|
+
cy.GLO_checkbox([formName, 'flag_calc'], obj.useInPriceCalculation);
|
|
18
|
+
cy.GLO_checkbox([formName, 'flag_automatic_creation'], obj.automaticCreation);
|
|
19
|
+
cy.GLO_addInput([formName, 'automatic_creation_weeks'], obj.automaticCreationWeeks);
|
|
20
|
+
if (obj.departureAddress || obj.arrivalAddress || obj.distance) {
|
|
21
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Address and duration', open);
|
|
22
|
+
cy.GLO_popupWindow([addressFormName, 'relation_address_from'], obj.departureAddress);
|
|
23
|
+
cy.GLO_popupWindow([addressFormName, 'relation_address_to'], obj.arrivalAddress);
|
|
24
|
+
cy.GLO_addInput([addressFormName, 'distance_in_km'], obj.distance);
|
|
25
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Address and duration', close);
|
|
26
|
+
}
|
|
27
|
+
if (obj.bookingOpeningRelativeDays ||
|
|
28
|
+
obj.bookingOpeningTime ||
|
|
29
|
+
obj.bookingClosingRelativeDays ||
|
|
30
|
+
obj.bookingClosingTime ||
|
|
31
|
+
obj.flagDgnAllowed ||
|
|
32
|
+
obj.flagDgnLimitedQuantityAllowed ||
|
|
33
|
+
obj.flagWasteAllowed) {
|
|
34
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Defaults', open);
|
|
35
|
+
if (obj.bookingOpeningRelativeDays) {
|
|
36
|
+
cy.GLO_getElement([defaultsFormName, 'booking_opening_relative_days']).find('.dx-texteditor-input').type(obj.bookingOpeningRelativeDays);
|
|
37
|
+
}
|
|
38
|
+
if (obj.bookingOpeningTime) {
|
|
39
|
+
cy.GLO_getElement([defaultsFormName, 'booking_opening_time']).find('.dx-texteditor-input').type(obj.bookingOpeningTime);
|
|
40
|
+
}
|
|
41
|
+
if (obj.bookingClosingRelativeDays) {
|
|
42
|
+
cy.GLO_getElement([defaultsFormName, 'booking_closing_relative_days']).find('.dx-texteditor-input').type(obj.bookingClosingRelativeDays);
|
|
43
|
+
}
|
|
44
|
+
if (obj.bookingClosingTime) {
|
|
45
|
+
cy.GLO_getElement([defaultsFormName, 'booking_closing_time']).find('.dx-texteditor-input').type(obj.bookingClosingTime);
|
|
46
|
+
}
|
|
47
|
+
cy.GLO_checkbox([defaultsFormName, 'flag_dgn_allowed'], obj.flagDgnAllowed);
|
|
48
|
+
cy.GLO_checkbox([defaultsFormName, 'flag_dgn_limited_quantity_allowed'], obj.flagDgnLimitedQuantityAllowed);
|
|
49
|
+
cy.GLO_checkbox([defaultsFormName, 'flag_waste_allowed'], obj.flagWasteAllowed);
|
|
50
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Defaults', close);
|
|
51
|
+
}
|
|
52
|
+
if (obj.scheduleComment) {
|
|
53
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Remarks', open);
|
|
54
|
+
cy.GLO_addInput([remarkFormName, 'local_LOG_CONN_SCHED_REMARK'], obj.scheduleComment);
|
|
55
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Remarks', close);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objDepartureScheduleTimes = {
|
|
3
|
+
departureTime?: string;
|
|
4
|
+
departureTimezone?: string;
|
|
5
|
+
arrivalTime?: string;
|
|
6
|
+
arrivalTimezone?: string;
|
|
7
|
+
remark?: string;
|
|
8
|
+
bookingOpeningRelativeDays?: string;
|
|
9
|
+
bookingOpeningTime?: string;
|
|
10
|
+
bookingClosingRelativeDays?: string;
|
|
11
|
+
bookingClosingTime?: string;
|
|
12
|
+
flagOperationalActive?: CheckState;
|
|
13
|
+
flagDgnAllowed?: CheckState;
|
|
14
|
+
flagDgnLimitedQuantityAllowed?: CheckState;
|
|
15
|
+
flagWasteAllowed?: CheckState;
|
|
16
|
+
arrivalRelativeDays?: string;
|
|
17
|
+
embarkDuration?: string;
|
|
18
|
+
disembarkDuration?: string;
|
|
19
|
+
firstDropRelativeDays?: string;
|
|
20
|
+
firstDropTime?: string;
|
|
21
|
+
firstDropDgnRelativeDays?: string;
|
|
22
|
+
firstDropDgnTime?: string;
|
|
23
|
+
lastDropRelativeDays?: string;
|
|
24
|
+
lastDropTime?: string;
|
|
25
|
+
lastDropDgnRelativeDays?: string;
|
|
26
|
+
lastDropDgnTime?: string;
|
|
27
|
+
lastDropContainerRelativeDays?: string;
|
|
28
|
+
lastDropContainerTime?: string;
|
|
29
|
+
lastDropTrailerRelativeDays?: string;
|
|
30
|
+
lastDropTrailerTime?: string;
|
|
31
|
+
availableAfterArrivalTimeRelativeDays?: string;
|
|
32
|
+
availableLofoAfterArrivalTimeRelativeDays?: string;
|
|
33
|
+
minNrOfContainers?: number;
|
|
34
|
+
maxNrOfContainers?: number;
|
|
35
|
+
minNrOfTrailers?: number;
|
|
36
|
+
maxNrOfTrailers?: number;
|
|
37
|
+
maxAntiTheftCapacity?: number;
|
|
38
|
+
capacityGrossWeight?: number;
|
|
39
|
+
capacityGrossWeightUnitId?: string;
|
|
40
|
+
flagMonday?: CheckState;
|
|
41
|
+
flagTuesday?: CheckState;
|
|
42
|
+
flagWednesday?: CheckState;
|
|
43
|
+
flagThursday?: CheckState;
|
|
44
|
+
flagFriday?: CheckState;
|
|
45
|
+
flagSaturday?: CheckState;
|
|
46
|
+
flagSunday?: CheckState;
|
|
47
|
+
pricingGroup?: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const GLO_enterDepartureScheduleTimes: (obj: objDepartureScheduleTimes) => void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$logistic_conn_schedule_times_dtl';
|
|
3
|
+
const addressFormName = 'ng$remark_dtl_logistic_conn_schedule_times';
|
|
4
|
+
const detailTabsName = 'tabs_70';
|
|
5
|
+
export const GLO_enterDepartureScheduleTimes = (obj) => {
|
|
6
|
+
// Data_cy has 2 inputs so we need the first one and use the raw command
|
|
7
|
+
cy.GLO_addInput([formName, 'departure_time'], obj.departureTime);
|
|
8
|
+
cy.GLO_addInput([formName, 'departure_time', 1], obj.departureTimezone);
|
|
9
|
+
cy.GLO_addInput([formName, 'arrival_time'], obj.arrivalTime);
|
|
10
|
+
cy.GLO_addInput([formName, 'arrival_time', 1], obj.arrivalTimezone);
|
|
11
|
+
typeIfPresent('arrival_relative_days', obj.arrivalRelativeDays);
|
|
12
|
+
typeIfPresent('embark_duration', obj.embarkDuration);
|
|
13
|
+
typeIfPresent('disembark_duration', obj.disembarkDuration);
|
|
14
|
+
cy.GLO_addInput([formName, 'pricing_group'], obj.pricingGroup);
|
|
15
|
+
typeIfPresent('first_drop_relative_days', obj.firstDropRelativeDays);
|
|
16
|
+
typeIfPresent('first_drop_time', obj.firstDropTime);
|
|
17
|
+
typeIfPresent('first_drop_dgn_relative_days', obj.firstDropDgnRelativeDays);
|
|
18
|
+
typeIfPresent('first_drop_dgn_time', obj.firstDropDgnTime);
|
|
19
|
+
typeIfPresent('last_drop_relative_days', obj.lastDropRelativeDays);
|
|
20
|
+
typeIfPresent('last_drop_time', obj.lastDropTime);
|
|
21
|
+
typeIfPresent('last_drop_dgn_relative_days', obj.lastDropDgnRelativeDays);
|
|
22
|
+
typeIfPresent('last_drop_dgn_time', obj.lastDropDgnTime);
|
|
23
|
+
typeIfPresent('last_drop_container_relative_days', obj.lastDropContainerRelativeDays);
|
|
24
|
+
typeIfPresent('last_drop_container_time', obj.lastDropContainerTime);
|
|
25
|
+
typeIfPresent('last_drop_trailer_relative_days', obj.lastDropTrailerRelativeDays);
|
|
26
|
+
typeIfPresent('last_drop_trailer_time', obj.lastDropTrailerTime);
|
|
27
|
+
typeIfPresent('available_after_arrival_time_relative_days', obj.availableAfterArrivalTimeRelativeDays);
|
|
28
|
+
typeIfPresent('available_lofo_after_arrival_time_relative_days', obj.availableLofoAfterArrivalTimeRelativeDays);
|
|
29
|
+
cy.GLO_addInput([formName, 'min_nr_of_containers'], obj.minNrOfContainers);
|
|
30
|
+
cy.GLO_addInput([formName, 'max_nr_of_containers'], obj.maxNrOfContainers);
|
|
31
|
+
cy.GLO_addInput([formName, 'min_nr_of_trailers'], obj.minNrOfTrailers);
|
|
32
|
+
cy.GLO_addInput([formName, 'max_nr_of_trailers'], obj.maxNrOfTrailers);
|
|
33
|
+
cy.GLO_addInput([formName, 'max_anti_theft_capacity'], obj.maxAntiTheftCapacity);
|
|
34
|
+
cy.GLO_addInput([formName, 'capacity_gross_weight'], obj.capacityGrossWeight);
|
|
35
|
+
cy.GLO_addInput([formName, 'capacity_gross_weight_unit_id'], obj.capacityGrossWeightUnitId);
|
|
36
|
+
typeIfPresent('booking_opening_relative_days', obj.bookingOpeningRelativeDays);
|
|
37
|
+
typeIfPresent('booking_opening_time', obj.bookingOpeningTime);
|
|
38
|
+
typeIfPresent('booking_closing_relative_days', obj.bookingClosingRelativeDays);
|
|
39
|
+
typeIfPresent('booking_closing_time', obj.bookingClosingTime);
|
|
40
|
+
cy.GLO_checkbox([formName, 'flag_operational_active'], obj.flagOperationalActive);
|
|
41
|
+
cy.GLO_checkbox([formName, 'flag_dgn_allowed'], obj.flagDgnAllowed);
|
|
42
|
+
cy.GLO_checkbox([formName, 'flag_dgn_limited_quantity_allowed'], obj.flagDgnLimitedQuantityAllowed);
|
|
43
|
+
cy.GLO_checkbox([formName, 'flag_waste_allowed'], obj.flagWasteAllowed);
|
|
44
|
+
cy.GLO_checkbox([formName, 'monday'], obj.flagMonday);
|
|
45
|
+
cy.GLO_checkbox([formName, 'tuesday'], obj.flagTuesday);
|
|
46
|
+
cy.GLO_checkbox([formName, 'wednesday'], obj.flagWednesday);
|
|
47
|
+
cy.GLO_checkbox([formName, 'thursday'], obj.flagThursday);
|
|
48
|
+
cy.GLO_checkbox([formName, 'friday'], obj.flagFriday);
|
|
49
|
+
cy.GLO_checkbox([formName, 'saturday'], obj.flagSaturday);
|
|
50
|
+
cy.GLO_checkbox([formName, 'sunday'], obj.flagSunday);
|
|
51
|
+
if (obj.remark) {
|
|
52
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Remarks', open);
|
|
53
|
+
cy.GLO_addInput([addressFormName, 'local_LOG_CONN_SCHED_TIMES_REMARK'], obj.remark);
|
|
54
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Remarks', close);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const typeIfPresent = (fieldName, value) => {
|
|
58
|
+
if (value) {
|
|
59
|
+
cy.GLO_getElement([formName, fieldName]).find('.dx-texteditor-input').type(value);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const GLO_enterDocument = (obj) => {
|
|
2
|
+
const formName = 'ng$document_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, 'customer_approval_user'], obj.customerApprovalUser);
|
|
6
|
+
cy.GLO_addInput([formName, 'supplier_approval_user'], obj.supplierApprovalUser);
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objDocumentType = {
|
|
3
|
+
documentType?: string;
|
|
4
|
+
documentTypeStatus?: string;
|
|
5
|
+
referenceForClosingDate?: string;
|
|
6
|
+
offsetTimeReminderForClosingDate?: string;
|
|
7
|
+
incomingOutgoing?: string;
|
|
8
|
+
customerApprovalNeeded?: CheckState;
|
|
9
|
+
supplierApprovalNeeded?: CheckState;
|
|
10
|
+
visibleInCustomerPortal?: CheckState;
|
|
11
|
+
};
|
|
12
|
+
export declare const GLO_enterDocumentType: (obj: objDocumentType) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const GLO_enterDocumentType = (obj) => {
|
|
2
|
+
const formName = 'ng$document_type_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'document_type_code'], obj.documentType);
|
|
4
|
+
cy.GLO_addInput([formName, 'document_type_status'], obj.documentTypeStatus);
|
|
5
|
+
cy.GLO_addInput([formName, 'reference_for_closing_date'], obj.referenceForClosingDate);
|
|
6
|
+
cy.GLO_addInput([formName, 'offset_time_reminder_for_closing_date'], obj.offsetTimeReminderForClosingDate);
|
|
7
|
+
cy.GLO_addInput([formName, 'incoming_outgoing'], obj.incomingOutgoing);
|
|
8
|
+
cy.GLO_checkbox([formName, 'customer_approval_needed'], obj.customerApprovalNeeded);
|
|
9
|
+
cy.GLO_checkbox([formName, 'supplier_approval_needed'], obj.supplierApprovalNeeded);
|
|
10
|
+
cy.GLO_checkbox([formName, 'visible_in_customer_portal'], obj.visibleInCustomerPortal);
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objCountry = {
|
|
3
|
+
countryCode?: string;
|
|
4
|
+
isoCountryCode?: string;
|
|
5
|
+
isoCountryCode3?: string;
|
|
6
|
+
vatPrefix?: string;
|
|
7
|
+
dialCode?: string;
|
|
8
|
+
isActive?: CheckState;
|
|
9
|
+
useCounties?: CheckState;
|
|
10
|
+
useStates?: CheckState;
|
|
11
|
+
streetFormat?: string;
|
|
12
|
+
addressBlockFormat?: string;
|
|
13
|
+
translation?: string;
|
|
14
|
+
stateName?: string;
|
|
15
|
+
stateCode?: string;
|
|
16
|
+
countyName?: string;
|
|
17
|
+
postalCode?: string;
|
|
18
|
+
city?: string;
|
|
19
|
+
contextCountryCode?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const GLO_enterCountry: (obj: objCountry, part?: string) => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$country_dtl';
|
|
3
|
+
const formState = 'ng$country_state_dtl';
|
|
4
|
+
const formPostalcode = 'ng$postalcode_dtl';
|
|
5
|
+
export const GLO_enterCountry = (obj, part = 'country') => {
|
|
6
|
+
switch (part) {
|
|
7
|
+
case 'state': {
|
|
8
|
+
cy.GLO_addInput([formState, 'textbox_state_name'], obj.stateName);
|
|
9
|
+
cy.GLO_addInput([formState, 'textbox_state_code'], obj.stateCode);
|
|
10
|
+
cy.GLO_addInput([formState, 'textbox_vat_prefix'], obj.vatPrefix);
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
case 'county': {
|
|
14
|
+
cy.GLO_addInput(['ng$county_dtl', 'county'], obj.countyName);
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
case 'postalCode': {
|
|
18
|
+
cy.GLO_addInput([formPostalcode, 'textbox_state'], obj.stateName);
|
|
19
|
+
cy.GLO_addInput([formPostalcode, 'county_id'], obj.countyName);
|
|
20
|
+
cy.GLO_addInput([formPostalcode, 'postalcode'], obj.postalCode);
|
|
21
|
+
cy.GLO_addInput([formPostalcode, 'city'], obj.city);
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
default: {
|
|
25
|
+
cy.GLO_addInput([formName, 'country_code'], obj.countryCode);
|
|
26
|
+
cy.GLO_addInput([formName, 'iso_country_code'], obj.isoCountryCode);
|
|
27
|
+
cy.GLO_addInput([formName, 'iso_country_code_3'], obj.isoCountryCode3);
|
|
28
|
+
cy.GLO_addInput([formName, 'vat_prefix'], obj.vatPrefix);
|
|
29
|
+
cy.GLO_addInput([formName, 'international_dial_code'], obj.dialCode);
|
|
30
|
+
cy.GLO_checkbox([formName, 'is_active'], obj.isActive);
|
|
31
|
+
cy.GLO_checkbox([formName, 'flag_use_counties'], obj.useCounties);
|
|
32
|
+
cy.GLO_checkbox([formName, 'checkbox_use_states'], obj.useStates);
|
|
33
|
+
cy.GLO_addInput([formName, 'street_format'], obj.streetFormat);
|
|
34
|
+
cy.GLO_addInput([formName, 'textbox_addres_block_format'], obj.addressBlockFormat);
|
|
35
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', open);
|
|
36
|
+
if (obj.translation !== undefined) {
|
|
37
|
+
cy.GLO_getElement(['ng$basetabletranslation_uuid_lst_tab', 'grid']).within(() => {
|
|
38
|
+
cy.get('.editable-field').each((field) => {
|
|
39
|
+
cy.wrap(field).dblclick().type(obj.translation);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', close);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterDiscount = (obj) => {
|
|
3
|
+
const formName = 'ng$discounts_dtl';
|
|
4
|
+
cy.GLO_addInput([formName, 'discount_origin'], obj.discountOrigin);
|
|
5
|
+
cy.GLO_addInput([formName, 'discount_type'], obj.discountType);
|
|
6
|
+
cy.GLO_popupWindow([formName, 'btn_select_relation'], obj.relationCode);
|
|
7
|
+
cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
|
|
8
|
+
cy.GLO_addInput([`${formName}_contractual`, 'discount_perc_1'], obj.discountPerc1);
|
|
9
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
import { type objAddressPopup } from './GLO_addressPopup.js';
|
|
3
|
+
export type objEquipment = {
|
|
4
|
+
historyRemark?: string;
|
|
5
|
+
flagRentedOut?: CheckState;
|
|
6
|
+
buyer?: string;
|
|
7
|
+
equipmentCode?: string;
|
|
8
|
+
equipmentType?: string;
|
|
9
|
+
licensePlate?: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
equipmentCategory?: string;
|
|
12
|
+
inUseByRelation?: string;
|
|
13
|
+
flagIsActive?: CheckState;
|
|
14
|
+
seriesNr?: string;
|
|
15
|
+
lastKnownAddress?: objAddressPopup;
|
|
16
|
+
shipmentContainerType?: string;
|
|
17
|
+
shipmentContainerSubType?: string;
|
|
18
|
+
damaged?: CheckState;
|
|
19
|
+
temperatureControlled?: string;
|
|
20
|
+
rentedOutTo?: string;
|
|
21
|
+
oneTimeUse?: CheckState;
|
|
22
|
+
tarraWeight?: number;
|
|
23
|
+
flagHighValue?: CheckState;
|
|
24
|
+
exteriorHeight?: string | number;
|
|
25
|
+
roadTarra?: string | number;
|
|
26
|
+
flagDangerousGoods?: CheckState;
|
|
27
|
+
flagTemperatureContolledAllowed?: CheckState;
|
|
28
|
+
flagAlcoholAllowed?: CheckState;
|
|
29
|
+
flagWasteAllowed?: CheckState;
|
|
30
|
+
numberOfAxles?: string | number;
|
|
31
|
+
fuelType?: string;
|
|
32
|
+
euroClass?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const GLO_enterEquipment: (obj: objEquipment, tabName?: string) => void;
|