Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Add issueMethod to BOM Line
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Aug 28, 2019
1 parent e83a8d1 commit 85ae4a1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cypress/support/utils/billOfMaterial.js
Expand Up @@ -45,15 +45,17 @@ function applyBillOfMaterialLine(bomLine) {
cy.selectTab('PP_Product_BOMLine');
cy.pressAddNewButton();

if (bomLine.issueMethod) {
cy.resetListValue('IssueMethod');
cy.selectInListField('IssueMethod', bomLine.issueMethod, true);
}
cy.writeIntoLookupListField('M_Product_ID', bomLine.product, bomLine.product, false, true);

if (bomLine.quantity) {
cy.writeIntoStringField('QtyBOM', bomLine.quantity, true);
}
if (bomLine.scrap) {
cy.writeIntoStringField('Scrap', bomLine.scrap, true);
}

cy.pressDoneButton();
}

Expand All @@ -75,4 +77,10 @@ export class BillOfMaterialLine {
this.scrap = scrap;
return this;
}

setIssueMethod(issueMethod) {
cy.log(`BillOfMaterialLine - set issueMethod = ${issueMethod}`);
this.issueMethod = issueMethod;
return this;
}
}

0 comments on commit 85ae4a1

Please sign in to comment.