Skip to Content
0
Former Member
Sep 10, 2007 at 01:17 PM

AddPart - pass a custom price

12 Views

Hi all

Last month I posted regarding how to use the AddPart function AddPart function

Thanks to everyone who helped me getting it to work.

I used the below version of the AddPart function

public extern bool AddPart(string partno, int quantity, string catalogcode, string categorycode, NPPartPricingMaster priceList);

However I now want to be able to alter the price when I add a part, for example calculating 10% and discounting the price before adding it. I thought the function below would do this as it allows you to pass the price.

public NPOrderDetail AddPart(string partno,int quantity,double price,string catalogcode,string categorycode,int parentOrderDetailID,NPPartPricingMaster priceList);

I've tested this but it just ignores the price value and just adds the part with the default price.

Is it possible to add a custom price using the function above? As it just seems to overwrite what you pass.

Thanks in advance, Andy