293 |
callTrigger ('commitTrigger') |
callTrigger ('commitTrigger') |
294 |
|
|
295 |
report='despatchNote-%s' % str(ownDocumentBlock.typeEntry) |
report='despatchNote-%s' % str(ownDocumentBlock.typeEntry) |
296 |
|
print "str(ownDocumentBlock.idEntry)",str(ownDocumentBlock.idEntry) |
297 |
hack.pleasePrint (self, str(ownDocumentBlock.typeEntry), report, [ 'id='+str(ownDocumentBlock.idEntry) ],str(ownPosDocumentBlock.documentPrintCommand)) |
hack.pleasePrint (self, str(ownDocumentBlock.typeEntry), report, [ 'id='+str(ownDocumentBlock.idEntry) ],str(ownPosDocumentBlock.documentPrintCommand)) |
298 |
|
|
299 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
308 |
if len(ownDocumentBlock.dateEntry) == 0: |
if len(ownDocumentBlock.dateEntry) == 0: |
309 |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
310 |
|
|
|
ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
|
|
|
|
311 |
from gnue.common.GDataObjects import ConnectionError as DBError |
from gnue.common.GDataObjects import ConnectionError as DBError |
312 |
|
|
313 |
try: |
try: |
316 |
postChangeAdvance = 1 |
postChangeAdvance = 1 |
317 |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
318 |
postChangeAdvance = 2 |
postChangeAdvance = 2 |
319 |
|
|
320 |
lOwnDocId = str(ownDocumentBlock.idEntry) |
lOwnDocId = str(ownDocumentBlock.idEntry) |
321 |
|
|
322 |
ownItemToUpdBlock.initQuery() |
ownItemToUpdBlock.initQuery() |
323 |
ownItemToUpdBlock.ownDocumentEntry = lOwnDocId |
ownItemToUpdBlock.ownDocumentEntry = lOwnDocId |
324 |
ownItemToUpdBlock.processQuery() |
ownItemToUpdBlock.processQuery() |