{runquerywithautoparameters 1} {runquery 2} {field 1.HotelName}
{field 1.HotelZip} {field 1.HotelCity} {field 1.HotelCountry} {field 1.Siret} {field 1.NAF} {field 1.VAT} {runsubquery 3.2.FiscalPeriod} {runsubquery 4.2.FiscalPeriod} {field 3.currdatetime} {field 2.FiscalPeriod} {field 3.cummulative} {field 3.perpetual} {field 3.realperpetual} {field 3.signature} {dif('{field 3.flag}'<>'Y')} Yes {/dif}{else} No {/else} {field 3.prev_signature} {forall 4} {field 4.taxableamount} {dif('{field 4.taxrate}'<1)} {field 4.taxrate}*100 {/dif}{else} {field 4.taxrate} {/else} {field 4.taxamount} {/forall}