diff --git a/html/ajax_misc.php b/html/ajax_misc.php index 1bcf63f09..ca892230b 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -291,7 +291,11 @@ $path = array( // manage forecast "forecast"=>"ajax_forecast", // manage company - "company"=>"ajax_company" + "company"=>"ajax_company", + // report definition + "report_definition"=>"ajax_report_definition", + // search all card , analytic or accounting + "search_account_card"=>"ajax_search_account_card" ) ; if (array_key_exists($op, $path)) { diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css index 9ba0a8c4b..686614578 100644 --- a/html/css/style-classic7.css +++ b/html/css/style-classic7.css @@ -761,6 +761,10 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', end color: #746B6B; font-family: SansationLight; font-size: 0.80rem; + + padding: 9px; + color: navy; + font-size: 0.85rem; } a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover { cursor:pointer; diff --git a/html/document/fr_be/bnb-asbl.form b/html/document/fr_be/bnb-asbl.form index 753466d5b..7aa525a2b 100644 --- a/html/document/fr_be/bnb-asbl.form +++ b/html/document/fr_be/bnb-asbl.form @@ -1,166 +1,166 @@ # Les postesg*(-1) -$C10=round([10%s],2)*(-1) -$C100=round([100%s],2)*(-1) -$C101=round([101%s],2) -$C11=round([11%s],2)*(-1) -$C12=round([12%s],2)*(-1) -$C13=round([13%s],2)*(-1) -$C130=round([130%s],2)*(-1) -$C131=round([131%s],2)*(-1) -$C1310=round([1310%s],2)*(-1) -$C1311=round([1311%s],2)*(-1) -$C132=round([132%s],2)*(-1) -$C133=round([133%s],2)*(-1) -$C14=round([14%s],2)*(-1) -$C140=round([140%s],2)*(-1) -$C141=round([141%s],2) -$C15=round([15%s],2)*(-1) -$C16=round([16%s],2)*(-1) -$C160=round([160%s],2)*(-1) -$C161=round([161%s],2)*(-1) -$C162=round([162%s],2)*(-1) -$C163=round([163%s],2)*(-1) -$C164=round([164%s],2)*(-1) -$C165=round([165%s],2)*(-1) -$C168=round([168%s],2)*(-1) -$C17=round([17%s],2)*(-1) -$C170=round([170%s],2)*(-1) -$C171=round([171%s],2)*(-1) -$C172=round([172%s],2)*(-1) -$C173=round([173%s],2)*(-1) -$C174=round([174%s],2)*(-1) -$C175=round([175%s],2)*(-1) -$C176=round([176%s],2)*(-1) -$C178=round([178%s],2)*(-1) -$C179=round([179%s],2)*(-1) -$C1790=round([1790%s],2)*(-1) -$C1791=round([1791%s],2)*(-1) -$C1792=round([1792%s],2)*(-1) -$C19=round([19%s],2)*(-1) -$C2=round([2%s],2)*(-1) -$C20=round([20%s],2) -$C21=round([21%s],2) -$C22=round([22%s],2) -$C2201=round([2201%s],2) -$C2202=round([2202%s],2) -$C2211=round([2211%s],2) -$C2212=round([2212%s],2) -$C2221=round([2221%s],2) -$C2222=round([2222%s],2) -$C2231=round([2231%s],2) -$C2232=round([2232%s],2) -$C23=round([23%s],2) -$C231=round([231%s],2) -$C232=round([232%s],2) -$C24=round([24%s],2) -$C241=round([241%s],2) -$C242=round([242%s],2) -$C25=round([25%s],2) -$C26=round([26%s],2) -$C27=round([27%s],2) -$C28=round([28%s],2) -$C29=round([29%s],2) -$C290=round([290%s],2) -$C291=round([291%s],2) -$C2915=round([2915%s],2) -$C3=round([3%s],2) -$C30=round([30%s],2) -$C31=round([31%s],2) -$C32=round([32%s],2) -$C33=round([33%s],2) -$C34=round([34%s],2) -$C35=round([35%s],2) -$C36=round([36%s],2) -$C37=round([37%s],2) -$C40=round([40%s],2) -$C41=round([41%s],2) -$C415=round([415%s],2) -$C42=round([42%s],2)*(-1) -$C43=round([43%s],2)*(-1) -$C439=round([439%s],2)*(-1) -$C44=round([44%s],2)*(-1) -$C440=round([440%s],2)*(-1) -$C441=round([441%s],2)*(-1) -$C444=round([444%s],2)*(-1) -$C45=round([45%s],2)*(-1) -$C450=round([450%s],2)*(-1) -$C451=round([451%s],2)*(-1) -$C452=round([452%s],2)*(-1) -$C453=round([453%s],2)*(-1) -$C454=round([454%s],2)*(-1) -$C455=round([455%s],2)*(-1) -$C456=round([456%s],2)*(-1) -$C457=round([457%s],2)*(-1) -$C458=round([458%s],2)*(-1) -$C459=round([459%s],2)*(-1) -$C46=round([46%s],2) -$C47=round([47%s],2)*(-1) -$C48=round([48%s],2)*(-1) -$C480=round([480%s],2)*(-1) -$C488=round([488%s],2)*(-1) -$C4890=round([4890%s],2)*(-1) -$C4891=round([4891%s],2)*(-1) -$C49=round([49%s],2) -$C490=round([490%s],2) -$C491=round([491%s],2) -$C492=round([492%s],2)*(-1) -$C493=round([493%s],2)*(-1) -$C50=round([50%s],2) -$C51=round([51%s],2) -$C52=round([52%s],2) -$C53=round([53%s],2) -$C54=round([54%s],2) -$C55=round([55%s],2) -$C56=round([56%s],2) -$C57=round([57%s],2) -$C58=round([58%s],2) -$C60=round([60%s],2) -$C61=round([61%s],2) -$C62=round([62%s],2) -$C63=round([63%s],2) -$C630=round([630%s],2) -$C631=round([631%s],2) -$C632=round([632%s],2) -$C633=round([633%s],2) -$C634=round([634%s],2) -$C635=round([635%s],2) -$C636=round([636%s],2) -$C637=round([637%s],2) -$C649=round([649%s],2)*(-1) -$C64=round([64%s],2) -$C65=round([65%s],2) -$C66=round([66%s],2) -$C67=round([67%s],2) -$C68=round([68%s],2) -$C680=round([680%s],2) -$C689=round([689%s],2) -$C69=round([69%s],2) -$C690=round([690%s],2) -$C691=round([691%s],2) -$C692=round([692%s],2) -$C6920=round([6920%s],2) -$C6921=round([6921%s],2) -$C693=round([693%s],2) -$C694=round([694%s],2) -$C695=round([695%s],2) -$C696=round([696%s],2) -$C7=round([7%s],2)*(-1) -$C70=round([70%s],2)*(-1) -$C71=round([71%s],2)*(-1) -$C73=round([73%s],2)*(-1) -$C72=round([72%s],2)*(-1) -$C74=round([74%s],2)*(-1) -$C75=round([75%s],2)*(-1) -$C76=round([76%s],2)*(-1) -$C77=round([77%s],2)*(-1) -$C780=round([780%s],2)*(-1) -$C789=round([789%s],2)*(-1) -$C79=round([79%s],2)*(-1) -$C790=round([790%s],2)*(-1) -$C791=round([791%s],2)*(-1) -$C792=round([792%s],2)*(-1) -$C793=round([793%s],2)*(-1) -$C794=round([794%s],2)*(-1) +$C10=round([10%-s],2)*(-1) +$C100=round([100%-s],2)*(-1) +$C101=round([101%-s],2) +$C11=round([11%-s],2)*(-1) +$C12=round([12%-s],2)*(-1) +$C13=round([13%-s],2)*(-1) +$C130=round([130%-s],2)*(-1) +$C131=round([131%-s],2)*(-1) +$C1310=round([1310%-s],2)*(-1) +$C1311=round([1311%-s],2)*(-1) +$C132=round([132%-s],2)*(-1) +$C133=round([133%-s],2)*(-1) +$C14=round([14%-s],2)*(-1) +$C140=round([140%-s],2)*(-1) +$C141=round([141%-s],2) +$C15=round([15%-s],2)*(-1) +$C16=round([16%-s],2)*(-1) +$C160=round([160%-s],2)*(-1) +$C161=round([161%-s],2)*(-1) +$C162=round([162%-s],2)*(-1) +$C163=round([163%-s],2)*(-1) +$C164=round([164%-s],2)*(-1) +$C165=round([165%-s],2)*(-1) +$C168=round([168%-s],2)*(-1) +$C17=round([17%-s],2)*(-1) +$C170=round([170%-s],2)*(-1) +$C171=round([171%-s],2)*(-1) +$C172=round([172%-s],2)*(-1) +$C173=round([173%-s],2)*(-1) +$C174=round([174%-s],2)*(-1) +$C175=round([175%-s],2)*(-1) +$C176=round([176%-s],2)*(-1) +$C178=round([178%-s],2)*(-1) +$C179=round([179%-s],2)*(-1) +$C1790=round([1790%-s],2)*(-1) +$C1791=round([1791%-s],2)*(-1) +$C1792=round([1792%-s],2)*(-1) +$C19=round([19%-s],2)*(-1) +$C2=round([2%-s],2)*(-1) +$C20=round([20%-s],2) +$C21=round([21%-s],2) +$C22=round([22%-s],2) +$C2201=round([2201%-s],2) +$C2202=round([2202%-s],2) +$C2211=round([2211%-s],2) +$C2212=round([2212%-s],2) +$C2221=round([2221%-s],2) +$C2222=round([2222%-s],2) +$C2231=round([2231%-s],2) +$C2232=round([2232%-s],2) +$C23=round([23%-s],2) +$C231=round([231%-s],2) +$C232=round([232%-s],2) +$C24=round([24%-s],2) +$C241=round([241%-s],2) +$C242=round([242%-s],2) +$C25=round([25%-s],2) +$C26=round([26%-s],2) +$C27=round([27%-s],2) +$C28=round([28%-s],2) +$C29=round([29%-s],2) +$C290=round([290%-s],2) +$C291=round([291%-s],2) +$C2915=round([2915%-s],2) +$C3=round([3%-s],2) +$C30=round([30%-s],2) +$C31=round([31%-s],2) +$C32=round([32%-s],2) +$C33=round([33%-s],2) +$C34=round([34%-s],2) +$C35=round([35%-s],2) +$C36=round([36%-s],2) +$C37=round([37%-s],2) +$C40=round([40%-s],2) +$C41=round([41%-s],2) +$C415=round([415%-s],2) +$C42=round([42%-s],2)*(-1) +$C43=round([43%-s],2)*(-1) +$C439=round([439%-s],2)*(-1) +$C44=round([44%-s],2)*(-1) +$C440=round([440%-s],2)*(-1) +$C441=round([441%-s],2)*(-1) +$C444=round([444%-s],2)*(-1) +$C45=round([45%-s],2)*(-1) +$C450=round([450%-s],2)*(-1) +$C451=round([451%-s],2)*(-1) +$C452=round([452%-s],2)*(-1) +$C453=round([453%-s],2)*(-1) +$C454=round([454%-s],2)*(-1) +$C455=round([455%-s],2)*(-1) +$C456=round([456%-s],2)*(-1) +$C457=round([457%-s],2)*(-1) +$C458=round([458%-s],2)*(-1) +$C459=round([459%-s],2)*(-1) +$C46=round([46%-s],2) +$C47=round([47%-s],2)*(-1) +$C48=round([48%-s],2)*(-1) +$C480=round([480%-s],2)*(-1) +$C488=round([488%-s],2)*(-1) +$C4890=round([4890%-s],2)*(-1) +$C4891=round([4891%-s],2)*(-1) +$C49=round([49%-s],2) +$C490=round([490%-s],2) +$C491=round([491%-s],2) +$C492=round([492%-s],2)*(-1) +$C493=round([493%-s],2)*(-1) +$C50=round([50%-s],2) +$C51=round([51%-s],2) +$C52=round([52%-s],2) +$C53=round([53%-s],2) +$C54=round([54%-s],2) +$C55=round([55%-s],2) +$C56=round([56%-s],2) +$C57=round([57%-s],2) +$C58=round([58%-s],2) +$C60=round([60%-s],2) +$C61=round([61%-s],2) +$C62=round([62%-s],2) +$C63=round([63%-s],2) +$C630=round([630%-s],2) +$C631=round([631%-s],2) +$C632=round([632%-s],2) +$C633=round([633%-s],2) +$C634=round([634%-s],2) +$C635=round([635%-s],2) +$C636=round([636%-s],2) +$C637=round([637%-s],2) +$C649=round([649%-s],2)*(-1) +$C64=round([64%-s],2) +$C65=round([65%-s],2) +$C66=round([66%-s],2) +$C67=round([67%-s],2) +$C68=round([68%-s],2) +$C680=round([680%-s],2) +$C689=round([689%-s],2) +$C69=round([69%-s],2) +$C690=round([690%-s],2) +$C691=round([691%-s],2) +$C692=round([692%-s],2) +$C6920=round([6920%-s],2) +$C6921=round([6921%-s],2) +$C693=round([693%-s],2) +$C694=round([694%-s],2) +$C695=round([695%-s],2) +$C696=round([696%-s],2) +$C7=round([7%-s],2)*(-1) +$C70=round([70%-s],2)*(-1) +$C71=round([71%-s],2)*(-1) +$C73=round([73%-s],2)*(-1) +$C72=round([72%-s],2)*(-1) +$C74=round([74%-s],2)*(-1) +$C75=round([75%-s],2)*(-1) +$C76=round([76%-s],2)*(-1) +$C77=round([77%-s],2)*(-1) +$C780=round([780%-s],2)*(-1) +$C789=round([789%-s],2)*(-1) +$C79=round([79%-s],2)*(-1) +$C790=round([790%-s],2)*(-1) +$C791=round([791%-s],2)*(-1) +$C792=round([792%-s],2)*(-1) +$C793=round([793%-s],2)*(-1) +$C794=round([794%-s],2)*(-1) # Les formules (*-1) # $S1=$C20+$C21+$C22+$C23+$C24+$C25+$C26+$C27+$C28 diff --git a/html/document/fr_be/bnb.form b/html/document/fr_be/bnb.form index 0328ced2e..f35598cf6 100644 --- a/html/document/fr_be/bnb.form +++ b/html/document/fr_be/bnb.form @@ -1,148 +1,148 @@ # Les postesg*(-1) -$C10=round([10%s],2)*(-1) -$C100=round([100%s],2)*(-1) -$C101=round([101%s],2) -$C11=round([11%s],2)*(-1) -$C12=round([12%s],2)*(-1) -$C13=round([13%s],2)*(-1) -$C130=round([130%s],2)*(-1) -$C131=round([131%s],2)*(-1) -$C1310=round([1310%s],2)*(-1) -$C1311=round([1311%s],2)*(-1) -$C132=round([132%s],2)*(-1) -$C133=round([133%s],2)*(-1) -$C14=round([14%s],2)*(-1) -$C140=round([140%s],2)*(-1) -$C141=round([141%s],2) -$C15=round([15%s],2)*(-1) -$C16=round([16%s],2)*(-1) -$C160=round([160%s],2)*(-1) -$C161=round([161%s],2)*(-1) -$C162=round([162%s],2)*(-1) -$C163=round([163%s],2)*(-1) -$C164=round([164%s],2)*(-1) -$C165=round([165%s],2)*(-1) -$C168=round([168%s],2)*(-1) -$C17=round([17%s],2)*(-1) -$C170=round([170%s],2)*(-1) -$C171=round([171%s],2)*(-1) -$C172=round([172%s],2)*(-1) -$C173=round([173%s],2)*(-1) -$C174=round([174%s],2)*(-1) -$C175=round([175%s],2)*(-1) -$C176=round([176%s],2)*(-1) -$C178=round([178%s],2)*(-1) -$C179=round([179%s],2)*(-1) -$C19=round([19%s],2)*(-1) -$C2=round([2%s],2)*(-1) -$C20=round([20%s],2) -$C21=round([21%s],2) -$C22=round([22%s],2) -$C23=round([23%s],2) -$C24=round([24%s],2) -$C25=round([25%s],2) -$C26=round([26%s],2) -$C27=round([27%s],2) -$C28=round([28%s],2) -$C29=round([29%s],2) -$C290=round([290%s],2) -$C291=round([291%s],2) -$C3=round([3%s],2) -$C30=round([30%s],2) -$C31=round([31%s],2) -$C32=round([32%s],2) -$C33=round([33%s],2) -$C34=round([34%s],2) -$C35=round([35%s],2) -$C36=round([36%s],2) -$C37=round([37%s],2) -$C40=round([40%s],2) -$C41=round([41%s],2) -$C42=round([42%s],2)*(-1) -$C43=round([43%s],2)*(-1) -$C439=round([439%s],2)*(-1) -$C44=round([44%s],2)*(-1) -$C440=round([440%s],2)*(-1) -$C441=round([441%s],2)*(-1) -$C444=round([444%s],2)*(-1) -$C45=round([45%s],2)*(-1) -$C450=round([450%s],2)*(-1) -$C451=round([451%s],2)*(-1) -$C452=round([452%s],2)*(-1) -$C453=round([453%s],2)*(-1) -$C454=round([454%s],2)*(-1) -$C455=round([455%s],2)*(-1) -$C456=round([456%s],2)*(-1) -$C457=round([457%s],2)*(-1) -$C458=round([458%s],2)*(-1) -$C459=round([459%s],2)*(-1) -$C46=round([46%s],2) -$C47=round([47%s],2)*(-1) -$C48=round([48%s],2)*(-1) -$C49=round([49%s],2) -$C490=round([490%s],2) -$C491=round([491%s],2) -$C492=round([492%s],2)*(-1) -$C493=round([493%s],2)*(-1) -$C50=round([50%s],2) -$C51=round([51%s],2) -$C52=round([52%s],2) -$C53=round([53%s],2) -$C54=round([54%s],2) -$C55=round([55%s],2) -$C56=round([56%s],2) -$C57=round([57%s],2) -$C58=round([58%s],2) -$C60=round([60%s],2) -$C61=round([61%s],2) -$C62=round([62%s],2) -$C63=round([63%s],2) -$C630=round([630%s],2) -$C631=round([631%s],2) -$C632=round([632%s],2) -$C633=round([633%s],2) -$C634=round([634%s],2) -$C635=round([635%s],2) -$C636=round([636%s],2) -$C637=round([637%s],2) +$C10=round([10%-s],2)*(-1) +$C100=round([100%-s],2)*(-1) +$C101=round([101%-s],2) +$C11=round([11%-s],2)*(-1) +$C12=round([12%-s],2)*(-1) +$C13=round([13%-s],2)*(-1) +$C130=round([130%-s],2)*(-1) +$C131=round([131%-s],2)*(-1) +$C1310=round([1310%-s],2)*(-1) +$C1311=round([1311%-s],2)*(-1) +$C132=round([132%-s],2)*(-1) +$C133=round([133%-s],2)*(-1) +$C14=round([14%-s],2)*(-1) +$C140=round([140%-s],2)*(-1) +$C141=round([141%-s],2) +$C15=round([15%-s],2)*(-1) +$C16=round([16%-s],2)*(-1) +$C160=round([160%-s],2)*(-1) +$C161=round([161%-s],2)*(-1) +$C162=round([162%-s],2)*(-1) +$C163=round([163%-s],2)*(-1) +$C164=round([164%-s],2)*(-1) +$C165=round([165%-s],2)*(-1) +$C168=round([168%-s],2)*(-1) +$C17=round([17%-s],2)*(-1) +$C170=round([170%-s],2)*(-1) +$C171=round([171%-s],2)*(-1) +$C172=round([172%-s],2)*(-1) +$C173=round([173%-s],2)*(-1) +$C174=round([174%-s],2)*(-1) +$C175=round([175%-s],2)*(-1) +$C176=round([176%-s],2)*(-1) +$C178=round([178%-s],2)*(-1) +$C179=round([179%-s],2)*(-1) +$C19=round([19%-s],2)*(-1) +$C2=round([2%-s],2)*(-1) +$C20=round([20%-s],2) +$C21=round([21%-s],2) +$C22=round([22%-s],2) +$C23=round([23%-s],2) +$C24=round([24%-s],2) +$C25=round([25%-s],2) +$C26=round([26%-s],2) +$C27=round([27%-s],2) +$C28=round([28%-s],2) +$C29=round([29%-s],2) +$C290=round([290%-s],2) +$C291=round([291%-s],2) +$C3=round([3%-s],2) +$C30=round([30%-s],2) +$C31=round([31%-s],2) +$C32=round([32%-s],2) +$C33=round([33%-s],2) +$C34=round([34%-s],2) +$C35=round([35%-s],2) +$C36=round([36%-s],2) +$C37=round([37%-s],2) +$C40=round([40%-s],2) +$C41=round([41%-s],2) +$C42=round([42%-s],2)*(-1) +$C43=round([43%-s],2)*(-1) +$C439=round([439%-s],2)*(-1) +$C44=round([44%-s],2)*(-1) +$C440=round([440%-s],2)*(-1) +$C441=round([441%-s],2)*(-1) +$C444=round([444%-s],2)*(-1) +$C45=round([45%-s],2)*(-1) +$C450=round([450%-s],2)*(-1) +$C451=round([451%-s],2)*(-1) +$C452=round([452%-s],2)*(-1) +$C453=round([453%-s],2)*(-1) +$C454=round([454%-s],2)*(-1) +$C455=round([455%-s],2)*(-1) +$C456=round([456%-s],2)*(-1) +$C457=round([457%-s],2)*(-1) +$C458=round([458%-s],2)*(-1) +$C459=round([459%-s],2)*(-1) +$C46=round([46%-s],2) +$C47=round([47%-s],2)*(-1) +$C48=round([48%-s],2)*(-1) +$C49=round([49%-s],2) +$C490=round([490%-s],2) +$C491=round([491%-s],2) +$C492=round([492%-s],2)*(-1) +$C493=round([493%-s],2)*(-1) +$C50=round([50%-s],2) +$C51=round([51%-s],2) +$C52=round([52%-s],2) +$C53=round([53%-s],2) +$C54=round([54%-s],2) +$C55=round([55%-s],2) +$C56=round([56%-s],2) +$C57=round([57%-s],2) +$C58=round([58%-s],2) +$C60=round([60%-s],2) +$C61=round([61%-s],2) +$C62=round([62%-s],2) +$C63=round([63%-s],2) +$C630=round([630%-s],2) +$C631=round([631%-s],2) +$C632=round([632%-s],2) +$C633=round([633%-s],2) +$C634=round([634%-s],2) +$C635=round([635%-s],2) +$C636=round([636%-s],2) +$C637=round([637%-s],2) -$C649=round([649%s],2)*(-1) -$C64=round([64%s],2) +$C649=round([649%-s],2)*(-1) +$C64=round([64%-s],2) -$C65=round([65%s],2) -$C66=round([66%s],2) -$C67=round([67%s],2) -$C68=round([68%s],2) -$C680=round([680%s],2) -$C689=round([689%s],2) -$C69=round([69%s],2) -$C690=round([690%s],2) -$C691=round([691%s],2) -$C692=round([692%s],2) -$C6920=round([6920%s],2) -$C6921=round([6921%s],2) -$C693=round([693%s],2) -$C694=round([694%s],2) -$C695=round([695%s],2) -$C696=round([696%s],2) +$C65=round([65%-s],2) +$C66=round([66%-s],2) +$C67=round([67%-s],2) +$C68=round([68%-s],2) +$C680=round([680%-s],2) +$C689=round([689%-s],2) +$C69=round([69%-s],2) +$C690=round([690%-s],2) +$C691=round([691%-s],2) +$C692=round([692%-s],2) +$C6920=round([6920%-s],2) +$C6921=round([6921%-s],2) +$C693=round([693%-s],2) +$C694=round([694%-s],2) +$C695=round([695%-s],2) +$C696=round([696%-s],2) -$C7=round([7%s],2)*(-1) -$C70=round([70%s],2)*(-1) -$C71=round([71%s],2)*(-1) -$C73=round([73%s],2)*(-1) -$C72=round([72%s],2)*(-1) -$C74=round([74%s],2)*(-1) -$C75=round([75%s],2)*(-1) -$C76=round([76%s],2)*(-1) -$C77=round([77%s],2)*(-1) -$C780=round([780%s],2)*(-1) -$C789=round([789%s],2)*(-1) -$C79=round([79%s],2)*(-1) -$C790=round([790%s],2)*(-1) -$C791=round([791%s],2)*(-1) -$C792=round([792%s],2)*(-1) -$C793=round([793%s],2)*(-1) -$C794=round([794%s],2)*(-1) +$C7=round([7%-s],2)*(-1) +$C70=round([70%-s],2)*(-1) +$C71=round([71%-s],2)*(-1) +$C73=round([73%-s],2)*(-1) +$C72=round([72%-s],2)*(-1) +$C74=round([74%-s],2)*(-1) +$C75=round([75%-s],2)*(-1) +$C76=round([76%-s],2)*(-1) +$C77=round([77%-s],2)*(-1) +$C780=round([780%-s],2)*(-1) +$C789=round([789%-s],2)*(-1) +$C79=round([79%-s],2)*(-1) +$C790=round([790%-s],2)*(-1) +$C791=round([791%-s],2)*(-1) +$C792=round([792%-s],2)*(-1) +$C793=round([793%-s],2)*(-1) +$C794=round([794%-s],2)*(-1) # Les formules (*-1) # $S1=$C20+$C21+$C22+$C23+$C24+$C25+$C26+$C27+$C28 diff --git a/html/js/scripts.js b/html/js/scripts.js index 396137259..46f92b035 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -4059,3 +4059,33 @@ function download_document_form(p_form_id) remove_waiting_box(); return false; } +/** + * Search an account or an analytic account or a card, used in REPORT + * @param {json} p_obj , + * property : - op for ajax_misc , + * - gDossier, + * - target DOM element to update with the result + * - query for the search + * @returns {void} + */ +function search_account_card(p_obj) +{ + p_obj['op']=p_obj['op']||"search_account_card"; + var query=p_obj; + if (p_obj.tagName && p_obj.tagName=='FORM') { + query=p_obj.serialize(true); + } + + waiting_box(); + new Ajax.Request("ajax_misc.php",{method:"get",parameters:query, + onSuccess: function (req){ + + var pos=calcy(50); + var obj={id:"search_account_div",cssclass:"inner_box",style:"top:"+pos+"px", + html:req.responseText}; + add_div(obj); + remove_waiting_box(); + } + }); + return false; +} \ No newline at end of file diff --git a/include/ajax/ajax_forecast_item.php b/include/ajax/ajax_forecast_item.php index 5b92b7891..e509b5482 100644 --- a/include/ajax/ajax_forecast_item.php +++ b/include/ajax/ajax_forecast_item.php @@ -49,7 +49,7 @@ if ($action=="input") echo $forecast_item->ajax_input()->saveXML(); return; }elseif ($action == "save") { - $forecast_item->send_header(); + $forecast_item->send_header(); echo $forecast_item->ajax_save()->saveXML(); return; } elseif ($action == "delete") { diff --git a/include/ajax/ajax_report_definition.php b/include/ajax/ajax_report_definition.php new file mode 100644 index 000000000..33139269d --- /dev/null +++ b/include/ajax/ajax_report_definition.php @@ -0,0 +1,115 @@ + + +if (!defined('ALLOWED')) + die('Appel direct ne sont pas permis'); + +/** + * @file + * @brief manage the simple report definition + */ +$http=new HttpInput(); +$sa=$http->request('sa', "string", "acc_report_mtable"); +if ($sa =="acc_report_mtable") +{ + + try + { + $ctl=$http->request('ctl'); + $id=$http->request("p_id", "number"); + $action=$http->request("action"); + $form_def=$http->request("form_def", "number"); + } + catch (Exception $ex) + { + die("invalid data"); + } + + require_once NOALYSS_INCLUDE."/class/acc_report_mtable.class.php"; + + $acc_report=Acc_Report_MTable::build($id, $form_def); + $acc_report->set_object_name($ctl); + + if ($action=='input') + { + $acc_report->send_header(); + echo $acc_report->ajax_input()->saveXML(); + return; + } + elseif ($action=='save') + { + $acc_report->send_header(); + echo $acc_report->ajax_save()->saveXML(); + return; + } + elseif ($action=="delete") + { + $acc_report->send_header(); + echo $acc_report->ajax_delete()->saveXML(); + return; + } +}elseif ($sa == "change_name") +{ + try + { + $id=$http->request("p_id"); + $input=$http->request("input"); + $action=$http->request("ieaction","string","display"); + } + catch (Exception $exc) + { + echo $exc->getMessage(); + + } + if ( $action == "display" ) { + $iName=Inplace_Edit::build($input); + $iName->set_callback("ajax_misc.php"); + $iName->add_json_param("op", "report_definition"); + $iName->add_json_param("sa", "change_name"); + $iName->add_json_param("gDossier", Dossier::id()); + $iName->add_json_param("p_id", $id); + echo $iName->ajax_input(); + } elseif ($action == "ok") { + $iName=Inplace_Edit::build($input); + $iName->set_callback("ajax_misc.php"); + $iName->add_json_param("op", "report_definition"); + $iName->add_json_param("sa", "change_name"); + $iName->add_json_param("p_id", $id); + $iName->add_json_param("gDossier", Dossier::id()); + $iName->set_value($http->request("value")); + echo $iName->value(); + + $cn->exec_sql("update form_definition set fr_label=$1 where fr_id=$2",[ + $http->request("value"), + $id]); + } elseif ($action == 'cancel'){ + $iName=Inplace_Edit::build($input); + $iName->set_callback("ajax_misc.php"); + $iName->add_json_param("op", "report_definition"); + $iName->add_json_param("sa", "change_name"); + $iName->add_json_param("p_id", $id); + $iName->add_json_param("gDossier", Dossier::id()); + echo $iName->value(); + + } + + +} \ No newline at end of file diff --git a/include/ajax/ajax_search_account_card.php b/include/ajax/ajax_search_account_card.php new file mode 100644 index 000000000..60cf011ed --- /dev/null +++ b/include/ajax/ajax_search_account_card.php @@ -0,0 +1,129 @@ + + +if (!defined('ALLOWED')) + die('Appel direct ne sont pas permis'); + +/** + * @file + * @brief search cards , accounting or analytic account + */ +$http=new HttpInput(); +try +{ + $query=$http->request("query","string",""); + $target=$http->request("target"); +} +catch (Exception $exc) +{ + die ($exc->getMessage()); +} + +echo HtmlInput::title_box(_("Résultat"), "search_account_div") ; +echo '
'; +echo ''; +echo _("Vous pouvez faire des opérations arithmétiques entre des postes comptables, des comptes analytiques et des fiches") +; +echo '
'; +$array=array(); +if ($query != "") { + + $array=$cn->get_array(" + select quick_code as s_code,vw_name||' ' + ||coalesce(vw_first_name,'') ||' ' + ||coalesce(vw_description,'') as s_name,'C' as s_type from vw_fiche_attr vfa + where quick_code like upper('%'||$1||'%') or lower(vw_name) like '%'||$1||'%' + union all + select pcm_val, pcm_lib ,'A' from tmp_pcmn tp + where pcm_val like '%'||$1||'%' + or lower(pcm_lib) like '%'||$1||'%' + union all + select po_name ,po_description , 'N' from poste_analytique pa + where + po_name like '%'||$1||'%' + or po_description like '%'||$1||'%' + order by 1 + +",[$query]); +} +echo '| Position | "; - $r.= "Texte | "; - $r.= "Formule | "; - - $r.= '
|---|---|---|
| "; - $wPos->value=( isset($this->aAcc_Report_row[$i]->fo_pos))?$this->aAcc_Report_row[$i]->fo_pos:$i+1; - $r.=$wPos->input("pos".$i); - $r.= ' | '; - - - $r.= ""; - $wName->value=( isset($this->aAcc_Report_row[$i]->fo_label))?$this->aAcc_Report_row[$i]->fo_label:""; - $r.=$wName->input("text".$i); - $r.= ' | '; - - $r.=''; - $search=new IPoste("form".$i); - $search->size=50; - $search->value=( isset($this->aAcc_Report_row[$i]->fo_formula))?$this->aAcc_Report_row[$i]->fo_formula:""; - $search->label=_("Recherche poste"); - $search->set_attribute('gDossier',dossier::id()); - $search->set_attribute('bracket',1); - $search->set_attribute('no_overwrite',1); - $search->set_attribute('noquery',1); - $search->set_attribute('account',$search->name); - $search->set_attribute('ipopup','ipop_card'); - - $r.=$search->input(); - $r.=' | '; - - - $r.= "