func X3.EN_SALE_GET_PRICE(Char CUSTOMER_IN, Char ITEM_IN, Char SALE_FACILITY_IN, Char STOCK_FACILITY_IN, Char CURRENCY_IN, Date DATE_IN, Decimal QUANTITY_IN, Char UNIT_IN, Char TYPE_IN) : Decimal

Allows you to retrieve the gross or net selling price of an item

  • CUSTOMER_IN Char Customer code concerned
  • ITEM_IN Char Article reference concerned
  • SALE_FACILITY_IN Char Sales site concerned
  • STOCK_FACILITY_IN Char Stock site concerned
  • CURRENCY_IN Char Currency concerned
  • DATE_IN Date Date of sale concerned
  • QUANTITY_IN Decimal Quantity concerned
  • UNIT_IN Char Unit concerned
  • TYPE_IN Char G for the GROSS price and N for the NET price
Return Decimal Calculated gross or net rate
Example

func X3.EN_SALE_GET_PRICE("FR004", "DIS007", "FR011", "FR011", "EUR", [08/10/2020], 1, "UN", "N")
Returns the NET price of item DIS007 for customer FR004 in EURO on the given date and for 1 UN