When adding a first line to a purchase order, the discount percentage of the purchase price agreement was not applied

When adding a first line to a new purchase order, the discount percentage of the purchase price agreement was not applied.