{$dto1=$fsc->fbase_calc_due(array($fsc->albaran->dtopor1))} {$dto2=$fsc->fbase_calc_due(array($fsc->albaran->dtopor1,$fsc->albaran->dtopor2))} {$dto3=$fsc->fbase_calc_due(array($fsc->albaran->dtopor1,$fsc->albaran->dtopor2,$fsc->albaran->dtopor3))} {$dto4=$fsc->fbase_calc_due(array($fsc->albaran->dtopor1,$fsc->albaran->dtopor2,$fsc->albaran->dtopor3,$fsc->albaran->dtopor4))} {$dto5=$fsc->fbase_calc_due(array($fsc->albaran->dtopor1,$fsc->albaran->dtopor2,$fsc->albaran->dtopor3,$fsc->albaran->dtopor4,$fsc->albaran->dtopor5))}
{if="$fsc->albaran->ptefactura"}

Referencia | Descripción | Cantidad |  | Precio | Dto. % | Dto. 2 % | Dto. 3 % | Dto. 4 % | Neto | {#FS_IVA#} | RE % | {#FS_IRPF#} % | Total
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{loop="$lineas"}
{if="$value->idlineapedido"} P {$value->referencia} {else} {$value->referencia} {/if} | {$value->descripcion} |  | {if="$fsc->allow_delete"} {/if} |  |  |  |  |  |  |  |  |  |
{/loop}
|  | Dtos líneas Dtos Totales RE {#FS_IRPF#}

{if="$fsc->albaran->coddivisa!=$fsc->empresa->coddivisa"}{/if} | Subtotal | Dto. % | Dto. 2 % | Dto. 3 % | Dto. 4 % | Dto. 5 % | Neto | {#FS_IVA#} | Recargo | {#FS_IRPF#} | Total
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{if="$fsc->albaran->coddivisa!=$fsc->empresa->coddivisa"} ({$fsc->albaran->coddivisa}) {/if} | {$fsc->show_numero(0)} |  |  |  |  |  | {$fsc->show_numero(0)} | {$fsc->show_numero(0)} | {$fsc->show_numero(0)} | {$fsc->show_numero(0)} |
{if="$fsc->user->admin && FS_DB_HISTORY"}
{if="$fsc->albaran->coddivisa!=$fsc->empresa->coddivisa"}{/if} | {$fsc->show_precio($fsc->albaran->netosindto, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->dtopor1, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->dtopor2, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->dtopor3, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->dtopor4, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->dtopor5, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->neto, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->totaliva, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->totalrecargo, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->totalirpf, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->total, $fsc->albaran->coddivisa)}
{/if}

{else}

{#FS_ALBARAN#} | Artículo | Cantidad | Precio | Dto % | Dto 2 % | Dto 3 % | Dto 4 % | Neto | {#FS_IVA#} | RE | {#FS_IRPF#} | Total
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{loop="$lineas"} cantidad<=0"} class="warning"{/if}> | {if="$value->idlineapedido"} {/if} | {$value->referencia} {$value->descripcion()} | {$value->cantidad} | {$fsc->show_precio($value->pvpunitario, $fsc->albaran->coddivisa, TRUE, FS_NF0_ART)} | {$fsc->show_numero($value->dtopor, 2)} % | {$fsc->show_numero($value->dtopor2, 2)} % | {$fsc->show_numero($value->dtopor3, 2)} % | {$fsc->show_numero($value->dtopor4, 2)} % | {$fsc->show_precio($value->pvptotal, $fsc->albaran->coddivisa)} | {$fsc->show_numero($value->iva, 2)} % | {$fsc->show_numero($value->recargo, 2)} % | {$fsc->show_numero($value->irpf, 2)} % | {$fsc->show_precio($value->total_iva(), $fsc->albaran->coddivisa)} {else}
No hay líneas.
{/loop}

{if="$fsc->albaran->coddivisa!=$fsc->empresa->coddivisa"} Divisa {/if} | Subtotal | Dto. | Dto. 2 | Dto. 3 | Dto. 4 | Dto. 5 | Neto | {#FS_IVA#} | Recargo | {#FS_IRPF#} | Total
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{if="$fsc->albaran->coddivisa!=$fsc->empresa->coddivisa"} {$fsc->albaran->coddivisa} {/if} | {$fsc->show_precio($fsc->albaran->netosindto, $fsc->albaran->coddivisa)} | ({$fsc->albaran->dtopor1}%) {$fsc->show_precio($fsc->albaran->netosindto*(1-$dto1), $fsc->albaran->coddivisa)} | ({$fsc->albaran->dtopor2}%) {$fsc->show_precio($fsc->albaran->netosindto*($dto1-$dto2), $fsc->albaran->coddivisa)} | ({$fsc->albaran->dtopor3}%) {$fsc->show_precio($fsc->albaran->netosindto*($dto2-$dto3), $fsc->albaran->coddivisa)} | ({$fsc->albaran->dtopor4}%) {$fsc->show_precio($fsc->albaran->netosindto*($dto3-$dto4), $fsc->albaran->coddivisa)} | ({$fsc->albaran->dtopor5}%) {$fsc->show_precio($fsc->albaran->netosindto*($dto4-$dto5), $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->neto, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->totaliva, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->totalrecargo, $fsc->albaran->coddivisa)} | -{$fsc->show_precio($fsc->albaran->totalirpf, $fsc->albaran->coddivisa)} | {$fsc->show_precio($fsc->albaran->total, $fsc->albaran->coddivisa)}
{if="$fsc->albaran->coddivisa!=$fsc->empresa->coddivisa"}
{$fsc->empresa->coddivisa} |  |  |  |  |  |  |  |  |  |  | {$fsc->show_precio($fsc->euro_convert($fsc->albaran->totaleuros, $fsc->albaran->coddivisa, $fsc->albaran->tasaconv))}
{/if}

{/if}
Observaciones: {$fsc->albaran->observaciones}