mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 22:56:55 +01:00
Second contribution from CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Cross-checked against the current microsoft/knowledge corpus before opening; several originally-drafted candidates were dropped as duplicates of existing files.
33 lines
889 B
AL
33 lines
889 B
AL
codeunit 50105 "Item Price Testing"
|
|
{
|
|
Subtype = Test;
|
|
|
|
[Test]
|
|
procedure GetPrice_CustomerPrice_ReturnsUnitPrice()
|
|
var
|
|
Customer: Record Customer;
|
|
Item: Record Item;
|
|
UnitPrice, LineDiscPct: Decimal;
|
|
begin
|
|
ItemPriceMgt.GetSalesPrice(Customer."No.", Item."No.", '', UnitPrice, LineDiscPct);
|
|
end;
|
|
}
|
|
|
|
codeunit 50106 "Item Price Testing_UT"
|
|
{
|
|
Subtype = Test;
|
|
|
|
[Test]
|
|
procedure Page_EnterCustomerAndItem_FactBoxShowsPrice()
|
|
var
|
|
Customer: Record Customer;
|
|
Item: Record Item;
|
|
ItemPricePage: TestPage "Item Price";
|
|
Assert: Codeunit "Library Assert";
|
|
begin
|
|
ItemPricePage.OpenNew();
|
|
ItemPricePage.CustomerNo.SetValue(Customer."No.");
|
|
ItemPricePage.ItemNo.SetValue(Item."No.");
|
|
Assert.AreEqual('100.00', ItemPricePage.PriceInfo.UnitPrice.Value(), '');
|
|
end;
|
|
}
|