Exemple #1
0
 def make_output(self):
     Report.make_output(self)
     title = "{0} - {1} a {2}".format(self.NAME,
                                      date_to_str(self.start_date),
                                      date_to_str(self.end_date))
     return TableSection("most_important_companies", title, (StringData(
         "company", "Empresa"), CurrencyData("sales", "Vendas", unit="R$")),
                         self.data, self.bits)
Exemple #2
0
 def make_output(self):
     Report.make_output(self)
     title = "{0} - {1} a {2}".format(self.NAME,
                                      date_to_str(self.start_date),
                                      date_to_str(self.end_date))
     return TableSection("most_important_items", title, (StringData(
         "item",
         "Item"), FloatData("quantity", "Quantidade", strip_zeros=True)),
                         self.data, self.bits)
Exemple #3
0
 def make_output(self):
     Report.make_output(self)
     title = "{0} - {1} a {2}".format(self.NAME, 
                                      date_to_str(self.start_date),
                                      date_to_str(self.end_date))        
     return TableSection("compact_companies_report", title,
                         (DateData("date", "Data"),
                          StringData("company", "Empresa"),
                          IntegerData("oid", "ID"),
                          CurrencyData("value", "Valor", unit="R$")), 
                         self.data, self.bits)
Exemple #4
0
 def make_output(self):
     Report.make_output(self)
     title = "{0} - {1} a {2}".format(self.NAME, 
                                      date_to_str(self.start_date),
                                      date_to_str(self.end_date))        
     return TableSection("production_cost_report", title,
                         (IntegerData("oid", "OS"),
                          StringData("item", "Item"),
                          FloatData("quantity", "Quantidade", strip_zeros=True), 
                          CurrencyData("value", "Custo unitário", unit="R$"), 
                          CurrencyData("total", "Custo total", unit="R$")), 
                         self.data, self.bits)
Exemple #5
0
 def make_output(self):
     Report.make_output(self)
     title = "{0} - {1} a {2}".format(self.NAME, 
                                      date_to_str(self.start_date),
                                      date_to_str(self.end_date))        
     return TableSection("production_operations_report", title,
                         (DateData("date", "Data"),
                          StringData("company", "Empresa"),
                          IntegerData("oid", "ID"),
                          StringData("item", "Item"),
                          FloatData("quantity", "Quantidade", strip_zeros=True)), 
                         self.data, self.bits)
Exemple #6
0
 def make_output(self):
     Report.make_output(self)
     title = "{0} - {1} a {2}".format(self.NAME, 
                                      date_to_str(self.start_date),
                                      date_to_str(self.end_date))        
     return TableSection("production_sales_report", title,
                         (DateData("date", "Data"),
                          StringData("company", "Empresa"),
                          StringData("item", "Item"),
                          FloatData("quantity", "Quantidade", strip_zeros=True), 
                          CurrencyData("value", "Valor", unit="R$"), 
                          CurrencyData("total", "Total", unit="R$")), 
                         self.data, self.bits)
Exemple #7
0
def format_Date(data):
    return utils.date_to_str(data.content)