426 |
<trigger name="setUnitPriceTrigger" type="NAMED"> |
<trigger name="setUnitPriceTrigger" type="NAMED"> |
427 |
import hack |
import hack |
428 |
|
|
429 |
if len(str(ownDocAuxBlock.withIvaEntry)) and int(str(ownDocAuxBlock.withIvaEntry)): |
if len(str(ownDocAuxBlock.withIvaEntry)) and \ |
430 |
ownItemBlock.unitPriceEntry = hack.a2f(ownItemBlock.unitPriceAuxEntry,4)/ round(1+hack.a2f(ownItemBlock.ivaEntry,4)/100,4) |
len(str(ownItemBlock.unitPriceAuxEntry)) and \ |
431 |
else: |
len(str(ownItemBlock.ivaEntry)): |
432 |
ownItemBlock.unitPriceEntry = str(ownItemBlock.unitPriceAuxEntry) |
if int(str(ownDocAuxBlock.withIvaEntry)): |
433 |
|
ownItemBlock.unitPriceEntry = hack.a2f(ownItemBlock.unitPriceAuxEntry,4)/ round(1+hack.a2f(ownItemBlock.ivaEntry,4)/100,4) |
434 |
|
else: |
435 |
|
ownItemBlock.unitPriceEntry = str(ownItemBlock.unitPriceAuxEntry) |
436 |
</trigger> |
</trigger> |
437 |
|
|
438 |
<trigger name="recalcTotalTrigger" type="NAMED"><![CDATA[ |
<trigger name="recalcTotalTrigger" type="NAMED"><![CDATA[ |
1245 |
ownItemBlock.priceEntry = "0" |
ownItemBlock.priceEntry = "0" |
1246 |
#IVA |
#IVA |
1247 |
#ownItemBlock.taxAmountEntry = 0 |
#ownItemBlock.taxAmountEntry = 0 |
|
ownItemIVABlock.IVAAmountEntry = 0.00 |
|
|
ownItemIVARNIBlock.IVARNIAmountEntry = 0.00 |
|
1248 |
ownItemBlock.ivaEntry = 0 |
ownItemBlock.ivaEntry = 0 |
1249 |
ownItemBlock.discountEntry = 0.00 |
ownItemBlock.discountEntry = 0.00 |
1250 |
ownItemBlock.bonusEntry = 0.00 |
ownItemBlock.bonusEntry = 0.00 |