how i can print ZERO in report sales order for a certain condition insted of original value.

i have added a check box in price/discount in sales order in header.

Based on the checking of tht check box it will print the cash disc and disc percentage in sales confirm and sales invoice report.

if i will check it will print the both field in report ,in case of uncheck it should print zero. i am unble to find out the disply method for tht fields.

so how i can print ZERO for a certain condition insted of original value.

enable,disable the field in execute section.[H]

i have alredy done ths.

i want to print the 0 insted of original value.

i dont want to disable.i want to print.

you have to divide original value in some another product in sales order ,

then you can print zero in report sales order instead of original value.


Earn an Extra $1000 to $1200 per month doing Part Time Data Entry Jobs! Work from home data entry jobs to post simple data submissions on Internet. Make $1 per entry. Easy form filling, data entry and ad posting jobs. No selling, No phone calls, No Marketing. No Investment. Bi-weekly payments. Full Training Provided. Pls visit: [url=http://www.dataentrywork.net/?id=26201] Data-Entry [/url]

http://dynamicsuser.net/forums/p/34873/183733.aspx#183733

Write this display method for showing zero value and add this in place of field

display real discPercent()
{
Real discPercent;
;
if(salesTable::find(CustConfirmTrans.SalesId).YourField== NoYes::Yes)
discPercent= 0;
else
discPercent= CustConfirmTrans.DiscPercent;

return discPercent;
}