Difference between revisions of "Template:Semorg-expense"

From SemanticOrganization
Jump to: navigation, search
 
Line 5: Line 5:
 
   |description={{{description|}}}  
 
   |description={{{description|}}}  
 
   |amount-gross={{{amount-gross|}}}  
 
   |amount-gross={{{amount-gross|}}}  
   |amount-net={{{amount-net|}}}
+
   |amount-net={{{amount-net|{{#if:{{{amount-gross|}}}
 +
    |{{#if:{{{vat|}}}
 +
      |{{formatnum:{{#expr:{{formatnum:{{{amount-gross}}}|R}}-{{formatnum:{{{vat}}}|R}}}}}}
 +
    }}
 +
  }}}}}
 
   |account={{{account|}}}
 
   |account={{{account|}}}
 +
  |vat={{{vat|{{#if:{{{amount-gross|}}}
 +
    |{{#if:{{{amount-net|}}}
 +
      |{{formatnum:{{#expr:{{formatnum:{{{amount-gross}}}|R}}-{{formatnum:{{{amount-net}}}|R}}}}}}
 +
    }}
 +
  }}}}}
 +
  |type={{{type|}}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:17, 11 August 2019

This page is part of the Semantic Organization extension.

If you want to customize this template you can copy its contents to another page (use for example Template:Semorg-expense-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-expense-template