@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,17 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objPriceEntry = {
|
|
3
|
+
validFrom?: string;
|
|
4
|
+
validTill?: string;
|
|
5
|
+
currency?: string;
|
|
6
|
+
result?: number;
|
|
7
|
+
perType?: string;
|
|
8
|
+
priceAmount?: number;
|
|
9
|
+
pricePerUnit?: string;
|
|
10
|
+
minAmount?: number;
|
|
11
|
+
maxAmount?: number;
|
|
12
|
+
flagAccrual?: CheckState;
|
|
13
|
+
quantity?: number;
|
|
14
|
+
articleunit?: string;
|
|
15
|
+
dangerousgoodsforpri?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const GLO_enterPriceEntry: (obj: objPriceEntry) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$price_entry_dtl';
|
|
3
|
+
export const GLO_enterPriceEntry = (obj) => {
|
|
4
|
+
cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
|
|
5
|
+
cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTill);
|
|
6
|
+
cy.GLO_addInput([formName, 'currency_id'], obj.currency);
|
|
7
|
+
cy.GLO_addInput([formName, 'result_value'], obj.result);
|
|
8
|
+
cy.GLO_addInput(['result_value_per_unit_id'], obj.perType);
|
|
9
|
+
cy.GLO_addInput([formName, 'min_amount'], obj.minAmount);
|
|
10
|
+
cy.GLO_addInput([formName, 'max_amount'], obj.maxAmount);
|
|
11
|
+
cy.GLO_checkbox([formName, 'flag_accrual'], obj.flagAccrual);
|
|
12
|
+
if (obj.quantity) {
|
|
13
|
+
cy.GLO_addInput(['entry_quantity'], obj.quantity);
|
|
14
|
+
}
|
|
15
|
+
cy.GLO_addInput(['entry_unit_id'], obj.articleunit);
|
|
16
|
+
cy.GLO_addInput(['dynamic_attribute_dangerousgoodsforpri'], obj.dangerousgoodsforpri);
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { close, input, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$price_request_dtl';
|
|
3
|
+
const formNameGeneralTab = 'ng$price_request_dtl_general';
|
|
4
|
+
export const GLO_enterPriceRequest$Terminal = (obj) => {
|
|
5
|
+
cy.GLO_addDate(input, [formName, 'request_date'], obj.requestDate);
|
|
6
|
+
cy.GLO_addDate(input, [formName, 'target_date'], obj.dueDate);
|
|
7
|
+
cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
|
|
8
|
+
cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTo);
|
|
9
|
+
if (obj.relationCode) {
|
|
10
|
+
GLO_createPriceRequestLine(obj);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const GLO_createPriceRequestLine = (obj) => {
|
|
14
|
+
// Tab 'General'
|
|
15
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
|
|
16
|
+
cy.GLO_popupWindow([formNameGeneralTab, 'btn_select_relation'], obj.relationCode);
|
|
17
|
+
cy.GLO_checkField([formNameGeneralTab, 'relation_code'], obj.relationCode);
|
|
18
|
+
cy.GLO_dialogChoice('OK');
|
|
19
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'General', close);
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type objPriceRequestLine = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
quantityOne?: number;
|
|
4
|
+
quantityTwo?: number;
|
|
5
|
+
grossPrice?: number;
|
|
6
|
+
grossPriceTwo?: number;
|
|
7
|
+
purchaseCost?: number;
|
|
8
|
+
purchaseCostTwo?: number;
|
|
9
|
+
discountTwoValue?: number;
|
|
10
|
+
discountTwoPercentage?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const GLO_enterPriceRequestLine$Terminal: (obj: objPriceRequestLine) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const GLO_enterPriceRequestLine$Terminal = (obj) => {
|
|
2
|
+
const formName = 'ng$price_request_line_dtl';
|
|
3
|
+
const qtFormName = 'ng$price_request_line_dtl_quantity';
|
|
4
|
+
cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'input_quantity_1'], obj.quantityOne);
|
|
6
|
+
cy.GLO_addInput([formName, 'input_quantity_2'], obj.quantityTwo);
|
|
7
|
+
cy.GLO_getElement(['ng$price_request_line_dtl', 'tabs_break_1']).within(() => {
|
|
8
|
+
cy.GLO_addInput([qtFormName, 'gross_price'], obj.grossPrice);
|
|
9
|
+
cy.GLO_addInput([qtFormName, 'purchase_costs_euro'], obj.purchaseCost);
|
|
10
|
+
});
|
|
11
|
+
cy.GLO_getElement(['ng$price_request_line_dtl', 'tabs_break_2']).within(() => {
|
|
12
|
+
cy.GLO_addInput([qtFormName, 'gross_price'], obj.grossPriceTwo);
|
|
13
|
+
cy.GLO_addInput([qtFormName, 'purchase_costs_euro'], obj.purchaseCostTwo);
|
|
14
|
+
cy.GLO_addInput([qtFormName, 'discount_amount'], obj.discountTwoValue);
|
|
15
|
+
cy.GLO_addInput([qtFormName, 'discount_percentage'], obj.discountTwoPercentage);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { close, input, open } from '../tsHelper.js';
|
|
2
|
+
const formPrincipal = 'ng$principal_parameters_dtl';
|
|
3
|
+
const formPrincipalGeneral = 'ng$principal_parameters_general';
|
|
4
|
+
export const GLO_enterPrincipal = (obj) => {
|
|
5
|
+
cy.GLO_addInput([formPrincipal, 'principal_code'], obj.principalCode);
|
|
6
|
+
cy.GLO_addInput([formPrincipal, 'principal_description'], obj.description);
|
|
7
|
+
cy.GLO_addInput([formPrincipal, 'principal_name'], obj.principalName);
|
|
8
|
+
cy.GLO_selectTab([formPrincipal, 'tabs_70'], 'General', open);
|
|
9
|
+
cy.GLO_addInput([formPrincipalGeneral, 'inbound_relation'], obj.inboundRelation);
|
|
10
|
+
cy.GLO_addInput([formPrincipalGeneral, 'internal_relation'], obj.internalRelation);
|
|
11
|
+
cy.GLO_addDate(input, [formPrincipalGeneral, 'startdate'], obj.startDate);
|
|
12
|
+
cy.GLO_selectTab([formPrincipal, 'tabs_70'], 'General', close);
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type objPrintPopup = {
|
|
2
|
+
outputSet?: string | string[];
|
|
3
|
+
outputDetail?: string | string[];
|
|
4
|
+
outputChannel?: string | string[];
|
|
5
|
+
outputDestination?: string | string[];
|
|
6
|
+
fileName?: [fileName: string, fileType: fileType];
|
|
7
|
+
closeOrSend?: 'close' | 'send';
|
|
8
|
+
openPreview?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_printPopup: (obj: objPrintPopup) => void;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const formName = 'ng$svy_nav_channel_output';
|
|
2
|
+
export const GLO_printPopup = (obj) => {
|
|
3
|
+
// Make sure print popup is fully loaded
|
|
4
|
+
cy.get(`[data-cy="${formName}_print"]`, { timeout: 15000 }).should('not.be.empty');
|
|
5
|
+
if (obj.outputSet && obj.outputSet.length > 0)
|
|
6
|
+
iterateList('output_set_list', obj.outputSet);
|
|
7
|
+
if (obj.outputDetail && obj.outputDetail.length > 0)
|
|
8
|
+
iterateList('output_detail_list', obj.outputDetail);
|
|
9
|
+
if (obj.outputChannel && obj.outputChannel.length > 0)
|
|
10
|
+
iterateList('channel_list', obj.outputChannel);
|
|
11
|
+
if (obj.outputDestination && obj.outputDestination.length > 0)
|
|
12
|
+
iterateList('destination_list', obj.outputDestination);
|
|
13
|
+
if (obj.openPreview) {
|
|
14
|
+
cy.GLO_clickButton(['ng$svy_nav_channel_output', 'print_preview']);
|
|
15
|
+
cy.GLO_clickButton(['ng$svy_nav_channel_output', 'btn_close_preview']);
|
|
16
|
+
}
|
|
17
|
+
if (obj.fileName) {
|
|
18
|
+
cy.get('[data-cy="ng$svy_nav_channel_output.download_btn"] [aria-disabled="true"]', { timeout: 30000 }).should('not.exist');
|
|
19
|
+
cy.GLO_clickButton([formName, 'download_btn']);
|
|
20
|
+
cy.GLO_readFile(obj.fileName[0], obj.fileName[1]);
|
|
21
|
+
cy.GLO_log(`Downloaded ${obj.fileName[0]}`);
|
|
22
|
+
}
|
|
23
|
+
if (obj.closeOrSend) {
|
|
24
|
+
cy.GLO_clickButton([formName, `btn_${obj.closeOrSend}`], 'dx-button');
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const iterateList = (listName, listData) => {
|
|
28
|
+
if (typeof listData === 'string')
|
|
29
|
+
listData = [listData]; // Convert to array if it is a string
|
|
30
|
+
listData = listData.map((s) => s.replace(/\s+/g, ' ').trim()); // Normalize whitespace in listData
|
|
31
|
+
cy.GLO_getElement([formName, listName], { timeout: 10000 }).should('not.contain', 'No data to display'); // Make sure list section is fully loaded
|
|
32
|
+
cy.GLO_getElement([formName, listName]).within(($list) => {
|
|
33
|
+
const $checked = $list.find('.dx-checkbox-checked');
|
|
34
|
+
const $items = $list.find('.dx-item');
|
|
35
|
+
const checkedTexts = $checked.map((_i, el) => Cypress.$(el).closest('.dx-item').text().trim()).get();
|
|
36
|
+
const allMatch = listData.length === checkedTexts.length && listData.every((item) => checkedTexts.includes(item));
|
|
37
|
+
if (allMatch || (listData.length === 1 && checkedTexts.length === 1 && checkedTexts[0] === listData[0])) {
|
|
38
|
+
// Checked items already match, skip iteration.
|
|
39
|
+
cy.log(`All items in ${listName} already checked: ${checkedTexts.join(', ')}`);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
cy.wrap($items).each(($item) => {
|
|
43
|
+
// See if current checkbox is in its correct state or not to put it in the correct state
|
|
44
|
+
const itemText = $item.text().replace(/\s+/g, ' ').trim();
|
|
45
|
+
const $checkbox = $item.find('.dx-checkbox');
|
|
46
|
+
const shouldBeChecked = listData.includes(itemText);
|
|
47
|
+
const isChecked = $checkbox.hasClass('dx-checkbox-checked');
|
|
48
|
+
if (isChecked !== shouldBeChecked) {
|
|
49
|
+
if (!$item.hasClass('dx-state-focused'))
|
|
50
|
+
cy.wrap($item).find('.dx-item-content').click(); // Ensure item is selected
|
|
51
|
+
cy.wrap($item).should('have.class', 'dx-state-focused'); // Check if item is selected
|
|
52
|
+
cy.wrap($checkbox).click();
|
|
53
|
+
cy.wrap(null).then(() => {
|
|
54
|
+
cy.GLO_checkLoadingIndicator();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
// End with selecting (the first) item in the list. Needed if last iteration unchecked a checkbox.
|
|
59
|
+
cy.wrap($items).find('.dx-item-content').contains(listData[0]).click();
|
|
60
|
+
});
|
|
61
|
+
cy.GLO_checkLoadingIndicator();
|
|
62
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type objProduction = {
|
|
2
|
+
relationCode?: string;
|
|
3
|
+
articleCode?: string;
|
|
4
|
+
warehouseCode?: string;
|
|
5
|
+
principalCode?: string;
|
|
6
|
+
routingCode?: string;
|
|
7
|
+
quantity?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const GLO_enterProduction: (obj: objProduction, formName?: string) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const formNameDefault = 'ng$production_dtl';
|
|
2
|
+
export const GLO_enterProduction = (obj, formName = formNameDefault) => {
|
|
3
|
+
cy.GLO_popupWindow([formName, 'btn_select_relation'], obj.relationCode);
|
|
4
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'warehouse_id'], obj.warehouseCode);
|
|
6
|
+
cy.GLO_addInput([formName, 'ordernumber'], obj.principalCode);
|
|
7
|
+
cy.GLO_addInput([formName, 'production_routing_id'], obj.routingCode);
|
|
8
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { row, skipCheck } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$production_line_material_dtl';
|
|
3
|
+
export const GLO_enterProductionLineMaterial = (obj) => {
|
|
4
|
+
cy.GLO_popupWindow([formName, 'btn_select_article'], obj.articleCode);
|
|
5
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
6
|
+
const formnameSelectStock = 'ng$production_line_material_assign_stock_dlg';
|
|
7
|
+
if (obj.serialCode) {
|
|
8
|
+
cy.GLO_clickButton([formName, 'select_location_stock_id'], 'fa-search');
|
|
9
|
+
cy.GLO_filterGrid('serial_nr', [formnameSelectStock, 'grid_location_stock'], obj.serialCode);
|
|
10
|
+
cy.GLO_checkNumberOfRowsInGrid([formnameSelectStock, 'grid_location_stock'], 1);
|
|
11
|
+
cy.GLO_dblClickRowInGrid(row, [formnameSelectStock, 'grid_location_stock'], 0, undefined, skipCheck);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const GLO_enterProductionMaterial = (obj) => {
|
|
2
|
+
const formNameProductionMaterial = 'ng$production_line_material_dtl';
|
|
3
|
+
cy.GLO_popupWindow([formNameProductionMaterial, 'btn_select_article'], obj.article);
|
|
4
|
+
cy.GLO_addInput([formNameProductionMaterial, 'quantity'], obj.quantity);
|
|
5
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const GLO_enterPurchaseCosts = (obj) => {
|
|
2
|
+
const formName = 'ng$purchase_costs_dtl';
|
|
3
|
+
cy.GLO_addInput([formName, 'article_id'], obj.purchaseCostType);
|
|
4
|
+
cy.GLO_addInput([formName, 'cost_type'], obj.costType);
|
|
5
|
+
if (obj.costType === 'Fixed')
|
|
6
|
+
cy.GLO_addInput([formName, 'cost_value'], obj.costValue);
|
|
7
|
+
else if (obj.costType === 'Percentage')
|
|
8
|
+
cy.GLO_addInput([formName, 'cost_value_perc'], obj.costValue);
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type objPurchaseInvoice = {
|
|
2
|
+
supplierCode?: string;
|
|
3
|
+
externalInvoiceNr?: string;
|
|
4
|
+
externalInvoiceDate?: string;
|
|
5
|
+
invoiceType?: string;
|
|
6
|
+
totalAmountOnInvoice?: string | number;
|
|
7
|
+
externalTotalAmountExclVat?: number;
|
|
8
|
+
externalTotalAmountVat?: number;
|
|
9
|
+
externalTotalAmountInclVat?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const GLO_enterPurchaseInvoice: (obj: objPurchaseInvoice) => void;
|
|
12
|
+
export declare const GLO_enterPurchaseInvoice$logistics: (obj: objPurchaseInvoice) => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { close, equalBool, input, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterPurchaseInvoice = (obj) => {
|
|
3
|
+
const formName = 'ng$purchase_invoice_dtl';
|
|
4
|
+
const formNameInvoiceAmount = 'ng$purchase_invoice_dtl_general';
|
|
5
|
+
cy.GLO_addInput([formName, 'purchase_invoice_type_id'], obj.invoiceType);
|
|
6
|
+
cy.GLO_popupWindow([formName, 'relation_code'], obj.supplierCode, 'relation_code', equalBool);
|
|
7
|
+
cy.GLO_addInput([formName, 'external_invoice_nr'], obj.externalInvoiceNr);
|
|
8
|
+
cy.GLO_addDate(input, [formName, 'external_invoice_date'], obj.externalInvoiceDate);
|
|
9
|
+
// Tab is open (Invoice amounts)
|
|
10
|
+
cy.GLO_addInput([formNameInvoiceAmount, 'total_amount_on_invoice'], obj.totalAmountOnInvoice);
|
|
11
|
+
};
|
|
12
|
+
export const GLO_enterPurchaseInvoice$logistics = (obj) => {
|
|
13
|
+
const formName = 'ng$purchase_invoice$logistics_dtl';
|
|
14
|
+
const formNameInvoiceAmounts = 'ng$purchase_invoice$logistics_dtl_invoice_amounts';
|
|
15
|
+
cy.GLO_popupWindow([formName, 'relation_code'], obj.supplierCode);
|
|
16
|
+
cy.GLO_addInput([formName, 'external_invoice_nr'], obj.externalInvoiceNr);
|
|
17
|
+
cy.GLO_addDate(input, [formName, 'external_invoice_date'], obj.externalInvoiceDate);
|
|
18
|
+
if (obj.externalTotalAmountExclVat || obj.externalTotalAmountVat || obj.externalTotalAmountInclVat) {
|
|
19
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Invoice amounts', open);
|
|
20
|
+
cy.GLO_addInput([formNameInvoiceAmounts, 'external_total_amount_excl_vat_copy563'], obj.externalTotalAmountExclVat);
|
|
21
|
+
cy.GLO_addInput([formNameInvoiceAmounts, 'total_external_amount_vat'], obj.externalTotalAmountVat);
|
|
22
|
+
cy.GLO_addInput([formNameInvoiceAmounts, 'external_total_amount_incl_vat'], obj.externalTotalAmountInclVat);
|
|
23
|
+
cy.GLO_selectTab([formName, 'tabs_70'], 'Invoice amounts', close);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type objPurchaseInvoiceLine = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
quantity?: number;
|
|
4
|
+
price?: number;
|
|
5
|
+
vatRegime?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const GLO_enterPurchaseInvoiceLine: (obj: objPurchaseInvoiceLine) => void;
|
|
8
|
+
export declare const GLO_enterPurchaseInvoiceLine$logistics: (obj: objPurchaseInvoiceLine) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const GLO_enterPurchaseInvoiceLine = (obj) => {
|
|
2
|
+
const formName = 'ng$purchase_invoiceline_dtl';
|
|
3
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
4
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
5
|
+
cy.GLO_addInput([formName, 'price'], obj.price);
|
|
6
|
+
};
|
|
7
|
+
export const GLO_enterPurchaseInvoiceLine$logistics = (obj) => {
|
|
8
|
+
const formName = 'ng$purchase_invoiceline$logistics_dtl';
|
|
9
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
10
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
11
|
+
cy.GLO_addInput([formName, 'price'], obj.price);
|
|
12
|
+
cy.GLO_addInput([formName, 'vat_regime'], obj.vatRegime);
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type objPurchaseOrder = {
|
|
2
|
+
purchaseOrderType?: string;
|
|
3
|
+
purchaseOrderSubType?: string;
|
|
4
|
+
relationCode?: number | string;
|
|
5
|
+
requestedDeliveryDate?: string;
|
|
6
|
+
expectedDeliveryDate?: string;
|
|
7
|
+
yourReference?: string;
|
|
8
|
+
ourReference?: string;
|
|
9
|
+
warehouse?: string;
|
|
10
|
+
deliveryRelationCode?: string;
|
|
11
|
+
deliveryRelationAddress?: string;
|
|
12
|
+
paymentCondition?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const GLO_enterPurchaseOrder: (obj: objPurchaseOrder) => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { close, equal, equalBool, input, open } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$purchaseorder_dtl';
|
|
3
|
+
const generalFormName = 'ng$purchaseorder_dtl_general';
|
|
4
|
+
const detailTabsName = 'tabs_70';
|
|
5
|
+
export const GLO_enterPurchaseOrder = (obj) => {
|
|
6
|
+
cy.GLO_addInput(['ng$purchaseorder_dtl', 'purchaseorder_type_id'], obj.purchaseOrderType);
|
|
7
|
+
cy.GLO_addInput(['ng$purchaseorder_dtl', 'purchaseorder_subtype_id'], obj.purchaseOrderSubType);
|
|
8
|
+
cy.GLO_addInput(['ng$purchaseorder_dtl', 'warehouse_id'], obj.warehouse);
|
|
9
|
+
cy.GLO_addDate(input, [formName, 'requested_delivery_date'], obj.requestedDeliveryDate);
|
|
10
|
+
cy.GLO_addDate(input, [formName, 'expected_delivery_date'], obj.expectedDeliveryDate);
|
|
11
|
+
if (obj.relationCode || obj.yourReference || obj.ourReference || obj.deliveryRelationCode || obj.deliveryRelationAddress || obj.paymentCondition) {
|
|
12
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
13
|
+
if (obj.relationCode) {
|
|
14
|
+
cy.GLO_popupWindow([generalFormName, 'relation_code'], obj.relationCode, 'relation_code', equalBool);
|
|
15
|
+
cy.GLO_checkField([generalFormName, 'relation_code'], obj.relationCode, equal, 30000);
|
|
16
|
+
cy.GLO_dialogChoice('OK');
|
|
17
|
+
}
|
|
18
|
+
cy.GLO_addInput([generalFormName, 'reference_supplier'], obj.yourReference);
|
|
19
|
+
cy.GLO_addInput([generalFormName, 'our_reference'], obj.ourReference);
|
|
20
|
+
cy.GLO_addInput([generalFormName, 'paymentcondition_id'], obj.paymentCondition);
|
|
21
|
+
cy.GLO_popupWindow([generalFormName, 'delivery_relation_code'], obj.deliveryRelationCode);
|
|
22
|
+
cy.GLO_popupWindow([generalFormName, 'delivery_relation_address'], obj.deliveryRelationAddress);
|
|
23
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type objPurchaseOrderLine = {
|
|
2
|
+
articleCode?: number | string;
|
|
3
|
+
quantity?: number;
|
|
4
|
+
quantityBase?: number;
|
|
5
|
+
generalPrice?: number;
|
|
6
|
+
expectedDeliveryDate?: string;
|
|
7
|
+
remarks?: string;
|
|
8
|
+
inputQtyPerUnitId?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterPurchaseOrderLine: (obj: objPurchaseOrderLine) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { close, equal, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterPurchaseOrderLine = (obj) => {
|
|
3
|
+
const formName = 'ng$purchaseorderline_dtl';
|
|
4
|
+
const detailTabsName = 'tabs_245';
|
|
5
|
+
cy.GLO_popupWindow([formName, 'article_code'], obj.articleCode);
|
|
6
|
+
cy.GLO_checkField([formName, 'article_code'], obj.articleCode, equal, 30000);
|
|
7
|
+
if (obj.articleCode)
|
|
8
|
+
cy.GLO_dialogChoice('OK'); // No price found dialog possible here.
|
|
9
|
+
if (obj.quantity || obj.generalPrice || obj.inputQtyPerUnitId) {
|
|
10
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', open);
|
|
11
|
+
cy.GLO_addInput([`${formName}_general`, 'input_qty_per_unit_id'], obj.inputQtyPerUnitId);
|
|
12
|
+
cy.GLO_addInput([`${formName}_general`, 'input_qty'], obj.quantity);
|
|
13
|
+
cy.GLO_addInput([`${formName}_general`, 'quantity'], obj.quantityBase);
|
|
14
|
+
cy.GLO_checkField([`${formName}_general`, 'quantity'], obj.quantityBase);
|
|
15
|
+
cy.GLO_addInput([`${formName}_general`, 'price'], obj.generalPrice);
|
|
16
|
+
cy.GLO_checkField([`${formName}_general`, 'price'], obj.generalPrice);
|
|
17
|
+
cy.GLO_selectTab([formName, detailTabsName], 'General', close);
|
|
18
|
+
}
|
|
19
|
+
if (obj.remarks) {
|
|
20
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Remarks', open);
|
|
21
|
+
cy.GLO_addInput([`${formName}_remarks`, 'remarks'], obj.remarks);
|
|
22
|
+
cy.GLO_selectTab([formName, detailTabsName], 'Remarks', close);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CheckState } from '../tsHelper.js';
|
|
2
|
+
export type objPurchasePrice = {
|
|
3
|
+
quantity?: number;
|
|
4
|
+
grossPrice?: number;
|
|
5
|
+
pricePer?: number;
|
|
6
|
+
flagActive?: CheckState;
|
|
7
|
+
validFrom?: string;
|
|
8
|
+
validTill?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterPurchasePrice: (obj: objPurchasePrice) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { input } from '../tsHelper.js';
|
|
2
|
+
const formName = 'ng$purchase_price_dtl';
|
|
3
|
+
export const GLO_enterPurchasePrice = (obj) => {
|
|
4
|
+
cy.GLO_addInput([formName, 'quantity'], obj.quantity);
|
|
5
|
+
cy.GLO_addInput([formName, 'gross_price'], obj.grossPrice);
|
|
6
|
+
cy.GLO_addInput([formName, 'price_per'], obj.pricePer);
|
|
7
|
+
cy.GLO_checkbox([formName, 'is_active'], obj.flagActive);
|
|
8
|
+
cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
|
|
9
|
+
cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTill);
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type objRelationAddress } from './GLO_relationAddress.js';
|
|
2
|
+
export type objQuotation = {
|
|
3
|
+
relationCode?: string;
|
|
4
|
+
deliveryCondition?: string;
|
|
5
|
+
contractName?: string;
|
|
6
|
+
customerReference?: string;
|
|
7
|
+
validityDate?: string;
|
|
8
|
+
ourReference?: string;
|
|
9
|
+
oneTimeAddress?: objRelationAddress;
|
|
10
|
+
};
|
|
11
|
+
export declare const GLO_enterQuotation: (obj: objQuotation) => void;
|
|
12
|
+
export declare const GLO_enterQuotationNew: (obj: objQuotation) => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { close, input, open } from '../tsHelper.js';
|
|
2
|
+
import { GLO_enterRelationAddressOneTimeUse } from './GLO_relationAddress.js';
|
|
3
|
+
const formName = 'ng$quotations_dtl';
|
|
4
|
+
export const GLO_enterQuotation = (obj) => {
|
|
5
|
+
enterQuotation('ng$quotations_dtl', obj);
|
|
6
|
+
};
|
|
7
|
+
export const GLO_enterQuotationNew = (obj) => {
|
|
8
|
+
enterQuotation('ng$quotation_light_dtl', obj);
|
|
9
|
+
};
|
|
10
|
+
const enterQuotation = (formNameTab, obj) => {
|
|
11
|
+
const formNameGeneral = `${formName}_general`;
|
|
12
|
+
cy.GLO_addDate(input, [formName, 'quotation_date'], obj.validityDate);
|
|
13
|
+
// Tab General
|
|
14
|
+
if (obj.relationCode || obj.deliveryCondition || obj.contractName || obj.customerReference) {
|
|
15
|
+
cy.GLO_selectTab([formNameTab, 'tabs_70'], 'General', open);
|
|
16
|
+
if (obj.relationCode) {
|
|
17
|
+
cy.GLO_popupWindow([formNameGeneral, 'relation_code'], obj.relationCode);
|
|
18
|
+
cy.GLO_dialogChoice('OK');
|
|
19
|
+
cy.GLO_checkLoadingIndicator();
|
|
20
|
+
}
|
|
21
|
+
if (obj.oneTimeAddress) {
|
|
22
|
+
cy.GLO_clickButton([formNameGeneral, 'btn_select_delivery_addressc'], 'fa-plus');
|
|
23
|
+
GLO_enterRelationAddressOneTimeUse(obj.oneTimeAddress);
|
|
24
|
+
cy.GLO_clickButton(['ng$relation_address_one_time_use', 'btn_save']);
|
|
25
|
+
}
|
|
26
|
+
cy.GLO_addInput([formNameGeneral, 'deliverycondition_id'], obj.deliveryCondition);
|
|
27
|
+
cy.GLO_addInput([formNameGeneral, 'customer_reference'], obj.customerReference);
|
|
28
|
+
cy.GLO_addInput([formNameGeneral, 'our_reference'], obj.ourReference);
|
|
29
|
+
cy.GLO_addInput([formNameGeneral, 'our_reference'], obj.contractName);
|
|
30
|
+
cy.GLO_selectTab([formNameTab, 'tabs_70'], 'General', close);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type objQuotationLine = {
|
|
2
|
+
articleCode?: string | number;
|
|
3
|
+
quantityBreaks?: quantityBreak[];
|
|
4
|
+
};
|
|
5
|
+
type quantityBreak = {
|
|
6
|
+
quantity?: number;
|
|
7
|
+
price?: number;
|
|
8
|
+
promotionalDiscountPerc?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const GLO_enterQuotationLine: (obj: objQuotationLine) => void;
|
|
11
|
+
export declare const GLO_enterQuotationLineNew: (obj: objQuotationLine) => void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { close, open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterQuotationLine = (obj) => {
|
|
3
|
+
enterQuotationLine(false, obj);
|
|
4
|
+
};
|
|
5
|
+
export const GLO_enterQuotationLineNew = (obj) => {
|
|
6
|
+
enterQuotationLine(true, obj);
|
|
7
|
+
};
|
|
8
|
+
const enterQuotationLine = (useNew, obj) => {
|
|
9
|
+
const formName = useNew ? 'ng$quotationline_light_dtl' : 'ng$quotationlines_dtl';
|
|
10
|
+
const formNameBreak = 'ng$quotationlines_dtl_quantity_breaks';
|
|
11
|
+
const formNameInnerBreak = 'ng$quotationlines_dtl_quantity';
|
|
12
|
+
const articleSelector = useNew ? 'article_code' : 'btn_select_article';
|
|
13
|
+
cy.GLO_popupWindow([formName, articleSelector], obj.articleCode);
|
|
14
|
+
if (obj.quantityBreaks && obj.quantityBreaks.length > 0) {
|
|
15
|
+
cy.GLO_selectTab([formName, 'tabs_470'], 'Quantity breaks', open);
|
|
16
|
+
obj.quantityBreaks.forEach((qtyBreak, index) => {
|
|
17
|
+
const i = index + 1;
|
|
18
|
+
cy.GLO_addInput([formNameBreak, `input_quantity_${i}`], qtyBreak.quantity);
|
|
19
|
+
cy.GLO_getElement([formNameBreak, `tabs_break_${i}`], { timeout: 15000 })
|
|
20
|
+
.should('be.visible')
|
|
21
|
+
.within(() => {
|
|
22
|
+
cy.GLO_addInput([formNameInnerBreak, 'price'], qtyBreak.price);
|
|
23
|
+
cy.GLO_addInput([formNameInnerBreak, 'promotional_discount_perc'], qtyBreak.promotionalDiscountPerc);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
cy.GLO_selectTab([formName, 'tabs_470'], 'Quantity breaks', close);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type objReceipt = {
|
|
2
|
+
relationCode?: string;
|
|
3
|
+
originRelationCode?: string;
|
|
4
|
+
addressCode?: string;
|
|
5
|
+
warehouseLocation?: string;
|
|
6
|
+
logisticLocationCode?: string;
|
|
7
|
+
quayCode?: string;
|
|
8
|
+
replacementReceiptId?: string | JQuery;
|
|
9
|
+
externalReceiptNr?: string;
|
|
10
|
+
transportMethod?: string;
|
|
11
|
+
relation_code?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const GLO_enterReceipt$Logistics: (obj: objReceipt) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { open } from '../tsHelper.js';
|
|
2
|
+
export const GLO_enterReceipt$Logistics = (obj) => {
|
|
3
|
+
const formName = 'ng$receipt$logistics_dtl';
|
|
4
|
+
const formNameTransport = 'ng$receipt_dtl_transport';
|
|
5
|
+
cy.GLO_addInput([formName, 'external_receipt_nr'], obj.externalReceiptNr);
|
|
6
|
+
cy.GLO_addInput([formName, 'replacement_receipt_id'], obj.replacementReceiptId);
|
|
7
|
+
cy.GLO_addInput([formName, 'relation'], obj.relationCode);
|
|
8
|
+
cy.GLO_popupWindow([formName, 'origin'], obj.originRelationCode);
|
|
9
|
+
cy.GLO_addInput([formName, 'relation_address_id'], obj.addressCode);
|
|
10
|
+
cy.GLO_addInput([formName, 'warehouse_location_id'], obj.warehouseLocation);
|
|
11
|
+
cy.GLO_addInput([formName, 'logistic_location_quay_code'], obj.quayCode);
|
|
12
|
+
cy.GLO_addInput([formName, 'logistic_location_code'], obj.logisticLocationCode);
|
|
13
|
+
if (obj.transportMethod) {
|
|
14
|
+
cy.GLO_selectTab([formName, 'tabs_270'], 'Transport', open);
|
|
15
|
+
cy.GLO_addInput([formNameTransport, 'transport_method'], obj.transportMethod);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type objReceiptFromTempReceipt = {
|
|
2
|
+
transportMethod?: string;
|
|
3
|
+
transporter?: string;
|
|
4
|
+
driverName?: string;
|
|
5
|
+
receiptLocation?: string;
|
|
6
|
+
licensPlate?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const GLO_enterReceiptFromTempReceipt: (obj: objReceiptFromTempReceipt) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const GLO_enterReceiptFromTempReceipt = (obj) => {
|
|
2
|
+
const formName = 'ng$create_receipt_from_temp_receipt_dlg';
|
|
3
|
+
cy.GLO_addInput([formName, 'transport_method'], obj.transportMethod);
|
|
4
|
+
cy.GLO_popupWindow([formName, 'transporter'], obj.transporter);
|
|
5
|
+
cy.GLO_addInput([formName, 'truck_license_plate'], obj.licensPlate);
|
|
6
|
+
cy.GLO_addInput([formName, 'driver_name'], obj.driverName);
|
|
7
|
+
cy.GLO_addInput([formName, 'receipt_location'], obj.receiptLocation);
|
|
8
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type objReceiptLine = {
|
|
2
|
+
articleCode?: string;
|
|
3
|
+
quantity_to_receive?: number;
|
|
4
|
+
quantity?: number;
|
|
5
|
+
unitCode?: string;
|
|
6
|
+
transportRequirementNr?: string | JQuery;
|
|
7
|
+
externalTransportRequirementNr?: string | JQuery;
|
|
8
|
+
transportRequirementGoodsSequenceNr?: number;
|
|
9
|
+
externalTransportRequirementGoodsSequenceNr?: number | string;
|
|
10
|
+
externalLotNr?: string;
|
|
11
|
+
transportReference?: string;
|
|
12
|
+
stockRef1?: string;
|
|
13
|
+
stockRef2?: string;
|
|
14
|
+
stockRef3?: string;
|
|
15
|
+
stockRef4?: string;
|
|
16
|
+
replacementReceiptline?: string;
|
|
17
|
+
consignmentNr?: string;
|
|
18
|
+
goodsLength?: number;
|
|
19
|
+
goodsWidth?: number;
|
|
20
|
+
goodsHeight?: number;
|
|
21
|
+
};
|
|
22
|
+
export declare const GLO_enterReceiptLine$Logistics: (obj: objReceiptLine) => void;
|