Hi again Paddy, From what I've become to understand is, there's no method to write to your database directly. As in no way in a script to write to any target column on products or other, with the exception of a products property which on ticket close writes to ticketlines.ATTRIBUTES for the product line. Can be useful.
Hi again Paddy, From what I've become to comprehend is, there's no method to write to your database directly. As in no way in a script to write to any target column on products or other, with the exception of a products property which on ticket close writes to ticketlines.ATTRIBUTES for the product line. Can be useful.
Don't think there's anything wrong with it.
It's a jungle out there...
Paddy, You can post code within '~~~' after new line. You can even describe it with '::java' after the '~~~' start on new line. You can post different code types like that ::python or ::batch just add new or two line before start and finish with '~~~'. Like: ~~~ ::java Code code code code and more code ~~~ import com.openbravo.format.Formats; import com.openbravo.pos.ticket.TicketLineInfo; import com.openbravo.pos.ticket.TicketProductInfo; discountrate = sales.getInputValue() / 100.0; multiply =...
Paddy, You can post code within '~~~' after new line. You can even describe it with '::java' after the '~~~' start on new line. You can post different code types like that ::python or ::batch just add new or two line before start and finish with '~~~'. import com.openbravo.format.Formats; import com.openbravo.pos.ticket.TicketLineInfo; import com.openbravo.pos.ticket.TicketProductInfo; discountrate = sales.getInputValue() / 100.0; multiply = 1; index = sales.getSelectedIndex(); if (index >= 0) {...
Don't need source code change with that. - Do need to edit resource Ticket.Buttons... and Enable ticket.change by uncommenting the line, set event.change as code target. - Make new text resource called event.change, paste code, save. Be warned though, the above code should be only used with testing. It's not ideal.
Don't need source code change with that. - Do need to edit resource Ticket.Buttons... and Enable ticket.change by uncommenting the line, set event.change as code target. - Make new text resource called event.change, paste code, save. Be warned though, the above code should be only used with testing. It's not ideal. It does use last scanned item, so if price change previous match, it'll overwrite it.