Hi friends,
I have created the cash discount filed in customer i gave the values for all customer, i need to get that all customers data based on i choose the customer in sales order
below code i have used
RecCustomer.RESET;
RecSalesHeader.RESET;
RecSalesHeader.SETRANGE("Sell-to Customer No.",RecCustomer."No.");
IF RecCustomer.GET THEN BEGIN
//RecSalesHeader.SETRANGE("Sell-to Customer No.",RecCustomer."No.");
CashDiscAmt := RecCustomer."Cash Discount%";
MESSAGE('%1',CashDiscAmt);
END;
but i m getting first customer record only not all customer record so please help me on this one.
Thank You
*This post is locked for comments