1010 |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
1011 |
import hack |
import hack |
1012 |
|
|
1013 |
|
recordCount = alienItemShowBlock.getRecordCount() |
1014 |
|
alienItemShowBlock.firstRecord() |
1015 |
|
for index in range(recordCount): |
1016 |
|
alienItemShowBlock.jumpRecord(index) |
1017 |
|
try: |
1018 |
|
alienItemShowBlock.taxPercentEntry = hack.a2f(alienItemShowBlock.taxAmountEntry,2) / \ |
1019 |
|
hack.a2f(alienItemShowBlock.unitPriceEntry,2) / \ |
1020 |
|
hack.a2f(alienItemShowBlock.qtyEntry,2) * 100 |
1021 |
|
except: |
1022 |
|
pass |
1023 |
|
|
1024 |
|
alienItemShowBlock.firstRecord() |
1025 |
|
|
1026 |
totalShowBlock.totalEntry = str(hack.a2f(totalShowBlock.netoEntry,2)+hack.a2f(totalShowBlock.ivaEntry,2)) |
totalShowBlock.totalEntry = str(hack.a2f(totalShowBlock.netoEntry,2)+hack.a2f(totalShowBlock.ivaEntry,2)) |
1027 |
else: |
else: |
1028 |
totalShowBlock.totalEntry = "0.00" |
totalShowBlock.totalEntry = "0.00" |
1539 |
width="10" rows="7" style="label" readonly=""> |
width="10" rows="7" style="label" readonly=""> |
1540 |
</entry> |
</entry> |
1541 |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
1542 |
<!-- <entry x="65" y="14" name="taxPercentEntry" width="5" rows="7" style="label" typecast="number" displaymask="%0.2f"/> --> |
<entry x="65" y="14" name="taxPercentEntry" width="5" rows="7" style="label" typecast="number" displaymask="%0.2f"/> |
1543 |
<entry x="65" y="14" field="alien_product_item.product" name="taxPercentEntry" readonly="" |
<!-- <entry x="65" y="14" field="alien_product_item.product" name="taxPercentEntry" readonly="" --> |
1544 |
width="20" style="textlookup" foreign_key="productTaxDataSource._product_data.id" |
<!-- width="20" style="textlookup" foreign_key="productTaxDataSource._product_data.id" --> |
1545 |
foreign_key_description="_product_tax_data.amount" rows="7"> |
<!-- foreign_key_description="_product_tax_data.amount" rows="7"> --> |
1546 |
</entry> |
<!-- </entry> --> |
1547 |
|
|
1548 |
<entry x="65" y="14" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
<entry x="65" y="14" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
1549 |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |