1 (edited by andrew1136 12/27/2011 10:01:59 pm)

Topic: Direct Sales Invoice - turn off duplicate item warning

Hi Joe,

When entering duplicate items into a Direct Sales Invoice an error message pops up "This item is already on this document. You have been warned."  Is it possible to prevent this error message from appearing ?

I need to enter a mixture of Inventory items and Text items. Most of my invoices have more than one Text item and some invoices have duplicate Inventory Items. I would prefer if the error message could be turned off.

I have assigned a hyphen "-" as the Item Code for Text items as a hyphen is quick to enter and the least visible character on the final printed invoice, as there does not seem to be a non-printing Item code for entering text .

Thanks

Andrew

Re: Direct Sales Invoice - turn off duplicate item warning

We do understand the problem, however this is just a warning. Most people like to be warned if they accidently enter the same item code again.¨

/Joe

Re: Direct Sales Invoice - turn off duplicate item warning

You can eventually block the message by commenting out display_warning() call in sales/includes/ui/sales_order_ui.inc ca line 60.

Re: Direct Sales Invoice - turn off duplicate item warning

Hi Janusz,

That worked fine, thank you. I had to comment out lines 60 and 61

Cheers

Andrew