172 |
from hack import a2f |
from hack import a2f |
173 |
|
|
174 |
# preparing the new document |
# preparing the new document |
175 |
#ownDocumentBlock.newRecord () |
#ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
|
ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
|
176 |
ownDocumentBlock.ownPosEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
ownDocumentBlock.ownPosEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
177 |
# increase the doc number |
# increase the doc number |
178 |
ownDocumentBlock.numberEntry= str(ownPosDocumentBlock.documentNumberEntry) |
ownDocumentBlock.numberEntry= str(ownPosDocumentBlock.documentNumberEntry) |
196 |
storeProductLevelBlock.levelEntry.atomicModify (changeValueFunction (diff)) |
storeProductLevelBlock.levelEntry.atomicModify (changeValueFunction (diff)) |
197 |
# ... and record the change |
# ... and record the change |
198 |
ownItemBlock.newRecord () |
ownItemBlock.newRecord () |
199 |
ownItemBlock.docIdEntry= str(ownDocumentBlock.idEntry) |
#ownItemBlock.docIdEntry= str(ownDocumentBlock.idEntry) |
200 |
ownItemBlock.productIdEntry= str(storeProductLevelBlock.productIdEntry) |
ownItemBlock.productIdEntry= str(storeProductLevelBlock.productIdEntry) |
201 |
ownItemBlock.diffEntry= str(diff) |
ownItemBlock.diffEntry= str(diff) |
202 |
ownItemBlock.obsEntry= str(storeProductLevelBlock.obsEntry) |
ownItemBlock.obsEntry= str(storeProductLevelBlock.obsEntry) |
284 |
</block> |
</block> |
285 |
|
|
286 |
<block name="ownItemBlock" datasource="ownItemDataSource"> |
<block name="ownItemBlock" datasource="ownItemDataSource"> |
287 |
<entry name="docIdEntry" field="own_item.own_document" hidden="y" x="1" y="1"/> |
<!-- <entry name="docIdEntry" field="own_item.own_document" hidden="y" x="1" y="1"/> --> |
288 |
<entry name="productIdEntry" field="own_product_stock_item.product" hidden="y" x="1" y="1"/> |
<entry name="productIdEntry" field="own_product_stock_item.product" hidden="y" x="1" y="1"/> |
289 |
<entry name="diffEntry" field="own_product_stock_item.difference" hidden="y" x="1" y="1"/> |
<entry name="diffEntry" field="own_product_stock_item.difference" hidden="y" x="1" y="1"/> |
290 |
<entry name="obsEntry" field="own_product_stock_item.observations" hidden="y" x="1" y="1"/> |
<entry name="obsEntry" field="own_product_stock_item.observations" hidden="y" x="1" y="1"/> |