@globisnv/cypress-core 0.0.1 → 0.0.2
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 +1 -1
- package/package.json +7 -7
- package/dist/apiMethods/IGS_request.d.ts +0 -98
- package/dist/apiMethods/IGS_request.js +0 -161
- package/dist/apiMethods/IGS_response.d.ts +0 -47
- package/dist/apiMethods/IGS_response.js +0 -1
- package/dist/blueprints/GLO_addressPopup.d.ts +0 -45
- package/dist/blueprints/GLO_addressPopup.js +0 -96
- package/dist/blueprints/GLO_article.d.ts +0 -45
- package/dist/blueprints/GLO_article.js +0 -110
- package/dist/blueprints/GLO_articleLot.d.ts +0 -12
- package/dist/blueprints/GLO_articleLot.js +0 -23
- package/dist/blueprints/GLO_articleVersion.d.ts +0 -4
- package/dist/blueprints/GLO_articleVersion.js +0 -4
- package/dist/blueprints/GLO_attachmentPopup.d.ts +0 -9
- package/dist/blueprints/GLO_attachmentPopup.js +0 -10
- package/dist/blueprints/GLO_bankAccount.d.ts +0 -7
- package/dist/blueprints/GLO_bankAccount.js +0 -7
- package/dist/blueprints/GLO_billingProcess.d.ts +0 -4
- package/dist/blueprints/GLO_billingProcess.js +0 -4
- package/dist/blueprints/GLO_billingProposal.d.ts +0 -9
- package/dist/blueprints/GLO_billingProposal.js +0 -9
- package/dist/blueprints/GLO_cancel.d.ts +0 -7
- package/dist/blueprints/GLO_cancel.js +0 -7
- package/dist/blueprints/GLO_commandlist.d.ts +0 -10
- package/dist/blueprints/GLO_commandlist.js +0 -10
- package/dist/blueprints/GLO_complaint.d.ts +0 -27
- package/dist/blueprints/GLO_complaint.js +0 -51
- package/dist/blueprints/GLO_composition.d.ts +0 -14
- package/dist/blueprints/GLO_composition.js +0 -20
- package/dist/blueprints/GLO_consignment.d.ts +0 -61
- package/dist/blueprints/GLO_consignment.js +0 -104
- package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +0 -6
- package/dist/blueprints/GLO_consignmentContainerGroup.js +0 -6
- package/dist/blueprints/GLO_consignmentGoods.d.ts +0 -40
- package/dist/blueprints/GLO_consignmentGoods.js +0 -62
- package/dist/blueprints/GLO_consignmentHandling.d.ts +0 -4
- package/dist/blueprints/GLO_consignmentHandling.js +0 -4
- package/dist/blueprints/GLO_consignmentOrder.d.ts +0 -31
- package/dist/blueprints/GLO_consignmentOrder.js +0 -37
- package/dist/blueprints/GLO_consignmentPart.d.ts +0 -13
- package/dist/blueprints/GLO_consignmentPart.js +0 -13
- package/dist/blueprints/GLO_consignmentParts.d.ts +0 -5
- package/dist/blueprints/GLO_consignmentParts.js +0 -12
- package/dist/blueprints/GLO_consignmentPrice.d.ts +0 -11
- package/dist/blueprints/GLO_consignmentPrice.js +0 -19
- package/dist/blueprints/GLO_consignmentSupplier.d.ts +0 -6
- package/dist/blueprints/GLO_consignmentSupplier.js +0 -11
- package/dist/blueprints/GLO_contacts.d.ts +0 -10
- package/dist/blueprints/GLO_contacts.js +0 -14
- package/dist/blueprints/GLO_container.d.ts +0 -6
- package/dist/blueprints/GLO_container.js +0 -4
- package/dist/blueprints/GLO_contract.d.ts +0 -22
- package/dist/blueprints/GLO_contract.js +0 -30
- package/dist/blueprints/GLO_contractArticle.d.ts +0 -17
- package/dist/blueprints/GLO_contractArticle.js +0 -35
- package/dist/blueprints/GLO_contractArticleCost.d.ts +0 -5
- package/dist/blueprints/GLO_contractArticleCost.js +0 -8
- package/dist/blueprints/GLO_countryVatZone.d.ts +0 -8
- package/dist/blueprints/GLO_countryVatZone.js +0 -9
- package/dist/blueprints/GLO_currencyDeviation.d.ts +0 -14
- package/dist/blueprints/GLO_currencyDeviation.js +0 -15
- package/dist/blueprints/GLO_customerArticle.d.ts +0 -12
- package/dist/blueprints/GLO_customerArticle.js +0 -15
- package/dist/blueprints/GLO_customsFlow.d.ts +0 -8
- package/dist/blueprints/GLO_customsFlow.js +0 -19
- package/dist/blueprints/GLO_customsFlowDefinition.d.ts +0 -15
- package/dist/blueprints/GLO_customsFlowDefinition.js +0 -14
- package/dist/blueprints/GLO_customsUnion.d.ts +0 -4
- package/dist/blueprints/GLO_customsUnion.js +0 -4
- package/dist/blueprints/GLO_deliveryReceipt.d.ts +0 -10
- package/dist/blueprints/GLO_deliveryReceipt.js +0 -22
- package/dist/blueprints/GLO_departureSchedule.d.ts +0 -27
- package/dist/blueprints/GLO_departureSchedule.js +0 -57
- package/dist/blueprints/GLO_departureScheduleTimes.d.ts +0 -49
- package/dist/blueprints/GLO_departureScheduleTimes.js +0 -61
- package/dist/blueprints/GLO_document.d.ts +0 -7
- package/dist/blueprints/GLO_document.js +0 -7
- package/dist/blueprints/GLO_documentAttachment.d.ts +0 -4
- package/dist/blueprints/GLO_documentAttachment.js +0 -4
- package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +0 -5
- package/dist/blueprints/GLO_documentDefinitionEntity.js +0 -5
- package/dist/blueprints/GLO_documentGroup.d.ts +0 -4
- package/dist/blueprints/GLO_documentGroup.js +0 -4
- package/dist/blueprints/GLO_documentType.d.ts +0 -12
- package/dist/blueprints/GLO_documentType.js +0 -11
- package/dist/blueprints/GLO_enterCountry.d.ts +0 -21
- package/dist/blueprints/GLO_enterCountry.js +0 -47
- package/dist/blueprints/GLO_enterDiscount.d.ts +0 -8
- package/dist/blueprints/GLO_enterDiscount.js +0 -9
- package/dist/blueprints/GLO_equipment.d.ts +0 -34
- package/dist/blueprints/GLO_equipment.js +0 -55
- package/dist/blueprints/GLO_equipmentCategory.d.ts +0 -15
- package/dist/blueprints/GLO_equipmentCategory.js +0 -14
- package/dist/blueprints/GLO_equipmentEntity.d.ts +0 -5
- package/dist/blueprints/GLO_equipmentEntity.js +0 -5
- package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +0 -13
- package/dist/blueprints/GLO_equipmentServiceCategory.js +0 -13
- package/dist/blueprints/GLO_equipmentType.d.ts +0 -21
- package/dist/blueprints/GLO_equipmentType.js +0 -20
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +0 -13
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +0 -12
- package/dist/blueprints/GLO_fieldInputValidation.d.ts +0 -46
- package/dist/blueprints/GLO_fieldInputValidation.js +0 -73
- package/dist/blueprints/GLO_formula.d.ts +0 -9
- package/dist/blueprints/GLO_formula.js +0 -9
- package/dist/blueprints/GLO_gang.d.ts +0 -12
- package/dist/blueprints/GLO_gang.js +0 -12
- package/dist/blueprints/GLO_holiday.d.ts +0 -7
- package/dist/blueprints/GLO_holiday.js +0 -8
- package/dist/blueprints/GLO_journey.d.ts +0 -18
- package/dist/blueprints/GLO_journey.js +0 -24
- package/dist/blueprints/GLO_journeyStop.d.ts +0 -32
- package/dist/blueprints/GLO_journeyStop.js +0 -44
- package/dist/blueprints/GLO_layout.d.ts +0 -6
- package/dist/blueprints/GLO_layout.js +0 -6
- package/dist/blueprints/GLO_logging.d.ts +0 -9
- package/dist/blueprints/GLO_logging.js +0 -12
- package/dist/blueprints/GLO_logisticConnection.d.ts +0 -10
- package/dist/blueprints/GLO_logisticConnection.js +0 -11
- package/dist/blueprints/GLO_logisticConnectionType.d.ts +0 -5
- package/dist/blueprints/GLO_logisticConnectionType.js +0 -5
- package/dist/blueprints/GLO_logisticContract.d.ts +0 -28
- package/dist/blueprints/GLO_logisticContract.js +0 -80
- package/dist/blueprints/GLO_logisticContractDetail.d.ts +0 -42
- package/dist/blueprints/GLO_logisticContractDetail.js +0 -122
- package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +0 -11
- package/dist/blueprints/GLO_logisticContractDetailHandling.js +0 -14
- package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +0 -5
- package/dist/blueprints/GLO_logisticContractDetailItem.js +0 -8
- package/dist/blueprints/GLO_logisticContractItem.d.ts +0 -14
- package/dist/blueprints/GLO_logisticContractItem.js +0 -40
- package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +0 -4
- package/dist/blueprints/GLO_logisticContractItemActivity.js +0 -4
- package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +0 -7
- package/dist/blueprints/GLO_logisticContractItemSurcharge.js +0 -7
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +0 -4
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +0 -4
- package/dist/blueprints/GLO_logisticContractReference.d.ts +0 -4
- package/dist/blueprints/GLO_logisticContractReference.js +0 -4
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +0 -9
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +0 -8
- package/dist/blueprints/GLO_logisticLocation.d.ts +0 -7
- package/dist/blueprints/GLO_logisticLocation.js +0 -7
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +0 -19
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +0 -30
- package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +0 -4
- package/dist/blueprints/GLO_logisticPurchaseOrder.js +0 -4
- package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +0 -6
- package/dist/blueprints/GLO_logistic_waiting_hours.js +0 -6
- package/dist/blueprints/GLO_operationalDefault.d.ts +0 -23
- package/dist/blueprints/GLO_operationalDefault.js +0 -25
- package/dist/blueprints/GLO_outputDetailMail.d.ts +0 -14
- package/dist/blueprints/GLO_outputDetailMail.js +0 -13
- package/dist/blueprints/GLO_postalcode.d.ts +0 -6
- package/dist/blueprints/GLO_postalcode.js +0 -6
- package/dist/blueprints/GLO_priceDependency.d.ts +0 -5
- package/dist/blueprints/GLO_priceDependency.js +0 -4
- package/dist/blueprints/GLO_priceEntry.d.ts +0 -17
- package/dist/blueprints/GLO_priceEntry.js +0 -17
- package/dist/blueprints/GLO_priceRequest.d.ts +0 -8
- package/dist/blueprints/GLO_priceRequest.js +0 -20
- package/dist/blueprints/GLO_priceRequestLine.d.ts +0 -12
- package/dist/blueprints/GLO_priceRequestLine.js +0 -17
- package/dist/blueprints/GLO_principal.d.ts +0 -9
- package/dist/blueprints/GLO_principal.js +0 -13
- package/dist/blueprints/GLO_printPopup.d.ts +0 -10
- package/dist/blueprints/GLO_printPopup.js +0 -62
- package/dist/blueprints/GLO_production.d.ts +0 -9
- package/dist/blueprints/GLO_production.js +0 -9
- package/dist/blueprints/GLO_productionLineMaterial.d.ts +0 -8
- package/dist/blueprints/GLO_productionLineMaterial.js +0 -13
- package/dist/blueprints/GLO_productionMaterial.d.ts +0 -5
- package/dist/blueprints/GLO_productionMaterial.js +0 -5
- package/dist/blueprints/GLO_purchaseCosts.d.ts +0 -6
- package/dist/blueprints/GLO_purchaseCosts.js +0 -9
- package/dist/blueprints/GLO_purchaseInvoice.d.ts +0 -12
- package/dist/blueprints/GLO_purchaseInvoice.js +0 -25
- package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +0 -8
- package/dist/blueprints/GLO_purchaseInvoiceLine.js +0 -13
- package/dist/blueprints/GLO_purchaseOrder.d.ts +0 -14
- package/dist/blueprints/GLO_purchaseOrder.js +0 -25
- package/dist/blueprints/GLO_purchaseOrderLine.d.ts +0 -10
- package/dist/blueprints/GLO_purchaseOrderLine.js +0 -24
- package/dist/blueprints/GLO_purchasePrices.d.ts +0 -10
- package/dist/blueprints/GLO_purchasePrices.js +0 -10
- package/dist/blueprints/GLO_quotation.d.ts +0 -12
- package/dist/blueprints/GLO_quotation.js +0 -32
- package/dist/blueprints/GLO_quotationLine.d.ts +0 -12
- package/dist/blueprints/GLO_quotationLine.js +0 -28
- package/dist/blueprints/GLO_receipt.d.ts +0 -13
- package/dist/blueprints/GLO_receipt.js +0 -17
- package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +0 -8
- package/dist/blueprints/GLO_receiptFromTempReceipt.js +0 -8
- package/dist/blueprints/GLO_receiptLine.d.ts +0 -22
- package/dist/blueprints/GLO_receiptLine.js +0 -28
- package/dist/blueprints/GLO_relationAddress.d.ts +0 -26
- package/dist/blueprints/GLO_relationAddress.js +0 -58
- package/dist/blueprints/GLO_relationBankAccount.d.ts +0 -9
- package/dist/blueprints/GLO_relationBankAccount.js +0 -9
- package/dist/blueprints/GLO_relationContact.d.ts +0 -23
- package/dist/blueprints/GLO_relationContact.js +0 -45
- package/dist/blueprints/GLO_relationGroupType.d.ts +0 -7
- package/dist/blueprints/GLO_relationGroupType.js +0 -6
- package/dist/blueprints/GLO_relations.d.ts +0 -67
- package/dist/blueprints/GLO_relations.js +0 -186
- package/dist/blueprints/GLO_relationtype.d.ts +0 -15
- package/dist/blueprints/GLO_relationtype.js +0 -31
- package/dist/blueprints/GLO_remarkType.d.ts +0 -10
- package/dist/blueprints/GLO_remarkType.js +0 -9
- package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +0 -4
- package/dist/blueprints/GLO_remarkTypeDefaultValue.js +0 -14
- package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +0 -10
- package/dist/blueprints/GLO_remarkTypeEntityType.js +0 -9
- package/dist/blueprints/GLO_representative.d.ts +0 -7
- package/dist/blueprints/GLO_representative.js +0 -6
- package/dist/blueprints/GLO_salesInvoice.d.ts +0 -9
- package/dist/blueprints/GLO_salesInvoice.js +0 -15
- package/dist/blueprints/GLO_salesInvoiceLine.d.ts +0 -9
- package/dist/blueprints/GLO_salesInvoiceLine.js +0 -13
- package/dist/blueprints/GLO_salesOrder.d.ts +0 -13
- package/dist/blueprints/GLO_salesOrder.js +0 -25
- package/dist/blueprints/GLO_salesOrderLine.d.ts +0 -13
- package/dist/blueprints/GLO_salesOrderLine.js +0 -34
- package/dist/blueprints/GLO_stockCorrection.d.ts +0 -14
- package/dist/blueprints/GLO_stockCorrection.js +0 -24
- package/dist/blueprints/GLO_stopSchedule.d.ts +0 -4
- package/dist/blueprints/GLO_stopSchedule.js +0 -4
- package/dist/blueprints/GLO_supplierArticle.d.ts +0 -8
- package/dist/blueprints/GLO_supplierArticle.js +0 -8
- package/dist/blueprints/GLO_tclSetting.d.ts +0 -6
- package/dist/blueprints/GLO_tclSetting.js +0 -6
- package/dist/blueprints/GLO_todo.d.ts +0 -10
- package/dist/blueprints/GLO_todo.js +0 -21
- package/dist/blueprints/GLO_todoSchedule.d.ts +0 -23
- package/dist/blueprints/GLO_todoSchedule.js +0 -79
- package/dist/blueprints/GLO_tractionDistance.d.ts +0 -6
- package/dist/blueprints/GLO_tractionDistance.js +0 -6
- package/dist/blueprints/GLO_transportOrder.d.ts +0 -4
- package/dist/blueprints/GLO_transportOrder.js +0 -4
- package/dist/blueprints/GLO_transportPrice.d.ts +0 -18
- package/dist/blueprints/GLO_transportPrice.js +0 -34
- package/dist/blueprints/GLO_transportRequirement.d.ts +0 -18
- package/dist/blueprints/GLO_transportRequirement.js +0 -32
- package/dist/blueprints/GLO_transportRequirementContainer.d.ts +0 -8
- package/dist/blueprints/GLO_transportRequirementContainer.js +0 -8
- package/dist/blueprints/GLO_transportRequirementGoods.d.ts +0 -33
- package/dist/blueprints/GLO_transportRequirementGoods.js +0 -51
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +0 -6
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +0 -6
- package/dist/blueprints/GLO_transportStock.d.ts +0 -4
- package/dist/blueprints/GLO_transportStock.js +0 -4
- package/dist/blueprints/GLO_visit.d.ts +0 -9
- package/dist/blueprints/GLO_visit.js +0 -10
- package/dist/blueprints/GLO_warehouseMove.d.ts +0 -9
- package/dist/blueprints/GLO_warehouseMove.js +0 -9
- package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +0 -6
- package/dist/blueprints/GLO_warehouseOrderSubline.js +0 -11
- package/dist/blueprints/GLO_workflowLoggingTable.d.ts +0 -20
- package/dist/blueprints/GLO_workflowLoggingTable.js +0 -20
- package/dist/blueprints/GLO_workflowVerification.d.ts +0 -10
- package/dist/blueprints/GLO_workflowVerification.js +0 -19
- package/dist/blueprints/GLO_zone.d.ts +0 -9
- package/dist/blueprints/GLO_zone.js +0 -9
- package/dist/blueprints/GLO_zone_postalcode.d.ts +0 -12
- package/dist/blueprints/GLO_zone_postalcode.js +0 -10
- package/dist/blueprints/GLO_zone_type.d.ts +0 -8
- package/dist/blueprints/GLO_zone_type.js +0 -7
- package/dist/blueprints/GLT_goods.d.ts +0 -2
- package/dist/blueprints/GLT_goods.js +0 -12
- package/dist/commands/FOB_commands.d.ts +0 -124
- package/dist/commands/FOB_commands.js +0 -211
- package/dist/commands/GLJ_commands.d.ts +0 -28
- package/dist/commands/GLJ_commands.js +0 -40
- package/dist/commands/GLO_commands.d.ts +0 -685
- package/dist/commands/GLO_commands.js +0 -2315
- package/dist/commands/GLS_commands.d.ts +0 -63
- package/dist/commands/GLS_commands.js +0 -103
- package/dist/commands/GLT_commands.d.ts +0 -78
- package/dist/commands/GLT_commands.js +0 -148
- package/dist/commands/POR_commands.d.ts +0 -85
- package/dist/commands/POR_commands.js +0 -122
- package/dist/config.d.ts +0 -9
- package/dist/config.js +0 -115
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -15
- package/dist/plugins/prometheusWriter.d.ts +0 -15
- package/dist/plugins/prometheusWriter.js +0 -111
- package/dist/register.d.ts +0 -8
- package/dist/register.js +0 -23
- package/dist/tsHelper.d.ts +0 -161
- package/dist/tsHelper.js +0 -294
- package/dist/types.d.ts +0 -363
- package/dist/types.js +0 -4
- package/dist/websocketDetector.d.ts +0 -71
- package/dist/websocketDetector.js +0 -1593
|
@@ -1,186 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const formName = 'ng$sales_invoiceline_dtl';
|
|
2
|
-
export const GLO_enterSalesInvoiceLine = (obj) => {
|
|
3
|
-
cy.GLO_popupWindow([formName, 'btn_select_article_code'], obj.articleCode);
|
|
4
|
-
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
5
|
-
cy.GLO_addInput([formName, 'price_article'], obj.articlePrice);
|
|
6
|
-
cy.GLO_checkbox([formName, 'flag_disc_contr_is_nominal'], obj.flagNominalContractDiscount);
|
|
7
|
-
if (obj.contractualDiscount) {
|
|
8
|
-
Object.entries(obj.contractualDiscount).forEach(([key, value]) => {
|
|
9
|
-
cy.GLO_addInput([formName, `discount_percentage${key}`], value);
|
|
10
|
-
cy.GLO_dialogChoice('Yes'); // No discount allowed for this article, allow anyway?
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type objSalesOrder = {
|
|
2
|
-
relationCode?: number | string;
|
|
3
|
-
type?: string;
|
|
4
|
-
subType?: string;
|
|
5
|
-
deliveryCondition?: string;
|
|
6
|
-
warehouseId?: string;
|
|
7
|
-
paymentCondition?: string;
|
|
8
|
-
yourReference?: string;
|
|
9
|
-
ourReference?: string;
|
|
10
|
-
representative?: string;
|
|
11
|
-
deliveryDate?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const GLO_enterSalesOrder: (obj: objSalesOrder) => void;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { close, equal, equalBool, input, open } from '../tsHelper.js';
|
|
2
|
-
export const GLO_enterSalesOrder = (obj) => {
|
|
3
|
-
const formName = 'ng$salesorder_dtl';
|
|
4
|
-
const formNameGeneral = `${formName}_general`;
|
|
5
|
-
const detailTabsName = 'tabs_70';
|
|
6
|
-
cy.GLO_addInput([formName, 'salesorder_type_id'], obj.type);
|
|
7
|
-
if (obj.type && obj.subType)
|
|
8
|
-
cy.GLO_checkLoadingIndicator();
|
|
9
|
-
cy.GLO_addInput([formName, 'salesorder_subtype_id'], obj.subType);
|
|
10
|
-
cy.GLO_addInput([formName, 'warehouse_id'], obj.warehouseId);
|
|
11
|
-
cy.GLO_addDate(input, ['ng$salesorder_dtl', 'deliverydate'], obj.deliveryDate);
|
|
12
|
-
if (obj.relationCode || obj.yourReference || obj.ourReference || obj.representative || obj.paymentCondition || obj.deliveryCondition) {
|
|
13
|
-
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
14
|
-
cy.GLO_popupWindow([formNameGeneral, 'relation_code'], obj.relationCode, 'relation_code', equalBool);
|
|
15
|
-
cy.GLO_checkField([formNameGeneral, 'relation_code'], obj.relationCode, equal, 30000);
|
|
16
|
-
cy.GLO_dialogChoice('OK');
|
|
17
|
-
cy.GLO_addInput([formNameGeneral, 'paymentcondition_id'], obj.paymentCondition);
|
|
18
|
-
cy.GLO_addInput([formNameGeneral, 'deliverycondition_id'], obj.deliveryCondition);
|
|
19
|
-
cy.GLO_addInput([formNameGeneral, 'customer_reference'], obj.yourReference);
|
|
20
|
-
cy.GLO_addInput([formNameGeneral, 'our_reference'], obj.ourReference);
|
|
21
|
-
cy.GLO_addInput([formNameGeneral, 'representative_id'], obj.representative);
|
|
22
|
-
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
23
|
-
}
|
|
24
|
-
cy.GLO_addDate(input, ['ng$salesorder_dtl', 'deliverydate'], obj.deliveryDate);
|
|
25
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type objSalesOrderLine = {
|
|
2
|
-
articleCode?: number | string;
|
|
3
|
-
articleVersionCode?: string;
|
|
4
|
-
quantityBase?: number;
|
|
5
|
-
price?: number;
|
|
6
|
-
priceArticle?: number;
|
|
7
|
-
inputQuantity?: number;
|
|
8
|
-
discountPercentage1?: number;
|
|
9
|
-
contractArticleId?: string;
|
|
10
|
-
inputQtyPerUnitId?: string;
|
|
11
|
-
deliveryDate?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const GLO_enterSalesOrderLine: (obj: objSalesOrderLine) => void;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { close, equal, input, open } from '../tsHelper.js';
|
|
2
|
-
export const GLO_enterSalesOrderLine = (obj) => {
|
|
3
|
-
const formName = 'ng$salesorderline_dtl';
|
|
4
|
-
const formNameGeneral = 'ng$salesorderline_dtl_general';
|
|
5
|
-
const detailTabsName = 'tabs_280';
|
|
6
|
-
if (obj.articleCode) {
|
|
7
|
-
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
8
|
-
cy.GLO_dialogChoice('OK');
|
|
9
|
-
cy.GLO_dialogChoice('OK');
|
|
10
|
-
cy.GLO_checkField([formName, 'article_code'], obj.articleCode, equal, 30000);
|
|
11
|
-
}
|
|
12
|
-
cy.GLO_popupWindow([formName, 'articleversion_code'], obj.articleVersionCode);
|
|
13
|
-
if (obj.contractArticleId) {
|
|
14
|
-
cy.GLO_addInput([formName, 'contract_article_id'], obj.contractArticleId);
|
|
15
|
-
cy.GLO_dialogChoice('OK');
|
|
16
|
-
}
|
|
17
|
-
if (obj.quantityBase || obj.priceArticle || obj.price || obj.inputQuantity || obj.inputQtyPerUnitId || obj.discountPercentage1 || obj.deliveryDate) {
|
|
18
|
-
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
19
|
-
if (obj.quantityBase) {
|
|
20
|
-
cy.GLO_addInput([formNameGeneral, 'quantity'], obj.quantityBase);
|
|
21
|
-
cy.GLO_checkField([formNameGeneral, 'quantity'], obj.quantityBase);
|
|
22
|
-
}
|
|
23
|
-
cy.GLO_addInput([formNameGeneral, 'price_article'], obj.priceArticle);
|
|
24
|
-
cy.GLO_addInput([formNameGeneral, 'price'], obj.price);
|
|
25
|
-
if (obj.inputQuantity) {
|
|
26
|
-
cy.GLO_addInput([formNameGeneral, 'input_qty'], obj.inputQuantity);
|
|
27
|
-
cy.GLO_checkLoadingIndicator(); // Needed because of data loading
|
|
28
|
-
}
|
|
29
|
-
cy.GLO_addInput([formNameGeneral, 'discount_percentage1'], obj.discountPercentage1);
|
|
30
|
-
cy.GLO_addInput([formNameGeneral, 'input_qty_per_unit_id'], obj.inputQtyPerUnitId);
|
|
31
|
-
cy.GLO_addDate(input, [formNameGeneral, 'delivery_date'], obj.deliveryDate);
|
|
32
|
-
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CheckState } from '../tsHelper.js';
|
|
2
|
-
export type objStockCorrection = {
|
|
3
|
-
onlyAvailableStock?: CheckState;
|
|
4
|
-
articleCode?: string;
|
|
5
|
-
articleVersionCode?: string;
|
|
6
|
-
subType?: string;
|
|
7
|
-
deliveryCondition?: string;
|
|
8
|
-
localWarehouseId?: string;
|
|
9
|
-
lot?: string;
|
|
10
|
-
quantity?: string | number;
|
|
11
|
-
locationStock?: string;
|
|
12
|
-
localWarehouseLocationId?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const GLO_enterStockCorrection: (obj: objStockCorrection) => void;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const GLO_enterStockCorrection = (obj) => {
|
|
2
|
-
const formName = 'ng$stock_correction_dtl';
|
|
3
|
-
cy.GLO_checkbox([formName, 'only_available_stock'], obj.onlyAvailableStock);
|
|
4
|
-
if (obj.articleCode) {
|
|
5
|
-
cy.get('body').then(($body) => {
|
|
6
|
-
if ($body.find('[data-cy="ng$stock_correction_dtl.btn_select_article"]').length > 0) {
|
|
7
|
-
cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode, 'article_code');
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode, 'article_code');
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
cy.GLO_checkField([formName, 'article_code'], obj.articleCode);
|
|
14
|
-
}
|
|
15
|
-
cy.GLO_addInput([formName, 'local_articleversion_id'], obj.articleVersionCode);
|
|
16
|
-
cy.GLO_addInput([formName, 'local_warehouse_id'], obj.localWarehouseId);
|
|
17
|
-
cy.GLO_addInput([formName, 'local_warehouse_location_id'], obj.localWarehouseLocationId);
|
|
18
|
-
cy.GLO_addInput([formName, 'local_lot_id'], obj.lot);
|
|
19
|
-
if (obj.locationStock) {
|
|
20
|
-
cy.GLO_addInput([formName, 'location_stock_id'], obj.locationStock);
|
|
21
|
-
cy.GLO_checkLoadingIndicator(); // Loads data
|
|
22
|
-
}
|
|
23
|
-
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
24
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type objSupplierArticle = {
|
|
2
|
-
articleCode?: string;
|
|
3
|
-
articleNumberSupplier?: string;
|
|
4
|
-
deliveryTimeInDays?: number;
|
|
5
|
-
articleVersionCode?: string;
|
|
6
|
-
relationCode?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const GLO_enterSupplierArticle: (obj: objSupplierArticle) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const formName = 'ng$supplier_article_dtl';
|
|
2
|
-
export const GLO_enterSupplierArticle = (obj) => {
|
|
3
|
-
cy.GLO_popupWindow([formName, 'relation_code'], obj.relationCode);
|
|
4
|
-
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
5
|
-
cy.GLO_popupWindow([formName, 'articleversion_code'], obj.articleVersionCode);
|
|
6
|
-
cy.GLO_addInput([formName, 'articlenumber_supplier'], obj.articleNumberSupplier);
|
|
7
|
-
cy.GLO_addInput([formName, 'delivery_time_in_days'], obj.deliveryTimeInDays);
|
|
8
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export const GLO_enterTclSettings = (obj) => {
|
|
2
|
-
const formName = 'ng$logistic_contract_detail_transport_method_tcl_dlg';
|
|
3
|
-
cy.GLO_addInput([formName, 'transport_modality'], obj.transportModality);
|
|
4
|
-
cy.GLO_addInput([formName, 'tcl_plug_in'], obj.plugIn);
|
|
5
|
-
cy.GLO_addInput([formName, 'tcl_engine_running'], obj.engineRunning);
|
|
6
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { close, input, open } from '../tsHelper.js';
|
|
2
|
-
export const GLO_enterTodo = (obj) => {
|
|
3
|
-
const formName = 'ng$todos_dtl';
|
|
4
|
-
const detailTabsName = 'tabs_340';
|
|
5
|
-
cy.GLO_addInput([formName, 'todo_type_id'], obj.type);
|
|
6
|
-
cy.GLO_addInput([formName, 'todo_subtype_id'], obj.subType);
|
|
7
|
-
cy.GLO_popupWindow([formName, 'user_name'], obj.username);
|
|
8
|
-
cy.GLO_addDate(input, [formName, 'deadline'], obj.deadline);
|
|
9
|
-
cy.GLO_addDate(input, [formName, 'completed_date'], obj.completed);
|
|
10
|
-
if (obj.description) {
|
|
11
|
-
cy.GLO_selectTab([formName, detailTabsName], 'Description', open);
|
|
12
|
-
//! Added enter and click because otherwise the textarea doesn't know that a user has typed anything somehow....
|
|
13
|
-
cy.GLO_getElement(['ng$todos_dtl_description', 'description']).find('textarea').filter(':visible').click();
|
|
14
|
-
cy.GLO_addInput(['ng$todos_dtl_description', 'description'], `${obj.description}{enter}`);
|
|
15
|
-
}
|
|
16
|
-
if (obj.article) {
|
|
17
|
-
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
18
|
-
cy.GLO_popupWindow(['todo_dtl_general$todos', 'articlearticle_id'], obj.article);
|
|
19
|
-
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type objTodoSchedule = {
|
|
2
|
-
scheduleTypeId?: string;
|
|
3
|
-
scheduleSubtype?: string;
|
|
4
|
-
user?: string;
|
|
5
|
-
userRole?: string;
|
|
6
|
-
relation?: string;
|
|
7
|
-
contactPerson?: string;
|
|
8
|
-
responsible?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
scheduleStartDate?: string;
|
|
11
|
-
scheduleRecurringEvery?: number;
|
|
12
|
-
scheduleRecurringInterval?: string;
|
|
13
|
-
scheduleTimes?: {
|
|
14
|
-
daysOfWeek: dayItem[];
|
|
15
|
-
hours?: hoursSpec;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type weekdayKey = 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
|
|
19
|
-
type hhmm = `${number}${number}:${number}${number}`;
|
|
20
|
-
type hoursSpec = [hhmm?, hhmm?, hhmm?, hhmm?];
|
|
21
|
-
type dayItem = weekdayKey | Partial<Record<weekdayKey, hoursSpec>>;
|
|
22
|
-
export declare const GLO_todoSchedule: (obj: objTodoSchedule) => void;
|
|
23
|
-
export {};
|