Openbravo Forum End of Life Notice

Dear Openbravo Forum User,

Because of continued very low usage we decided to stop the forums on 31st of August 2017

In case of questions: webmaster "at" openbravo.com

Print barcodes of the goods receive

<<

sherif ali

Posts: 12

Joined: Thu Jul 14, 2011 9:00 am

Post Thu Aug 18, 2011 3:14 pm

Print barcodes of the goods receive

Dear all

how Print barcodes of the goods received

thanks
<<

sherif ali

Posts: 12

Joined: Thu Jul 14, 2011 9:00 am

Post Sat Sep 24, 2011 4:49 pm

Re: Print barcodes of the goods receive

it's done
with printer inventory scribt
thanks
<<

Andrej Svininykh

Posts: 213

Joined: Wed Mar 18, 2009 7:25 pm

Post Tue Feb 21, 2012 12:08 pm

Re: Print barcodes of the goods receive

Hi,

this is my example for Printer 2. You insert this script into Printer.Inventory resource before </output> close tag.

  Code:
    #foreach ($inventoryline in $inventoryrecord.getLines())
    <ticket printer="2">
       <line/>
       <line/>
       <line size="1">
            <text align ="right" length="5">${inventoryline.printReference()}</text>
            <text align ="center" length="25">${inventoryline.printName()}</text>
            <text align ="left" length="12">${inventoryline.printPrice()}</text>
       </line>
       <barcode position="bottom" type="EAN13">${inventoryline.printCode()}</barcode>
    </ticket>
    #end
--
The best regards,
Andrey Svininykh
Project nordpos.mobi
Hire Me!
<<

sherif ali

Posts: 12

Joined: Thu Jul 14, 2011 9:00 am

Post Sun Mar 04, 2012 3:22 pm

Re: Print barcodes of the goods receive

hi
thanks for reply
but if you have 30 pcs from product 1
and 0 pcs from poduct 2
how to print the quantity for each products
thanks
sherif
<<

sherif ali

Posts: 12

Joined: Thu Jul 14, 2011 9:00 am

Post Sun Mar 04, 2012 3:46 pm

Re: Print barcodes of the goods receive

hi
see this
This prints the amount of product that you entered
if you enter 10 pcs it's print 10
enter 30 print 30
if you need more add to array the number you need
thanks


#if (${inventoryrecord.printReason()} =="(in) Movement" || ${inventoryrecord.printReason()} =="(out) Movement" || ${inventoryline.getProductCode().length()} > 8)
[parser abortParsing]
#else
<ticket>
#set($c = 0)
#set(${inventoryline.getMultiply()} = 0)
#set($t = 0)
#set ( $array = ["0","1","2","3","4", "5","6","7","8","9","10", "11","12","13","14","15","16", "17","18","19","20","21","22", "23","24","25","26","27","28", "29", "30"])
#foreach ($inventoryline in $inventoryrecord.getLines())
#if (${inventoryline.getProductCode().length()} == 8)

#set ($t = ${inventoryline.getMultiply()})
#foreach ($i in $array )
#if ( $t == $c)
\n
#else
<barcode type="CODE128" >${inventoryline.getProductCode()}</barcode>
<line><text align ="center" length="42">${inventoryline.printName()} ${inventoryrecord.printLocation()}</text></line>
#set ($c = $c + 1)
#end
#end
#end
#set($c = 0)
#set(${inventoryline.getMultiply()} = 0)
#set($t = 0)
#set (${inventoryline.getProductCode()} = 0)
#end

</ticket>
#end

Return to Questions

Who is online

Users browsing this forum: No registered users and 1 guest

Website Terms


Designed by ST Software for PTF.