117 |
<trigger name="neb:$searchNextDocumentNumber" type="NAMED"> |
<trigger name="neb:$searchNextDocumentNumber" type="NAMED"> |
118 |
import gnue.common.GConditions as GConditions |
import gnue.common.GConditions as GConditions |
119 |
callTrigger('searchOwnPosData') |
callTrigger('searchOwnPosData') |
120 |
if str(<neb:Inline>$documentType</neb:Inline>) != '': |
if (str(<neb:Inline>$documentType</neb:Inline>) != '') and (str(ownPosBlock.ownPosEntityTableEntry)) : |
121 |
condDocumentNumber = GConditions.GCondition() |
condDocumentNumber = GConditions.GCondition() |
122 |
tmpAnd = GConditions.GCand(condDocumentNumber) |
tmpAnd = GConditions.GCand(condDocumentNumber) |
123 |
eq = GConditions.GCeq(tmpAnd) |
eq = GConditions.GCeq(tmpAnd) |
144 |
ownPosBlock.initQuery() |
ownPosBlock.initQuery() |
145 |
ownPosBlock.ownPosIdEntry = str(pos) |
ownPosBlock.ownPosIdEntry = str(pos) |
146 |
ownPosBlock.processQuery() |
ownPosBlock.processQuery() |
147 |
|
#if not str(ownPosBlock.ownPosIdEntry): |
148 |
|
# self.genericBox("Debe dar de alta un punto de venta para poder emitir comprobantes",['Aceptar']) |
149 |
|
# print "saliendo" |
150 |
|
# exit() |
151 |
<neb:Block>if ($ownStorehouseBlock ne ""){</neb:Block> |
<neb:Block>if ($ownStorehouseBlock ne ""){</neb:Block> |
152 |
callTrigger('searchOwnStorehouse') |
callTrigger('searchOwnStorehouse') |
153 |
<neb:Block>}</neb:Block> |
<neb:Block>}</neb:Block> |