@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,28 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterReceiptLine$Logistics = (obj) => {
|
|
3
|
+
const formName = 'ng$receiptline$logistics_dtl';
|
|
4
|
+
const detailTabsName = 'tabs_70';
|
|
5
|
+
const formNameStockRef = 'ng$receiptline_dtl_stock_ref';
|
|
6
|
+
cy.GLO_addInput([formName, 'article_code'], obj.articleCode);
|
|
7
|
+
cy.GLO_addInput([formName, 'quantity_to_receive'], obj.quantity_to_receive);
|
|
8
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
9
|
+
cy.GLO_addInput([formName, 'articleunit_to_receive'], obj.unitCode);
|
|
10
|
+
cy.GLO_addInput([formName, 'transport_requirement_nr'], obj.transportRequirementNr);
|
|
11
|
+
cy.GLO_addInput([formName, 'external_transport_requirement_nr'], obj.externalTransportRequirementNr);
|
|
12
|
+
cy.GLO_addInput([formName, 'consignment'], obj.consignmentNr);
|
|
13
|
+
cy.GLO_addInput([formName, 'transport_requirement_goods_sequence_nr'], obj.transportRequirementGoodsSequenceNr);
|
|
14
|
+
cy.GLO_addInput([formName, 'external_transport_requirement_goods_sequence_nr'], obj.externalTransportRequirementGoodsSequenceNr);
|
|
15
|
+
cy.GLO_addInput([formName, 'external_lot_nr'], obj.externalLotNr);
|
|
16
|
+
cy.GLO_addInput([formName, 'transport_reference'], obj.transportReference);
|
|
17
|
+
cy.GLO_addInput([formName, 'goods_length'], obj.goodsLength);
|
|
18
|
+
cy.GLO_addInput([formName, 'goods_width'], obj.goodsWidth);
|
|
19
|
+
cy.GLO_addInput([formName, 'goods_height'], obj.goodsHeight);
|
|
20
|
+
if (obj.stockRef1 || obj.stockRef2 || obj.stockRef3 || obj.stockRef4) {
|
|
21
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Stock references', open);
|
|
22
|
+
cy.GLO_addInput([formNameStockRef, 'stock_ref_1'], obj.stockRef1);
|
|
23
|
+
cy.GLO_addInput([formNameStockRef, 'stock_ref_2'], obj.stockRef2);
|
|
24
|
+
cy.GLO_addInput([formNameStockRef, 'stock_ref_3'], obj.stockRef3);
|
|
25
|
+
cy.GLO_addInput([formNameStockRef, 'stock_ref_4'], obj.stockRef4);
|
|
26
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Stock references', close);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objRelationAddress = {
|
|
3
|
+
addressCode?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
countryCode?: string;
|
|
6
|
+
postalcode?: string | number;
|
|
7
|
+
city?: string;
|
|
8
|
+
streetName?: string;
|
|
9
|
+
flagManualCoordinates?: CheckState;
|
|
10
|
+
flagPostAddress?: CheckState;
|
|
11
|
+
flagDeliveryAddress?: CheckState;
|
|
12
|
+
flagInvoiceAddress?: CheckState;
|
|
13
|
+
flagLegalAddress?: CheckState;
|
|
14
|
+
flagVisitAddress?: CheckState;
|
|
15
|
+
flagStoreAddress?: CheckState;
|
|
16
|
+
subAddress?: string;
|
|
17
|
+
houseNumber?: number;
|
|
18
|
+
phoneNr?: string;
|
|
19
|
+
mobileNr?: string;
|
|
20
|
+
emailaddress?: string;
|
|
21
|
+
languageCode?: string;
|
|
22
|
+
representative?: string;
|
|
23
|
+
logisticLocationId?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const GLO_enterRelationAddress: (obj: objRelationAddress) => void;
|
|
26
|
+
export declare const GLO_enterRelationAddressOneTimeUse: (obj: objRelationAddress) => void;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { close, equalBool, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$relation_address_dtl';
|
|
3
|
+
const formNameCommunication = `${formName}_communication`;
|
|
4
|
+
const formNameOneTimeUse = 'ng$relation_address_one_time_use';
|
|
5
|
+
const formNameOperational = 'ng$relation_address_dtl_operational';
|
|
6
|
+
export const GLO_enterRelationAddress = (obj) => {
|
|
7
|
+
cy.GLO_addInput([formName, 'address_code'], obj.addressCode);
|
|
8
|
+
cy.GLO_addInput([formName, 'name'], obj.name);
|
|
9
|
+
cy.GLO_popupWindow([formName, 'country'], obj.countryCode);
|
|
10
|
+
cy.GLO_addInput([formName, 'city'], obj.city);
|
|
11
|
+
if (obj.streetName) {
|
|
12
|
+
cy.get('body').then(($body) => {
|
|
13
|
+
if ($body.find(`[data-cy$="${formName}.streetname"]`).length > 0) {
|
|
14
|
+
cy.GLO_addInput([formName, 'streetname'], obj.streetName);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
cy.GLO_addInput([formName, 'selector_streetname'], obj.streetName);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
cy.GLO_addInput([formName, 'subaddress'], obj.subAddress);
|
|
22
|
+
cy.GLO_addInput([formName, 'house_number'], obj.houseNumber);
|
|
23
|
+
cy.GLO_checkbox([formName, 'flag_manual_coordinates'], obj.flagManualCoordinates);
|
|
24
|
+
cy.GLO_checkbox([formName, 'flag_postaddress'], obj.flagPostAddress);
|
|
25
|
+
cy.GLO_checkbox([formName, 'flag_deliveryaddress'], obj.flagDeliveryAddress);
|
|
26
|
+
cy.GLO_checkbox([formName, 'flag_invoiceaddress'], obj.flagInvoiceAddress);
|
|
27
|
+
cy.GLO_checkbox([formName, 'flag_legaladdress'], obj.flagLegalAddress);
|
|
28
|
+
cy.GLO_checkbox([formName, 'flag_visitaddress'], obj.flagVisitAddress);
|
|
29
|
+
cy.GLO_checkbox([formName, 'flag_store'], obj.flagStoreAddress);
|
|
30
|
+
cy.GLO_addInput([formName, 'postal_code'], obj.postalcode);
|
|
31
|
+
if (obj.phoneNr || obj.mobileNr || obj.emailaddress || obj.languageCode || obj.representative)
|
|
32
|
+
enterCommunicationTab(obj);
|
|
33
|
+
if (obj.logisticLocationId) {
|
|
34
|
+
enterOperationalTab(obj);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const enterCommunicationTab = (obj) => {
|
|
38
|
+
cy.GLO_selectTab([formName, 'tabs_365'], 'Communication', open);
|
|
39
|
+
cy.GLO_addInput([formNameCommunication, 'telephone_nr'], obj.phoneNr);
|
|
40
|
+
cy.GLO_addInput([formNameCommunication, 'gsm_nr'], obj.mobileNr);
|
|
41
|
+
cy.GLO_addInput([formNameCommunication, 'emailaddress'], obj.emailaddress);
|
|
42
|
+
cy.GLO_addInput([formNameCommunication, 'language_code'], obj.languageCode);
|
|
43
|
+
cy.GLO_addInput([formNameCommunication, 'representative_id'], obj.representative);
|
|
44
|
+
cy.GLO_selectTab([formName, 'tabs_365'], 'Communication', close);
|
|
45
|
+
};
|
|
46
|
+
const enterOperationalTab = (obj) => {
|
|
47
|
+
cy.GLO_selectTab([formName, 'tabs_365'], 'Operational', open);
|
|
48
|
+
cy.GLO_popupWindow([formNameOperational, 'logistic_location_id'], obj.logisticLocationId, 'logistic_location_code', equalBool);
|
|
49
|
+
cy.GLO_selectTab([formName, 'tabs_365'], 'Operational', close);
|
|
50
|
+
};
|
|
51
|
+
export const GLO_enterRelationAddressOneTimeUse = (obj) => {
|
|
52
|
+
cy.GLO_addInput([formNameOneTimeUse, 'name'], obj.name);
|
|
53
|
+
cy.GLO_addInput([formNameOneTimeUse, 'streetname'], obj.streetName);
|
|
54
|
+
cy.GLO_addInput([formNameOneTimeUse, 'postal_code'], obj.postalcode);
|
|
55
|
+
cy.GLO_addInput([formNameOneTimeUse, 'city'], obj.city);
|
|
56
|
+
cy.GLO_addInput([formNameOneTimeUse, 'country_id'], obj.countryCode);
|
|
57
|
+
cy.GLO_addInput([formNameOneTimeUse, 'gsm_nr'], obj.mobileNr);
|
|
58
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const GLO_enterRelationBankAccount = (obj) => {
|
|
2
|
+
const formName = 'ng$bank_account_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'bank_account_type'], obj.bankAccountType);
|
|
4
|
+
cy.GLO_addInput([formName, 'bic'], obj.bic);
|
|
5
|
+
cy.GLO_addInput([formName, 'iban'], obj.iban);
|
|
6
|
+
cy.GLO_addInput([formName, 'bank_account_nr'], obj.bankAccountNr);
|
|
7
|
+
cy.GLO_addInput([formName, 'bank_country_1'], obj.country);
|
|
8
|
+
cy.GLO_addInput([formName, 'currency_id'], obj.currency);
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objrelationContact = {
|
|
3
|
+
firstname?: string;
|
|
4
|
+
lastname?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
telephoneNr?: string;
|
|
7
|
+
emailaddress?: string;
|
|
8
|
+
flagContactForAR?: CheckState;
|
|
9
|
+
flagContactForCarrierInstruction?: CheckState;
|
|
10
|
+
flagContactForAP?: CheckState;
|
|
11
|
+
flagContactForStockListing?: CheckState;
|
|
12
|
+
gender?: string;
|
|
13
|
+
nationality?: string;
|
|
14
|
+
relationDepartment?: string;
|
|
15
|
+
relationFunction?: string;
|
|
16
|
+
relationFlagPurchaseInvoice?: CheckState;
|
|
17
|
+
relationFlagSalesDelivery?: CheckState;
|
|
18
|
+
relationFlagPriceRequest?: CheckState;
|
|
19
|
+
termOfAddressShort?: string;
|
|
20
|
+
termOfAddressLong?: string;
|
|
21
|
+
mobileNr?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const GLO_enterRelationContact: (obj: objrelationContact) => void;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$relation_contact_dtl_general';
|
|
3
|
+
const formNameDetail = 'ng$relations_relation_contact_dtl';
|
|
4
|
+
const formNameCommunication = 'ng$relation_contact_dtl_communication';
|
|
5
|
+
const formNameRelation = `${formNameDetail}_relation`;
|
|
6
|
+
export const GLO_enterRelationContact = (obj) => {
|
|
7
|
+
cy.GLO_addInput([formName, 'firstname'], obj.firstname);
|
|
8
|
+
cy.GLO_addInput([formName, 'lastname'], obj.lastname);
|
|
9
|
+
cy.GLO_addInput([formName, 'title'], obj.title);
|
|
10
|
+
cy.GLO_radioButton([formName, 'gender'], obj.gender);
|
|
11
|
+
cy.GLO_addInput([formName, 'nationality_country_id'], obj.nationality);
|
|
12
|
+
if (obj.relationDepartment || obj.relationFunction || obj.relationFlagPurchaseInvoice)
|
|
13
|
+
enterRelationTab(obj);
|
|
14
|
+
// Communication tab
|
|
15
|
+
if (obj.telephoneNr || obj.emailaddress)
|
|
16
|
+
enterCommunicationTab(obj);
|
|
17
|
+
// Contact attributes tab
|
|
18
|
+
if (obj.flagContactForAR !== undefined || obj.flagContactForCarrierInstruction !== undefined || obj.flagContactForAP !== undefined) {
|
|
19
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Contact attributes', open);
|
|
20
|
+
cy.GLO_checkbox(['attribute_value_f1dc4d02_315b_49f9_b674_2dc43780076b'], obj.flagContactForAR);
|
|
21
|
+
cy.GLO_checkbox(['attribute_value_0dd9efcd_50cb_4398_be1d_962c3329ebc1'], obj.flagContactForCarrierInstruction);
|
|
22
|
+
cy.GLO_checkbox(['attribute_value_fe11be09_8e21_4109_be82_c3c022854d7c'], obj.flagContactForAP);
|
|
23
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Contact attributes', close);
|
|
24
|
+
}
|
|
25
|
+
if (obj.flagContactForStockListing !== undefined) {
|
|
26
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Contact attributes', open);
|
|
27
|
+
cy.GLO_checkbox(['attribute_value_3bd1ebf5_896e_420c_a24a_21015caa1b2c'], obj.flagContactForStockListing);
|
|
28
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Contact attributes', close);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const enterRelationTab = (obj) => {
|
|
32
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Relation', open);
|
|
33
|
+
cy.GLO_addInput([formNameRelation, 'department'], obj.relationDepartment);
|
|
34
|
+
cy.GLO_addInput([formNameRelation, 'function_in_company'], obj.relationFunction);
|
|
35
|
+
cy.GLO_checkbox([formNameRelation, 'flag_purchase_invoice'], obj.relationFlagPurchaseInvoice);
|
|
36
|
+
cy.GLO_checkbox([formNameRelation, 'flag_sales_delivery'], obj.relationFlagSalesDelivery);
|
|
37
|
+
cy.GLO_checkbox([formNameRelation, 'flag_pricerequest'], obj.relationFlagPriceRequest);
|
|
38
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Relation', close);
|
|
39
|
+
};
|
|
40
|
+
const enterCommunicationTab = (obj) => {
|
|
41
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Communication', open);
|
|
42
|
+
cy.GLO_addInput([formNameCommunication, 'telephone_nr'], obj.telephoneNr);
|
|
43
|
+
cy.GLO_addInput([formNameCommunication, 'emailaddress'], obj.emailaddress);
|
|
44
|
+
cy.GLO_selectTab([formNameDetail, 'tabs_relation_contact_dtl_relation'], 'Communication', close);
|
|
45
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objRelationGroupType = {
|
|
3
|
+
relationGroupType?: string;
|
|
4
|
+
flagCustomer?: CheckState;
|
|
5
|
+
flagSupplier?: CheckState;
|
|
6
|
+
};
|
|
7
|
+
export declare const GLO_enterRelationGroupType: (obj: objRelationGroupType) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const GLO_enterRelationGroupType = (obj) => {
|
|
2
|
+
const formName = 'ng$relation_group_type_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'relation_group_type'], obj.relationGroupType);
|
|
4
|
+
cy.GLO_checkbox([formName, 'flag_customer'], obj.flagCustomer);
|
|
5
|
+
cy.GLO_checkbox([formName, 'flag_supplier'], obj.flagSupplier);
|
|
6
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
import { type objAddressPopup } from './GLO_addressPopup.js';
|
|
3
|
+
export type objRelation = {
|
|
4
|
+
relationCode?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
countryGeneral?: string;
|
|
7
|
+
postalCodeGeneral?: string;
|
|
8
|
+
address?: objAddressPopup;
|
|
9
|
+
cityGeneral?: string;
|
|
10
|
+
streetnameGeneral?: string;
|
|
11
|
+
houseNumberGeneral?: string;
|
|
12
|
+
language?: string;
|
|
13
|
+
legalForm?: string;
|
|
14
|
+
representativeName?: string;
|
|
15
|
+
emailaddress?: string;
|
|
16
|
+
phoneNr?: string;
|
|
17
|
+
mobileNr?: string;
|
|
18
|
+
website?: string;
|
|
19
|
+
paymentConditionId?: string;
|
|
20
|
+
customerWayOfPaymentId?: string;
|
|
21
|
+
deliveryConditionId?: string;
|
|
22
|
+
invoiceCustomerCode?: string;
|
|
23
|
+
relationtype?: string;
|
|
24
|
+
flagInvoiceRelation?: CheckState;
|
|
25
|
+
vatNr?: string;
|
|
26
|
+
traderegisterNr?: string;
|
|
27
|
+
relationStatus?: string;
|
|
28
|
+
flagCustomer?: CheckState;
|
|
29
|
+
flagSupplier?: CheckState;
|
|
30
|
+
vatRegime?: string;
|
|
31
|
+
electronicInvoice?: CheckState;
|
|
32
|
+
supplierVatRegime?: string;
|
|
33
|
+
supplierVatId?: string;
|
|
34
|
+
supplierWayOfPaymentId?: string;
|
|
35
|
+
supplierDeliveryconditionId?: string;
|
|
36
|
+
supplierPaymentConditionId?: string;
|
|
37
|
+
flagSplitWHOPerSO?: CheckState;
|
|
38
|
+
flagSummaryDeliveries?: CheckState;
|
|
39
|
+
flagSummaryInvoices?: CheckState;
|
|
40
|
+
flagReadyForInvoicing?: CheckState;
|
|
41
|
+
flagPrincipal?: CheckState;
|
|
42
|
+
responsible?: string;
|
|
43
|
+
vatRegimeCustomerTab?: string;
|
|
44
|
+
extraSearchCode?: string;
|
|
45
|
+
eori?: string;
|
|
46
|
+
dunsNr?: string;
|
|
47
|
+
flagPeppol?: CheckState;
|
|
48
|
+
peppolCode?: string;
|
|
49
|
+
debtorCode?: string;
|
|
50
|
+
office?: string;
|
|
51
|
+
newServiceLevel?: string;
|
|
52
|
+
relationGroupType?: string;
|
|
53
|
+
classification?: string;
|
|
54
|
+
flagInternalRelation?: CheckState;
|
|
55
|
+
flagTransporter?: CheckState;
|
|
56
|
+
flagDangerousGoods?: CheckState;
|
|
57
|
+
flagHighValueAllowed?: CheckState;
|
|
58
|
+
flagTemperatureContolledAllowed?: CheckState;
|
|
59
|
+
flagAlcoholAllowed?: CheckState;
|
|
60
|
+
flagWasteAllowed?: CheckState;
|
|
61
|
+
officeSupplier?: string;
|
|
62
|
+
relationGroupTypeSupplier?: string;
|
|
63
|
+
classificationSupplier?: string;
|
|
64
|
+
};
|
|
65
|
+
export declare const GLO_enterRelation: (obj: objRelation, formName?: string) => void;
|
|
66
|
+
export declare const GLO_enterCustomer: (obj: objRelation) => void;
|
|
67
|
+
export declare const GLO_enterSupplier: (obj: objRelation) => void;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { close, open, skipCheck, span } from '../tsHelper.js';
|
|
2
|
+
import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
|
|
3
|
+
const formNameString = 'ng$relations_dtl';
|
|
4
|
+
const formNameGeneral = 'ng$relations_dtl_general';
|
|
5
|
+
const formNameCustomer = 'ng$relations_dtl_customer';
|
|
6
|
+
const formNameSupplier = 'ng$relations_dtl_supplier';
|
|
7
|
+
const formNameTransporter = 'ng$relations_dtl_transporter';
|
|
8
|
+
export const GLO_enterRelation = (obj, formName = formNameString) => {
|
|
9
|
+
cy.GLO_addInput([formName, 'relationtype'], obj.relationtype);
|
|
10
|
+
cy.GLO_addInput([formName, 'relation_code'], obj.relationCode);
|
|
11
|
+
cy.GLO_addInput([formName, 'extra_search_code'], obj.extraSearchCode);
|
|
12
|
+
cy.GLO_addInput([formName, 'name'], obj.name);
|
|
13
|
+
if (obj.postalCodeGeneral) {
|
|
14
|
+
cy.GLO_addInput([formName, 'postal_code_general'], obj.postalCodeGeneral);
|
|
15
|
+
cy.GLO_checkLoadingIndicator();
|
|
16
|
+
cy.get('body').then(($body) => {
|
|
17
|
+
if ($body.find('.svy-dialog').length > 0) {
|
|
18
|
+
if ($body.find('.svy-dialog [row-index]').length === 0) {
|
|
19
|
+
cy.GLO_log('No cities found for this postal code, allowing manual input');
|
|
20
|
+
cy.GLO_clickButton(['ng$svy_nav_selection', 'btn_cancel']);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (obj.cityGeneral) {
|
|
24
|
+
cy.GLO_dblClickRowInGrid(span, ['ng$postalcode_sel', 'grid'], obj.cityGeneral, undefined, skipCheck);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error('Multiple muncipalities detected, obj.cityGeneral required');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (obj.address) {
|
|
33
|
+
cy.GLO_clearField([formName, 'address']);
|
|
34
|
+
cy.GLO_clickButton([formName, 'address'], 'fa-search');
|
|
35
|
+
GLO_enterAddressPopup(obj.address);
|
|
36
|
+
}
|
|
37
|
+
if (obj.cityGeneral) {
|
|
38
|
+
cy.GLO_getElement([formName, 'city_general'])
|
|
39
|
+
.find('.dx-texteditor-input')
|
|
40
|
+
.invoke('val')
|
|
41
|
+
.then((filledInCity) => {
|
|
42
|
+
if (String(filledInCity) !== obj.cityGeneral) {
|
|
43
|
+
cy.GLO_addInput([formName, 'city_general'], obj.cityGeneral);
|
|
44
|
+
cy.GLO_checkLoadingIndicator();
|
|
45
|
+
cy.get('body').then(($body) => {
|
|
46
|
+
if ($body.find('.svy-dialog').length > 0) {
|
|
47
|
+
if ($body.find('.svy-dialog [row-index]').length === 0)
|
|
48
|
+
cy.GLO_clickButton(['ng$svy_nav_selection', 'btn_cancel']);
|
|
49
|
+
else
|
|
50
|
+
cy.GLO_dblClickRowInGrid(span, ['ng$postalcode_sel', 'grid'], obj.cityGeneral, undefined, skipCheck);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
cy.GLO_addInput([formName, 'relation_status'], obj.relationStatus);
|
|
57
|
+
cy.GLO_addInput([formName, 'country_general'], obj.countryGeneral);
|
|
58
|
+
cy.GLO_addInput([formName, 'streetname_general'], obj.streetnameGeneral);
|
|
59
|
+
cy.GLO_addInput([formName, 'house_number_general'], obj.houseNumberGeneral);
|
|
60
|
+
cy.GLO_checkbox([formName, 'flag_invoice_relation'], obj.flagInvoiceRelation);
|
|
61
|
+
cy.GLO_checkbox([formName, 'flag_customer'], obj.flagCustomer);
|
|
62
|
+
cy.GLO_checkbox([formName, 'flag_supplier'], obj.flagSupplier);
|
|
63
|
+
cy.GLO_checkbox([formName, 'flag_principal'], obj.flagPrincipal);
|
|
64
|
+
cy.GLO_checkbox([formName, 'flag_transporter'], obj.flagTransporter);
|
|
65
|
+
cy.GLO_checkbox([formName, 'flag_internal_relation'], obj.flagInternalRelation);
|
|
66
|
+
cy.GLO_addInput([formName, 'telephone_nr'], obj.phoneNr);
|
|
67
|
+
cy.GLO_addInput([formName, 'gsm_nr'], obj.mobileNr);
|
|
68
|
+
if (obj.legalForm ||
|
|
69
|
+
obj.representativeName ||
|
|
70
|
+
obj.emailaddress ||
|
|
71
|
+
obj.vatNr ||
|
|
72
|
+
obj.traderegisterNr ||
|
|
73
|
+
obj.language ||
|
|
74
|
+
obj.eori ||
|
|
75
|
+
obj.dunsNr ||
|
|
76
|
+
obj.flagPeppol ||
|
|
77
|
+
obj.peppolCode) {
|
|
78
|
+
enterGeneralrTab(obj, formName);
|
|
79
|
+
}
|
|
80
|
+
if (obj.paymentConditionId ||
|
|
81
|
+
obj.customerWayOfPaymentId ||
|
|
82
|
+
obj.deliveryConditionId ||
|
|
83
|
+
obj.electronicInvoice ||
|
|
84
|
+
obj.invoiceCustomerCode ||
|
|
85
|
+
obj.flagSplitWHOPerSO ||
|
|
86
|
+
obj.flagSummaryDeliveries ||
|
|
87
|
+
obj.flagSummaryInvoices ||
|
|
88
|
+
obj.vatRegime ||
|
|
89
|
+
obj.debtorCode ||
|
|
90
|
+
obj.office ||
|
|
91
|
+
obj.newServiceLevel ||
|
|
92
|
+
obj.relationGroupType ||
|
|
93
|
+
obj.classification) {
|
|
94
|
+
enterCustomerTab(obj, formName);
|
|
95
|
+
}
|
|
96
|
+
if (obj.officeSupplier ||
|
|
97
|
+
obj.relationGroupTypeSupplier ||
|
|
98
|
+
obj.classificationSupplier ||
|
|
99
|
+
obj.supplierVatRegime ||
|
|
100
|
+
obj.supplierVatId ||
|
|
101
|
+
obj.supplierWayOfPaymentId ||
|
|
102
|
+
obj.supplierDeliveryconditionId ||
|
|
103
|
+
obj.supplierPaymentConditionId) {
|
|
104
|
+
enterSupplierTab(obj, formName);
|
|
105
|
+
}
|
|
106
|
+
if (obj.flagDangerousGoods || obj.flagHighValueAllowed || obj.flagTemperatureContolledAllowed || obj.flagAlcoholAllowed || obj.flagWasteAllowed) {
|
|
107
|
+
enterTransporterTab(obj, formName);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
// Redirect to the normal form but use the formname of customers
|
|
111
|
+
export const GLO_enterCustomer = (obj) => {
|
|
112
|
+
const formNameCustomer = 'ng$customers_dtl';
|
|
113
|
+
GLO_enterRelation(obj, formNameCustomer);
|
|
114
|
+
};
|
|
115
|
+
// Redirect to the normal form but use the formname of supplier
|
|
116
|
+
export const GLO_enterSupplier = (obj) => {
|
|
117
|
+
const formNameSupplier = 'ng$suppliers_dtl';
|
|
118
|
+
GLO_enterRelation(obj, formNameSupplier);
|
|
119
|
+
};
|
|
120
|
+
// Customer tab
|
|
121
|
+
const enterCustomerTab = (obj, formName = 'ng$relations_dtl') => {
|
|
122
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Customer', open);
|
|
123
|
+
cy.GLO_addInput([formNameCustomer, 'vat_regime_id'], obj.vatRegime);
|
|
124
|
+
cy.GLO_addInput([formNameCustomer, 'paymentcondition_id'], obj.paymentConditionId);
|
|
125
|
+
cy.GLO_addInput([formNameCustomer, 'way_of_payment_id'], obj.customerWayOfPaymentId);
|
|
126
|
+
cy.GLO_addInput([formNameCustomer, 'deliverycondition_id'], obj.deliveryConditionId);
|
|
127
|
+
cy.GLO_checkbox([formNameCustomer, 'electronic_invoice'], obj.electronicInvoice);
|
|
128
|
+
cy.GLO_checkbox([formNameCustomer, 'flag_split_wo_per_so'], obj.flagSplitWHOPerSO);
|
|
129
|
+
cy.GLO_checkbox([formNameCustomer, 'summary_delivery'], obj.flagSummaryDeliveries);
|
|
130
|
+
cy.GLO_checkbox([formNameCustomer, 'summary_invoice'], obj.flagSummaryInvoices);
|
|
131
|
+
cy.GLO_checkbox([formNameCustomer, 'flag_ready_for_invoicing'], obj.flagReadyForInvoicing);
|
|
132
|
+
cy.GLO_addInput([formNameCustomer, 'responsible_user_id'], obj.responsible);
|
|
133
|
+
cy.GLO_addInput([formNameCustomer, 'vat_regime_id'], obj.vatRegimeCustomerTab);
|
|
134
|
+
if (obj.invoiceCustomerCode) {
|
|
135
|
+
cy.GLO_addInput([formNameCustomer, 'invoice_customer_code'], obj.invoiceCustomerCode);
|
|
136
|
+
cy.GLO_checkLoadingIndicator();
|
|
137
|
+
}
|
|
138
|
+
cy.GLO_addInput([formNameCustomer, 'debtorcode_accountancy'], obj.debtorCode);
|
|
139
|
+
cy.GLO_addInput([formNameCustomer, 'office'], obj.office);
|
|
140
|
+
cy.GLO_addInput([formNameCustomer, 'new_service_level'], obj.newServiceLevel);
|
|
141
|
+
cy.GLO_addInput([formNameCustomer, 'relation_group_type'], obj.relationGroupType);
|
|
142
|
+
cy.GLO_addInput([formNameCustomer, 'classification'], obj.classification);
|
|
143
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Customer', close);
|
|
144
|
+
};
|
|
145
|
+
// General tab
|
|
146
|
+
const enterGeneralrTab = (obj, formName = 'ng$relations_dtl') => {
|
|
147
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
|
|
148
|
+
cy.GLO_addInput([formNameGeneral, 'legal_form'], obj.legalForm);
|
|
149
|
+
cy.GLO_addInput([formNameGeneral, 'vat_nr'], obj.vatNr);
|
|
150
|
+
if (obj.language) {
|
|
151
|
+
cy.GLO_addInput([formNameGeneral, 'language_code'], obj.language);
|
|
152
|
+
cy.GLO_dialogChoice('Yes');
|
|
153
|
+
}
|
|
154
|
+
cy.GLO_popupWindow([formNameGeneral, 'representative_name'], obj.representativeName);
|
|
155
|
+
cy.GLO_addInput([formNameGeneral, 'emailaddress'], obj.emailaddress);
|
|
156
|
+
cy.GLO_addInput([formNameGeneral, 'traderegister_nr'], obj.traderegisterNr);
|
|
157
|
+
cy.GLO_addInput([formNameGeneral, 'website'], obj.website);
|
|
158
|
+
cy.GLO_addInput([formNameGeneral, 'eori'], obj.eori);
|
|
159
|
+
cy.GLO_addInput([formNameGeneral, 'duns_nr'], obj.dunsNr);
|
|
160
|
+
cy.GLO_checkbox([formNameGeneral, 'flag_peppol'], obj.flagPeppol);
|
|
161
|
+
cy.GLO_addInput([formNameGeneral, 'peppol_code'], obj.peppolCode);
|
|
162
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', close);
|
|
163
|
+
};
|
|
164
|
+
// Supplier tab
|
|
165
|
+
const enterSupplierTab = (obj, formName = 'ng$relations_dtl') => {
|
|
166
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Supplier', open);
|
|
167
|
+
cy.GLO_addInput([formNameSupplier, 'vat_regime_id'], obj.supplierVatRegime);
|
|
168
|
+
cy.GLO_addInput([formNameSupplier, 'vat_id'], obj.supplierVatId);
|
|
169
|
+
cy.GLO_addInput([formNameSupplier, 'way_of_payment_id'], obj.supplierWayOfPaymentId);
|
|
170
|
+
cy.GLO_addInput([formNameSupplier, 'deliverycondition_id'], obj.supplierDeliveryconditionId);
|
|
171
|
+
cy.GLO_addInput([formNameSupplier, 'paymentcondition_id'], obj.supplierPaymentConditionId);
|
|
172
|
+
cy.GLO_addInput([formNameSupplier, 'office'], obj.officeSupplier);
|
|
173
|
+
cy.GLO_addInput([formNameSupplier, 'relation_group_type'], obj.relationGroupTypeSupplier);
|
|
174
|
+
cy.GLO_addInput([formNameSupplier, 'classification'], obj.classificationSupplier);
|
|
175
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Supplier', close);
|
|
176
|
+
};
|
|
177
|
+
// Transporter tab
|
|
178
|
+
const enterTransporterTab = (obj, formName = 'ng$relations_dtl') => {
|
|
179
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Transporter', open);
|
|
180
|
+
cy.GLO_checkbox([formNameTransporter, 'flag_dgn'], obj.flagDangerousGoods);
|
|
181
|
+
cy.GLO_checkbox([formNameTransporter, 'flag_high_value'], obj.flagHighValueAllowed);
|
|
182
|
+
cy.GLO_checkbox([formNameTransporter, 'flag_tcl_allowed'], obj.flagTemperatureContolledAllowed);
|
|
183
|
+
cy.GLO_checkbox([formNameTransporter, 'flag_alcohol_allowed'], obj.flagAlcoholAllowed);
|
|
184
|
+
cy.GLO_checkbox([formNameTransporter, 'flag_waste_allowed'], obj.flagWasteAllowed);
|
|
185
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Transporter', close);
|
|
186
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objRelationType = {
|
|
3
|
+
relationtype_code?: string;
|
|
4
|
+
flag_customer?: CheckState;
|
|
5
|
+
flag_supplier?: CheckState;
|
|
6
|
+
flag_carrier?: CheckState;
|
|
7
|
+
flag_agent?: CheckState;
|
|
8
|
+
flag_transporter?: CheckState;
|
|
9
|
+
flag_hide_in_general_selection?: CheckState;
|
|
10
|
+
currency_id?: string;
|
|
11
|
+
vat_regime_id?: string;
|
|
12
|
+
discountpercentage?: number;
|
|
13
|
+
translations?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const GLO_enterRelationType: (obj: objRelationType) => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterRelationType = (obj) => {
|
|
3
|
+
const formName = 'ng$relationtype_dtl';
|
|
4
|
+
const formNameGeneral = 'ng$relationtype_dtl_general';
|
|
5
|
+
const formNameTranslations = 'ng$basetabletranslation_uuid_lst_tab';
|
|
6
|
+
// Main form
|
|
7
|
+
cy.GLO_addInput([formName, 'relationtype_code'], obj.relationtype_code);
|
|
8
|
+
cy.GLO_checkbox([formName, 'flag_customer'], obj.flag_customer);
|
|
9
|
+
cy.GLO_checkbox([formName, 'flag_supplier'], obj.flag_supplier);
|
|
10
|
+
cy.GLO_checkbox([formName, 'flag_carrier'], obj.flag_carrier);
|
|
11
|
+
cy.GLO_checkbox([formName, 'flag_agent'], obj.flag_agent);
|
|
12
|
+
cy.GLO_checkbox([formName, 'flag_transporter'], obj.flag_transporter);
|
|
13
|
+
cy.GLO_checkbox([formName, 'flag_hide_in_general_selection'], obj.flag_hide_in_general_selection);
|
|
14
|
+
// General tab
|
|
15
|
+
if (obj.currency_id || obj.vat_regime_id || obj.discountpercentage) {
|
|
16
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
|
|
17
|
+
cy.GLO_addInput([formNameGeneral, 'currency_id'], obj.currency_id);
|
|
18
|
+
cy.GLO_addInput([formNameGeneral, 'vat_regime_id'], obj.vat_regime_id);
|
|
19
|
+
cy.GLO_addInput([formNameGeneral, 'discountpercentage'], obj.discountpercentage);
|
|
20
|
+
}
|
|
21
|
+
if (obj.translations) {
|
|
22
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', open);
|
|
23
|
+
cy.GLO_getAllRowsInGrid([formNameTranslations, 'grid'])
|
|
24
|
+
.its('length')
|
|
25
|
+
.then((length) => {
|
|
26
|
+
for (let i = 0; i < length; i++) {
|
|
27
|
+
cy.GLO_fillInfieldInGrid([formNameTranslations, 'grid'], i, 'desc', obj.translations);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objRemarkType = {
|
|
3
|
+
remarkTypeCode?: string;
|
|
4
|
+
useAsRemark?: CheckState;
|
|
5
|
+
useAsInstruction?: CheckState;
|
|
6
|
+
useAsClause?: CheckState;
|
|
7
|
+
visiblePortal?: CheckState;
|
|
8
|
+
editablePortal?: CheckState;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterRemarkType: (obj: objRemarkType) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const GLO_enterRemarkType = (obj) => {
|
|
2
|
+
const formName = 'ng$remark_type_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'remark_type_code'], obj.remarkTypeCode);
|
|
4
|
+
cy.GLO_checkbox([formName, 'flag_use_as_remark'], obj.useAsRemark);
|
|
5
|
+
cy.GLO_checkbox([formName, 'flag_use_as_handling_instruction'], obj.useAsInstruction);
|
|
6
|
+
cy.GLO_checkbox([formName, 'flag_use_as_clause'], obj.useAsClause);
|
|
7
|
+
cy.GLO_checkbox([formName, 'flag_is_visible_in_portal'], obj.visiblePortal);
|
|
8
|
+
cy.GLO_checkbox([formName, 'flag_is_editable_in_portal'], obj.editablePortal);
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterRemarkTypeDefaultValue = (obj) => {
|
|
3
|
+
const formName = 'ng$remark_type_defaults_dtl';
|
|
4
|
+
const formNameTranslations = 'ng$basetabletranslation_uuid_lst_tab';
|
|
5
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', open);
|
|
6
|
+
cy.GLO_getAllRowsInGrid([formNameTranslations, 'grid'])
|
|
7
|
+
.its('length')
|
|
8
|
+
.then((length) => {
|
|
9
|
+
for (let i = 0; i < length; i++) {
|
|
10
|
+
cy.GLO_fillInfieldInGrid([formNameTranslations, 'grid'], i, 'desc', obj.translations);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', close);
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objRemarkTypeEntityType = {
|
|
3
|
+
entityType?: string;
|
|
4
|
+
sortOrder?: number;
|
|
5
|
+
default?: CheckState;
|
|
6
|
+
copyMultiple?: CheckState;
|
|
7
|
+
allowToChangeDefaultValue?: CheckState;
|
|
8
|
+
relationForLanguage?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterRemarkTypeEntityType: (obj: objRemarkTypeEntityType) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const GLO_enterRemarkTypeEntityType = (obj) => {
|
|
2
|
+
const formName = 'ng$remark_type_entity_type_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'entity_type_id'], obj.entityType);
|
|
4
|
+
cy.GLO_addInput([formName, 'sort_order'], obj.sortOrder);
|
|
5
|
+
cy.GLO_checkbox([formName, 'flag_default'], obj.default);
|
|
6
|
+
cy.GLO_checkbox([formName, 'flag_copy_multiple'], obj.copyMultiple);
|
|
7
|
+
cy.GLO_checkbox([formName, 'allow_change_default'], obj.allowToChangeDefaultValue);
|
|
8
|
+
cy.GLO_addInput([formName, 'relation_language'], obj.relationForLanguage);
|
|
9
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const GLO_enterRepresentative = (obj) => {
|
|
2
|
+
const formName = 'ng$representative_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'representative_code'], obj.representativeCode);
|
|
4
|
+
cy.GLO_addInput([formName, 'name'], obj.name);
|
|
5
|
+
cy.GLO_checkbox([formName, 'flag_is_sales_manager'], obj.flagSalesManager);
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type objSalesInvoice = {
|
|
2
|
+
invoiceType?: string;
|
|
3
|
+
relation?: string;
|
|
4
|
+
externalInvoiceNr?: string | number;
|
|
5
|
+
externalInvoiceDate?: string;
|
|
6
|
+
deliveryCondition?: string;
|
|
7
|
+
paymentCondition?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const GLO_enterSalesInvoice: (obj: objSalesInvoice) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { close, input, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$sales_invoice_dtl';
|
|
3
|
+
const formNameInvoiceAmounts = 'ng$sales_invoice_dtl_general';
|
|
4
|
+
export const GLO_enterSalesInvoice = (obj) => {
|
|
5
|
+
cy.GLO_addInput([formName, 'invoice_type'], obj.invoiceType);
|
|
6
|
+
cy.GLO_popupWindow([formName, 'relation'], obj.relation);
|
|
7
|
+
cy.GLO_addInput([formName, 'external_invoice_nr'], obj.externalInvoiceNr);
|
|
8
|
+
cy.GLO_addDate(input, [formName, 'external_invoice_date'], obj.externalInvoiceDate);
|
|
9
|
+
if (obj.deliveryCondition || obj.paymentCondition) {
|
|
10
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Invoice amounts', open);
|
|
11
|
+
cy.GLO_addInput([formNameInvoiceAmounts, 'deliverycondition_id'], obj.deliveryCondition);
|
|
12
|
+
cy.GLO_addInput([formNameInvoiceAmounts, 'paymentcondition_id'], obj.paymentCondition);
|
|
13
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Invoice amounts', close);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objSalesInvoiceLine = {
|
|
3
|
+
articleCode?: string;
|
|
4
|
+
quantity?: number;
|
|
5
|
+
articlePrice?: number;
|
|
6
|
+
contractualDiscount?: Partial<Record<1 | 2 | 3, number>>;
|
|
7
|
+
flagNominalContractDiscount?: CheckState;
|
|
8
|
+
};
|
|
9
|
+
export declare const GLO_enterSalesInvoiceLine: (obj: objSalesInvoiceLine) => void;
|