Bladeren bron

Joined all gui files on ourbiz-gui.fl and deleting individual ones.

mingodad 13 jaren geleden
bovenliggende
commit
88f0ac2c7b

+ 0 - 86
SquiLu-ourbiz/barchart-gui.nut

@@ -1,86 +0,0 @@
-class BarChartGroup extends Fl_Group {
-  
-  // Declaration of class members
-  pack = null;
-  btnShowChart = null;
-  periodes_to_show = null;
-  btn_periode_is_years = null;
-  btn_periode_is_months = null;
-  btn_periode_is_weeks = null;
-  btn_periode_is_days = null;
-  chkOpt = null;
-  bar_chart = null;
-  
-  constructor(){
-    base.constructor(288, 260, 760, 460, _tr("BarChartGroup"));
-    local _x = 288, _y = 260;
-    // Create member functions and widgets
-    {
-      local o = Fl_Pack(_x + 0, _y + 0, 760, 25);
-      pack = o;
-      o.type(1);
-      o.labelsize(16);
-      o->spacing(10);
-      {
-        {
-          local o = Fl_Button(_x + 0, _y + 0, 96, 25, _tr("Show"));
-          btnShowChart = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Int_Input(_x + 106, _y + 0, 80, 25);
-          periodes_to_show = o;
-          o.textsize(16);
-          o.labelsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.tooltip(_tr("Write then number of periodes you want to see"));
-          o->value("12");
-        }
-        {
-          local o = Fl_Round_Button(_x + 196, _y + 0, 110, 25, _tr("Years"));
-          btn_periode_is_years = o;
-          o.labelsize(16);
-          o.type(102);
-          o.down_box(FL_ROUND_DOWN_BOX);
-        }
-        {
-          local o = Fl_Round_Button(_x + 316, _y + 0, 110, 25, _tr("Months"));
-          btn_periode_is_months = o;
-          o.labelsize(16);
-          o.type(102);
-          o.down_box(FL_ROUND_DOWN_BOX);
-          o->setonly();
-        }
-        {
-          local o = Fl_Round_Button(_x + 436, _y + 0, 110, 25, _tr("Weeks"));
-          btn_periode_is_weeks = o;
-          o.labelsize(16);
-          o.type(102);
-          o.down_box(FL_ROUND_DOWN_BOX);
-        }
-        {
-          local o = Fl_Round_Button(_x + 556, _y + 0, 110, 25, _tr("Days"));
-          btn_periode_is_days = o;
-          o.labelsize(16);
-          o.type(102);
-          o.down_box(FL_ROUND_DOWN_BOX);
-        }
-        {
-          local o = Fl_Check_Button(_x + 660, _y + 5, 64, 15);
-          chkOpt = o;
-          o.down_box(FL_DOWN_BOX);
-        }
-      }
-      o.end();
-    }
-    {
-      local o = Fl_Bar_Chart(_x + 0, _y + 30, 760, 430);
-      bar_chart = o;
-      o.align(5);
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-      o.color(7);
-      Fl_Group.current().resizable(o);
-    }
-  }
-}

+ 0 - 65
SquiLu-ourbiz/base-report-A4.nut

@@ -1,65 +0,0 @@
-//class BaseReportA4 extends Fl_Group {
-class BaseReportA4 extends Fl_Window {
-	rpt_Logo=null;
-	rpt_Title=null;
-	rpt_SubTitle=null;
-	rpt_Body=null;
-	rpt_SubFooter=null;
-	rpt_Footer=null;
-	
-constructor(px=10, py=50, pw=420, ph=594, lbl="BaseReportA4") {
-	base.constructor(px, py, pw, ph, _tr(lbl));
-begin();
-{ rpt_Logo = new Fl_Box(10, 5, 105, 35, _tr("Ourbiz"));
-  rpt_Logo->labeltype(FL_SHADOW_LABEL);
-  rpt_Logo->labelfont(3);
-  rpt_Logo->labelsize(30);
-  rpt_Logo->align((644|FL_ALIGN_INSIDE));
-} // Fl_Box* rpt_Logo
-{ rpt_Title = new Fl_Box(120, 5, 295, 20, _tr("Report Title"));
-  rpt_Title->labelfont(1);
-  rpt_Title->labelsize(16);
-} // Fl_Box* rpt_Title
-{ rpt_SubTitle = new Fl_Box(120, 30, 290, 10, _tr("Date"));
-  rpt_SubTitle->labelsize(8);
-  rpt_SubTitle->align((FL_ALIGN_RIGHT|FL_ALIGN_INSIDE));
-} // Fl_Box* rpt_SubTitle
-{ local o = new Fl_Box(10, 40, 405, 1, _tr("Line"));
-  o->box(FL_FLAT_BOX);
-  o->color(34);
-  o->labeltype(FL_NO_LABEL);
-} // Fl_Box* o
-{ local o = rpt_Body = new Fl_Data_Table(10, 45, 408, 495);
-  rpt_Body->box(FL_NO_BOX);
-  rpt_Body->color(FL_BACKGROUND2_COLOR);
-  rpt_Body->selection_color(FL_SELECTION_COLOR);
-  rpt_Body->labeltype(FL_NORMAL_LABEL);
-  rpt_Body->labelfont(0);
-  rpt_Body->labelsize(8);
-  rpt_Body->labelcolor(FL_FOREGROUND_COLOR);
-  rpt_Body->textsize(8);
-  rpt_Body->align((FL_ALIGN_BOTTOM));
-  rpt_Body->when(FL_WHEN_RELEASE_ALWAYS);
-  Fl_Group.current()->resizable(rpt_Body);
-  o->has_scrollbar(FLVS_NONE);
-  o->feature_remove(FLVF_ROW_SELECT | FLVF_PERSIST_SELECT);
-  o->for_print(true);
-} // Fl_Data_Table* rpt_Body
-{ local o = new Fl_Box(10, 545, 405, 1, _tr("Line"));
-  o->box(FL_FLAT_BOX);
-  o->color(34);
-  o->labeltype(FL_NO_LABEL);
-} // Fl_Box* o
-{ rpt_SubFooter = new Fl_Box(10, 547, 405, 10, _tr("Page"));
-  rpt_SubFooter->labelfont(1);
-  rpt_SubFooter->labelsize(8);
-  rpt_SubFooter->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-} // Fl_Box* rpt_SubFooter
-{ rpt_Footer = new Fl_Box(10, 560, 405, 19, _tr("OURBIZ is an excelente application to manage a business."));
-  rpt_Footer->labelfont(2);
-  rpt_Footer->labelsize(8);
-  rpt_Footer->align((129|FL_ALIGN_INSIDE));
-} // Fl_Box* rpt_Footer
-end();
-}
-}

+ 0 - 105
SquiLu-ourbiz/calendar-gui.fl

@@ -1,105 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-widget_class CalendarWindow {
-  label Calendar open selected
-  xywh {732 184 350 305} type Double labelsize 16
-  class Base_Window visible
-} {
-  Fl_Box label_month {
-    label Calendar
-    xywh {5 5 340 25} box ENGRAVED_BOX color 7 labelsize 16
-  }
-  Fl_Group {} {open
-    xywh {6 35 340 25} labelsize 16
-  } {
-    Fl_Button btnMonth1 {
-      label 1
-      xywh {6 35 25 25}
-    }
-    Fl_Button btnMonth2 {
-      label 2
-      xywh {34 35 25 25}
-    }
-    Fl_Button btnMonth3 {
-      label 3
-      xywh {63 35 25 25}
-    }
-    Fl_Button btnMonth4 {
-      label 4
-      xywh {91 35 25 25}
-    }
-    Fl_Button btnMonth5 {
-      label 5
-      xywh {120 35 25 25}
-    }
-    Fl_Button btnMonth6 {
-      label 6
-      xywh {148 35 25 25}
-    }
-    Fl_Button btnMonth7 {
-      label 7
-      xywh {177 35 25 25}
-    }
-    Fl_Button btnMonth8 {
-      label 8
-      xywh {205 35 25 25}
-    }
-    Fl_Button btnMonth9 {
-      label 9
-      xywh {234 35 25 25}
-    }
-    Fl_Button btnMonth10 {
-      label 10
-      xywh {262 35 25 25}
-    }
-    Fl_Button btnMonth11 {
-      label 11
-      xywh {291 35 25 25}
-    }
-    Fl_Button btnMonth12 {
-      label 12
-      xywh {320 35 25 25}
-    }
-  }
-  Fl_Browser calendar_table {
-    xywh {5 65 340 202} labeltype NO_LABEL labelsize 16
-    class Fl_Virtual_Table
-  }
-  Fl_Group {} {open
-    xywh {5 275 340 25} labelsize 16
-  } {
-    Fl_Button btnPrevYear {
-      label {@<<}
-      tooltip {Go to previous year} xywh {5 275 50 25} labelsize 16
-      class Fl_Repeat_Button
-    }
-    Fl_Button btnPrevMonth {
-      label {@<}
-      tooltip {Go to previous month} xywh {63 275 50 25} labelsize 16
-      class Fl_Repeat_Button
-    }
-    Fl_Button btnToday {
-      label {@<->}
-      tooltip {Go to today date} xywh {121 275 50 25} labelsize 16
-    }
-    Fl_Button btnSelect {
-      label {@circle}
-      tooltip {Select current date} xywh {179 275 50 25} labelsize 16
-    }
-    Fl_Button btnNextMonth {
-      label {@>}
-      tooltip {Go to next month} xywh {237 275 50 25} labelsize 16
-      class Fl_Repeat_Button
-    }
-    Fl_Button btnNextYear {
-      label {@>>}
-      tooltip {Go to next year} xywh {295 275 50 25} labelsize 16
-      class Fl_Repeat_Button
-    }
-  }
-} 

+ 0 - 142
SquiLu-ourbiz/calendar-gui.nut

@@ -1,142 +0,0 @@
-class CalendarWindow extends MyBaseWindow {
-  
-  // Declaration of class members
-  label_month = null;
-  btnMonth1 = null;
-  btnMonth2 = null;
-  btnMonth3 = null;
-  btnMonth4 = null;
-  btnMonth5 = null;
-  btnMonth6 = null;
-  btnMonth7 = null;
-  btnMonth8 = null;
-  btnMonth9 = null;
-  btnMonth10 = null;
-  btnMonth11 = null;
-  btnMonth12 = null;
-  grid = null;
-  btnPrevYear = null;
-  btnPrevMonth = null;
-  btnToday = null;
-  btnSelect = null;
-  btnNextMonth = null;
-  btnNextYear = null;
-  
-  constructor(){
-    base.constructor(732, 184, 350, 305);
-    // Create member functions and widgets
-    {
-      local o = Fl_Box(5, 5, 340, 25, _tr("Calendar"));
-      label_month = o;
-      o.labelsize(16);
-      o.box(FL_ENGRAVED_BOX);
-      o.color(7);
-    }
-    {
-      local o = Fl_Group(6, 35, 340, 25);
-      o.labelsize(16);
-      {
-        {
-          local o = Fl_Button(6, 35, 25, 25, _tr("1"));
-          btnMonth1 = o;
-        }
-        {
-          local o = Fl_Button(34, 35, 25, 25, _tr("2"));
-          btnMonth2 = o;
-        }
-        {
-          local o = Fl_Button(63, 35, 25, 25, _tr("3"));
-          btnMonth3 = o;
-        }
-        {
-          local o = Fl_Button(91, 35, 25, 25, _tr("4"));
-          btnMonth4 = o;
-        }
-        {
-          local o = Fl_Button(120, 35, 25, 25, _tr("5"));
-          btnMonth5 = o;
-        }
-        {
-          local o = Fl_Button(148, 35, 25, 25, _tr("6"));
-          btnMonth6 = o;
-        }
-        {
-          local o = Fl_Button(177, 35, 25, 25, _tr("7"));
-          btnMonth7 = o;
-        }
-        {
-          local o = Fl_Button(205, 35, 25, 25, _tr("8"));
-          btnMonth8 = o;
-        }
-        {
-          local o = Fl_Button(234, 35, 25, 25, _tr("9"));
-          btnMonth9 = o;
-        }
-        {
-          local o = Fl_Button(262, 35, 25, 25, _tr("10"));
-          btnMonth10 = o;
-        }
-        {
-          local o = Fl_Button(291, 35, 25, 25, _tr("11"));
-          btnMonth11 = o;
-        }
-        {
-          local o = Fl_Button(320, 35, 25, 25, _tr("12"));
-          btnMonth12 = o;
-        }
-      }
-      o.end();
-    }
-    {
-      local o = Fl_Data_Table_Calendar(5, 65, 340, 202);
-      grid = o;
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-      o.end();
-    }
-    {
-      local o = Fl_Group(5, 275, 340, 25);
-      o.labelsize(16);
-      {
-        {
-          local o = Fl_Repeat_Button(5, 275, 50, 25, _tr("@<<"));
-          btnPrevYear = o;
-          o.labelsize(16);
-          o.tooltip(_tr("Go to previous year"));
-        }
-        {
-          local o = Fl_Repeat_Button(63, 275, 50, 25, _tr("@<"));
-          btnPrevMonth = o;
-          o.labelsize(16);
-          o.tooltip(_tr("Go to previous month"));
-        }
-        {
-          local o = Fl_Button(121, 275, 50, 25, _tr("@<->"));
-          btnToday = o;
-          o.labelsize(16);
-          o.tooltip(_tr("Go to today date"));
-        }
-        {
-          local o = Fl_Button(179, 275, 50, 25, _tr("@circle"));
-          btnSelect = o;
-          o.labelsize(16);
-          o.tooltip(_tr("Select current date"));
-        }
-        {
-          local o = Fl_Repeat_Button(237, 275, 50, 25, _tr("@>"));
-          btnNextMonth = o;
-          o.labelsize(16);
-          o.tooltip(_tr("Go to next month"));
-        }
-        {
-          local o = Fl_Repeat_Button(295, 275, 50, 25, _tr("@>>"));
-          btnNextYear = o;
-          o.labelsize(16);
-          o.tooltip(_tr("Go to next year"));
-        }
-      }
-      o.end();
-    }
-  }
-}
-

+ 0 - 108
SquiLu-ourbiz/delivery-calc-gui.nut

@@ -1,108 +0,0 @@
-class DeliveryCalcWindow extends MyBaseWindow {
-  
-  // Declaration of class members
-  gui_destination_zone = null;
-  gui_destination_city = null;
-  gui_weight = null;
-  gui_cost = null;
-  gui_discount = null;
-  gui_subtotal = null;
-  gui_insurance = null;
-  gui_increment = null;
-  gui_total = null;
-  gui_btnCalc = null;
-  gui_btnAdd = null;
-  
-  constructor(){
-    base.constructor(338, 167, 416, 289);
-    // Create member functions and widgets
-    {
-      local o = Flu_Combo_List(10, 25, 395, 25, _tr("Destination Zone"));
-      gui_destination_zone = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-    }
-    {
-      local o = Flu_Combo_List(10, 80, 395, 25, _tr("Destination City"));
-      gui_destination_city = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-    }
-    {
-      local o = Fl_Float_Input(10, 132, 100, 25, _tr("Weight"));
-      gui_weight = o;
-      o.textsize(16);
-      o.align(5);
-      o.textfont(1);
-      o.labelsize(16);
-    }
-    {
-      local o = Fl_Output(130, 133, 130, 24, _tr("Cost"));
-      gui_cost = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      o->right_to_left(1);
-      o->use_numeric_format(1);
-    }
-    {
-      local o = Fl_Output(276, 131, 130, 24, _tr("Discount"));
-      gui_discount = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      o->right_to_left(1);
-      o->use_numeric_format(1);
-    }
-    {
-      local o = Fl_Output(130, 185, 130, 24, _tr("Subtotal"));
-      gui_subtotal = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      o->right_to_left(1);
-      o->use_numeric_format(1);
-    }
-    {
-      local o = Fl_Output(275, 181, 130, 24, _tr("Insurance"));
-      gui_insurance = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      o->right_to_left(1);
-      o->use_numeric_format(1);
-    }
-    {
-      local o = Fl_Output(276, 219, 130, 24, _tr("Increment"));
-      gui_increment = o;
-      o.textsize(16);
-      o.labelsize(16);
-      o->right_to_left(1);
-      o->use_numeric_format(1);
-    }
-    {
-      local o = Fl_Output(276, 253, 130, 24, _tr("Total"));
-      gui_total = o;
-      o.textsize(16);
-      o.textfont(1);
-      o.labelsize(16);
-      o->right_to_left(1);
-      o->use_numeric_format(1);
-    }
-    {
-      local o = Fl_Button(10, 217, 100, 25, _tr("Calc"));
-      gui_btnCalc = o;
-      o.labelsize(16);
-      o.tooltip(_tr("Calculate the delivery price"));
-    }
-    {
-      local o = Fl_Button(10, 252, 100, 25, _tr("Add"));
-      gui_btnAdd = o;
-      o.labelsize(16);
-      o.tooltip(_tr("Add the calculated value on the invoice line"));
-    }
-  }
-}
-

+ 0 - 352
SquiLu-ourbiz/delivery-info.json

@@ -1,352 +0,0 @@
-{
-"provincias" : [
-[1,4,"ALAVA", "Victoria"],
-[2,4,"ALBACETE", "Albacete"],
-[3,3,"ALICANTE", "Alicante", "Crevillente", "Elche", "Elda", "Matola", "San Felipe Neri", "San Juan", "San Vicente de Raspeig", "Torrellano", "Valverde"],
-[4,8,"ALMERIA", "Almeria", "Aguadulce", "Benahadux", "El Ejido", "Huercal de Almería", "La Cañada", "Pechina", "Viator", "Vicar"],
-[33,4,"ASTURIAS", "Oviedo", "Gijón", "Avilés"],
-[5,4,"AVILA", "Ávila"],
-[6,3,"BADAJOZ", "Badajoz"],
-[7,13,"BALEARES, ISLAS", "Palma de Mallorca"],
-[8,1,"BARCELONA", "Barcelona", "Badalona", "Badia", "Cornella de Llobregat", "Hospitalet de Llobregat", "La Florida", "La Llagosta", "Mollet del Valles", "Moncada y Reixach", "Parets del Valles", "San Adrián del Besós", "San Justo Desvern", "Santa Coloma de Gramanet", "Santa Perpetua de Mogoda"],
-[9,1,"BURGOS", "Burgos"],
-[10,3,"CACERES", "Cáceres"],
-[11,9,"CADIZ", "Cadiz", "Jerez", "Puerto Real", "Puerto de Santa María", "San Fernando"],
-[112,8,"CADIZ-Algeciras", "Algeciras", "Estación de San Roque", "La Línea", "Los Barrios", "Palmones", "San Roque"],
-[39,4,"CANTABRIA", "Santander", "Torrelavega"],
-[12,4,"CASTELLON", "Castellón", "Almazora", "El Grao", "Villarreal de los Infantes"],
-[51,-1,"CEUTA", "Ceuta"],
-[13,4,"CIUDAD REAL", "Ciudad Real"],
-[14,8,"CORDOBA", "Córdoba", "Cabra", "Albedín", "Alcolea", "El Higuerón", "Monturque", "Priego de Córdoba", "Santa Cruz", "Villarrubia", "Villaviciosa"],
-[15,4,"CORUÑA, LA", "La Coruña", "Arteixo", "Bergondo", "Betanzos", "Cambre", "Culleredo", "El Ferrol", "Oleiros", "Padrón y Santiago"],
-[16,4,"CUENCA", "Cuenca"],
-[17,4,"GERONA", "Gerona", "Aiguaviva", "El Perelló", "Salt", "Vilablareix"],
-[18,8,"GRANADA", "Granada", "Albolote", "Armilla", "Atarfe", "Cerrillo de Maracena", "Huetor Vega", "Maracena", "Ogijares", "Peligros", "Pinos Puente", "Pulianas", "Santa Fe"],
-[19,4,"GUADALAJARA", "Guadalajara"],
-[20,4,"GUIPUZCOA", "Hernani", "Lasarte", "San Sebastián", "Usurbil"],
-[21,9,"HUELVA", "Huelva", "Aljaraque", "Bea", "Gibrale?n", "Moguer", "Pozo del Camino", "San Juan del Puerto"],
-[22,4,"HUESCA", "Huesca"],
-[23,8,"JAEN", "Jaen", "Andujar", "Bailén", "Linares", "Torredelcampo", "Ubeda"],
-[24,4,"LEON", "Leon"],
-[25,4,"LERIDA", "Lérida"],
-[27,4,"LUGO", "Lugo"],
-[28,3,"MADRID", "Madrid", "Alcobendas", "Alcorcón", "Coslada", "Fuenlabrada", "Getafe", "Leganés", "Pinto", "San Fernando de Henares", "San Sebastián de los Reyes", "Torrejón de Ardoz"],
-[29,10,"MALAGA", "Málaga todas poblaciones"],
-[52,-1,"MELILLA", "Mellilla"],
-[30,6,"MURCIA", "Murcia", "Alcantarilla", "Algezares", "Aljucer", "Beniaján", "Cabezo de Torres", "Cabezo Cortado", "El Palmar", "El Puntal", "Espinardo", "La Albatalia", "La Azacaya", "Molina de Segura", "Nonduermas", "Puente Tocinos", "San Ginés"],
-[31,4,"NAVARRA", "Panplona", "Barrioplano", "Berriozar", "Burlada", "Huarte", "Mutilva Alta", "Mutilva Baja", "Noain", "Villava"],
-[32,4,"OURENSE", "Orense", "San Ciprián das Viñas"],
-[34,1,"PALENCIA", "Palencia", "Dueñas"],
-[35,-1,"PALMAS, LAS", "Las Palmas de Gran Canaria"],
-[36,4,"PONTEVEDRA", "Pontevedra", "Marín", "Mos", "Porriño", "Puixeros", "Redondela y Vigo"],
-[26,4,"RIOJA, LA", "Logroño"],
-[37,1,"SALAMANCA", "Salamanca", "Cabrerizos", "Carbajosa de la Sagrada", "Castellanos de Moriscos", "Villares de la Reina"],
-[38,-1,"SANTA CRUZ DE TENERIFE", "Santa Cruz de Tenerife"],
-[40,4,"SEGOVIA", "Segovia"],
-[41,8,"SEVILLA", "Sevilla", "Alcalá de Guadaira", "Bormujos", "Camas", "Castilleja de la Cuesta", "Dos Hermanas", "Gines", "La Rinconada", "Mairena de Aljarafe", "San Juan de Aznalfarache", "Santiponce", "Tomares", "Valencina de la Concepción"],
-[42,4,"SORIA", "Soria"],
-[43,4,"TARRAGONA", "Tarragona", "Reus"],
-[44,4,"TERUEL", "Teruel"],
-[45,4,"TOLEDO", "Toledo"],
-[46,3,"VALENCIA", "Valencia", "Alacuas", "Aldaya", "Burjasot", "Chirivella", "Mislata", "Nazaret", "Paiporta", "Paterna", "Pica?a", "Tabernes Blanques", "Torrente", "Vinalesa"],
-[47,1,"VALLADOLID", "Valladolid", "Cigales", "Fuensaldaña", "Laguna de Duero", "La Cisternita", "Tudela de Duero", "Villanuela"],
-[48,4,"VIZCAYA", "Arrigorriaga", "Astraduba", "Asua", "Baracaldo", "Basauri", "Bilbao", "Cruces", "Erandio", "Etxeberri", "Galdacano", "Guetxo", "Lejona", "Loiu", "Portugalete", "San Salvador del Valle", "Sondica", "Trápaga", "Zorroza"],
-[49,1,"ZAMORA", "Zamora"],
-[50,1,"ZARAGOZA", "Zaragoza", "Alfajarón", "Cadrete", "Casetas", "Cuarte de Huerva", "Burgo de Ebro", "Figueruelas", "La Cartuja", "La Puebla de Alfinden", "María de Huerva", "Monzalbarba", "Pastriz", "San Juan de Mozarrifar", "Utebo", "Villafranca de Ebro", "Villanueva de Gállego y Zuera"]
-],
-
-"peso_escala" : [
-10,
-20,
-30,
-40,
-50,
-60,
-70,
-80,
-90,
-100,
-120,
-140,
-160,
-180,
-200,
-250,
-300,
-350,
-400,
-450,
-500,
-600,
-700,
-800,
-900,
-1000,
-1001
-],
-
-"precio_baremo_descuento" : [
-0,
-0.2,
-0,
-0.2,
-0.2,
-0,
-0.2,
-0,
-0.2,
-0.2,
-0.2
-],
-
-"precio_baremo" : [
-[],
-[
-	9.92,
-	15.78,
-	20.82,
-	24.96,
-	29.31,
-	34.02,
-	37.35,
-	40.61,
-	44.17,
-	50.02,
-	56.12,
-	62.99,
-	69.76,
-	77.33,
-	85.13,
-	98.84,
-	110.31,
-	126.09,
-	139.18,
-	151.17,
-	162.06,
-	194.13,
-	217.55,
-	238.95,
-	251.33,
-	270.43,
-	249.84
-],
-[],
-[
-	8.66,
-	13.05,
-	16.83,
-	20.59,
-	24.03,
-	28.03,
-	31.35,
-	32.79,
-	37.13,
-	41.30,
-	46.25,
-	52.33,
-	57.95,
-	64.03,
-	69.76,
-	80.35,
-	90.42,
-	102.13,
-	112.26,
-	122.21,
-	127.94,
-	154.62,
-	171.66,
-	185.62,
-	209.25,
-	226.53,
-	205.71
-],
-[
-	10.69,
-	16.99,
-	22.42,
-	26.87,
-	31.57,
-	37.15,
-	42.57,
-	46.62,
-	51.34,
-	53.87,
-	62.68,
-	69.92,
-	75.13,
-	83.28,
-	91.68,
-	103.51,
-	118.80,
-	135.79,
-	150.10,
-	165.42,
-	170.92,
-	203.46,
-	228.00,
-	250.43,
-	262.01,
-	282.59,
-	260.34
-],
-[],
-[
-	8.20,
-	12.65,
-	16.71,
-	19.62,
-	23.39,
-	27.10,
-	29.95,
-	32.37,
-	35.12,
-	36.93,
-	42.34,
-	47.32,
-	52.36,
-	58.19,
-	63.41,
-	77.69,
-	89.77,
-	102.47,
-	110.61,
-	121.86,
-	127.50,
-	149.20,
-	166.13,
-	177.42,
-	189.34,
-	194.80,
-	175.06
-],
-[],
-[
-	7.07,
-	10.93,
-	13.15,
-	15.60,
-	18.06,
-	20.28,
-	22.50,
-	24.72,
-	26.60,
-	28.69,
-	32.38,
-	35.54,
-	38.46,
-	41.73,
-	44.89,
-	52.25,
-	59.34,
-	67.58,
-	74.58,
-	81.30,
-	87.50,
-	102.59,
-	115.85,
-	129.00,
-	142.15,
-	155.01,
-	147.99
-],
-[
-	7.78,
-	11.97,
-	14.76,
-	17.38,
-	19.99,
-	22.54,
-	24.96,
-	27.52,
-	29.58,
-	31.96,
-	35.90,
-	39.43,
-	42.70,
-	46.41,
-	49.94,
-	58.08,
-	65.96,
-	74.95,
-	82.66,
-	90.45,
-	97.37,
-	114.08,
-	128.78,
-	143.24,
-	157.81,
-	172.13,
-	161.95
-],
-[
-	4.45,
-	5.84,
-	6.85,
-	8.01,
-	9.13,
-	9.53,
-	10.64,
-	11.52,
-	12.92,
-	14.20,
-	16.08,
-	18.06,
-	20.41,
-	22.39,
-	24.26,
-	27.31,
-	29.75,
-	33.78,
-	36.82,
-	39.57,
-	42.38,
-	48.98,
-	54.78,
-	61.26,
-	67.58,
-	73.77,
-	66.52
-],
-[],
-[],
-[
-	16.98,
-	22.22,
-	28.43,
-	34.21,
-	40.16,
-	46.36,
-	51.48,
-	56.44,
-	61.15,
-	66.09,
-	74.66,
-	82.84,
-	90.64,
-	98.70,
-	107.74,
-	130.28,
-	151.50,
-	171.22,
-	189.82,
-	208.30,
-	220.92,
-	254.53,
-	283.62,
-	310.32,
-	329.62,
-	352.21,
-	323.77
-],
-[]
-],
-
-"baremoReexpedidion" : 10,
-
-"seguro" : 0.08,
-
-"descuento" : 0.2,
-
-"recargoCombustible" : 0.04
-}
-

+ 0 - 484
SquiLu-ourbiz/edit-entity-window.nut

@@ -1,484 +0,0 @@
-class EditEntityWindow extends EditWindow {
-
-  // Declaration of class members
-  db_entities_id = null;
-  db_entities_name_ro = null;
-  db_entities_mdate = null;
-  db_entities_cdate = null;
-  tabs = null;
-  tabMain = null;
-  db_entities_name = null;
-  db_entities_company = null;
-  db_entities_address = null;
-  db_entities_zip = null;
-  db_entities_city = null;
-  db_entities_state = null;
-  db_entities_country = null;
-  db_entities_tax_number = null;
-  db_entities_show_on_sales = null;
-  db_entities_show_on_buys = null;
-  db_entities_is_active = null;
-  db_entities_phone = null;
-  db_entities_fax = null;
-  db_entities_use_sales_tax2 = null;
-  db_entities_email = null;
-  db_entities_sales_tax_exempt = null;
-  db_entities_web = null;
-  db_entities_irpf_pct_retention = null;
-  db_entities_contact = null;
-  db_entities_gps_coordinates = null;
-  btnDbAction = null;
-  dbAction = null;
-  tabNotes = null;
-  db_entities_notes = null;
-  tabTags = null;
-  db_entities_tags = null;
-  tabGroups = null;
-  db_entities_group_id = null;
-  tabTotals = null;
-  db_entities_credit_allowed = null;
-  db_entities_balance = null;
-  db_entities_sales_quoted = null;
-  db_entities_sales_ordered = null;
-  db_entities_sales_delivered = null;
-  db_entities_sales_invoiced = null;
-  db_entities_sales_discount = null;
-  db_entities_sales_paid = null;
-  db_entities_buys_quoted = null;
-  db_entities_buys_ordered = null;
-  db_entities_buys_received = null;
-  db_entities_buys_invoiced = null;
-  db_entities_buys_paid = null;
-  db_entities_buys_discount = null;
-  tabChartStatistics = null;
-  tabHistory = null;
-  tabReports = null;
-  btnEntitesListContactReport = null;
-  print_progress = null;
-  
-  constructor(px=54, py=85, pw=800, ph=560, pl=_tr("Edit Entity")){
-    base.constructor(px, py, pw, ph, pl);
-    // Create member functions and widgets
-    {
-      local o = Fl_Output(5, 5, 96, 25);
-      db_entities_id = o;
-      o.textsize(16);
-      o.labelsize(16);
-      o.labeltype(FL_NO_LABEL);
-      add_input_field_to_map("entities", "id", db_entities_id);
-    }
-    {
-      local o = Fl_Output(110, 5, 545, 25);
-      db_entities_name_ro = o;
-      o.textsize(16);
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-    }
-    {
-      local o = Fl_Output(666, 5, 130, 25);
-      db_entities_mdate = o;
-      o.textsize(16);
-      o.labeltype(FL_NO_LABEL);
-      o.tooltip(_tr("This record last update date"));
-      o.labelsize(16);
-      add_input_field_to_map("entities", "mdate", db_entities_mdate);
-    }
-    {
-      local o = Fl_Output(665, 35, 130, 25);
-      db_entities_cdate = o;
-      o.textsize(16);
-      o.labeltype(FL_NO_LABEL);
-      o.tooltip(_tr("This record creation date"));
-      o.labelsize(16);
-      add_input_field_to_map("entities", "cdate", db_entities_cdate);
-    }
-    {
-      local o = Fl_Tabs(5, 35, 790, 521);
-      tabs = o;
-      o.labelcolor(7);
-      o.selection_color(4);
-      o.labelsize(16);
-      {
-        {
-          local o = Fl_Group(5, 62, 790, 494, _tr("Main"));
-          tabMain = o;
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Input(115, 70, 670, 25, _tr("Name"));
-              db_entities_name = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "name", db_entities_name);
-            }
-            {
-              local o = Fl_Input(115, 100, 670, 25, _tr("Company"));
-              db_entities_company = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "company", db_entities_company);
-            }
-            {
-              local o = Fl_Input(115, 130, 670, 25, _tr("Address"));
-              db_entities_address = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "address", db_entities_address);
-            }
-            {
-              local o = Fl_Input(115, 160, 95, 25, _tr("ZIP"));
-              db_entities_zip = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "zip", db_entities_zip);
-            }
-            {
-              local o = Fl_Input(311, 160, 474, 25, _tr("City"));
-              db_entities_city = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "city", db_entities_city);
-            }
-            {
-              local o = Fl_Input(115, 189, 390, 25, _tr("State"));
-              db_entities_state = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "state", db_entities_state);
-            }
-            {
-              local o = Fl_Input(585, 190, 200, 25, _tr("Country"));
-              db_entities_country = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "country", db_entities_country);
-            }
-            {
-              local o = Fl_Input(115, 220, 200, 25, _tr("Tax Num."));
-              db_entities_tax_number = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "tax_number", db_entities_tax_number);
-            }
-            {
-              local o = Fl_Check_Button(325, 220, 115, 25, _tr("Sales"));
-              db_entities_show_on_sales = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("entities", "show_on_sales", db_entities_show_on_sales);
-            }
-            {
-              local o = Fl_Check_Button(445, 220, 125, 25, _tr("Buys"));
-              db_entities_show_on_buys = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("entities", "show_on_buys", db_entities_show_on_buys);
-            }
-            {
-              local o = Fl_Check_Button(585, 220, 155, 25, _tr("Active"));
-              db_entities_is_active = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("entities", "is_active", db_entities_is_active);
-            }
-            {
-              local o = Fl_Input(115, 249, 200, 25, _tr("Phone"));
-              db_entities_phone = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "phone", db_entities_phone);
-            }
-            {
-              local o = Fl_Input(370, 249, 200, 25, _tr("Fax"));
-              db_entities_fax = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "fax", db_entities_fax);
-            }
-            {
-              local o = Fl_Check_Button(585, 250, 155, 25, _tr("Use Sales Tax II"));
-              db_entities_use_sales_tax2 = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("entities", "use_sales_tax2", db_entities_use_sales_tax2);
-            }
-            {
-              local o = Fl_Input(115, 280, 455, 25, _tr("Email"));
-              db_entities_email = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "email", db_entities_email);
-            }
-            {
-              local o = Fl_Check_Button(585, 280, 155, 25, _tr("Sales Tax Exempt"));
-              db_entities_sales_tax_exempt = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("entities", "sales_tax_exempt", db_entities_sales_tax_exempt);
-            }
-            {
-              local o = Fl_Input(115, 310, 455, 25, _tr("Web"));
-              db_entities_web = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "web", db_entities_web);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(585, 310, 60, 25, _tr("I.R.P.F. %"));
-              db_entities_irpf_pct_retention = o;
-              o.textsize(16);
-              o.align(8);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "irpf_pct_retention", db_entities_irpf_pct_retention);
-            }
-            {
-              local o = Fl_Input(115, 340, 455, 25, _tr("Contact"));
-              db_entities_contact = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "contact", db_entities_contact);
-            }
-            {
-              local o = Fl_Input(630, 340, 155, 25, _tr("GPS"));
-              db_entities_gps_coordinates = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "gps_coordinates", db_entities_gps_coordinates);
-            }
-            {
-              local o = Fl_Group(675, 394, 110, 151);
-              {
-                {
-                  local o = Fl_Box(675, 394, 110, 73, _tr("Spacer"));
-                  o.labeltype(FL_NO_LABEL);
-                  Fl_Group.current().resizable(o);
-                }
-                {
-                  local o = Fl_Button(675, 470, 110, 25, _tr("Action"));
-                  btnDbAction = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Choice_dbAction(675, 520, 110, 25, _tr("Action"));
-                  dbAction = o;
-                  o.textsize(16);
-                  o.align(1);
-                  o.down_box(FL_BORDER_BOX);
-                  o.labelsize(16);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Tabs(15, 375, 650, 181);
-              o.labelcolor(7);
-              o.selection_color(4);
-              o.labelsize(16);
-              {
-                {
-                  local o = Fl_Group(15, 405, 650, 150, _tr("Notes"));
-                  tabNotes = o;
-                  o.labelsize(16);
-                  {
-                    {
-                      local o = Fl_Text_Editor_Buffered(15, 405, 650, 150);
-                      db_entities_notes = o;
-                      o.textsize(16);
-                      o.align(5);
-                      o.labeltype(FL_NO_LABEL);
-                      o.labelsize(16);
-                      add_input_field_to_map("entities", "notes", db_entities_notes);
-                      Fl_Group.current().resizable(o);
-                    }
-                  }
-                  o.end();
-                }
-                {
-                  local o = Fl_Group(15, 405, 650, 150, _tr("Tags"));
-                  tabTags = o;
-                  o.labelsize(16);
-                  {
-                    {
-                      local o = Fl_Text_Editor_Buffered(15, 405, 650, 150);
-                      db_entities_tags = o;
-                      o.textsize(16);
-                      o.align(5);
-                      o.labeltype(FL_NO_LABEL);
-                      o.labelsize(16);
-                      add_input_field_to_map("entities", "tags", db_entities_tags);
-                      Fl_Group.current().resizable(o);
-                    }
-                  }
-                  o.end();
-                }
-                {
-                  local o = Fl_Group(15, 400, 650, 156, _tr("Groups"));
-                  tabGroups = o;
-                  {
-                    {
-                      local o = Flu_Tree_Browser(15, 405, 650, 150);
-                      db_entities_group_id = o;
-                      o.labelsize(16);
-                      add_input_field_to_map("entities", "group_id", db_entities_group_id);
-                    }
-                  }
-                  o.end();
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Check_Button(375, 380, 102, 25, _tr("Wrap lines"));
-              o.labelsize(16);
-              o.value(1);
-              o.down_box(FL_DOWN_BOX);
-            }
-          }
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Group(5, 62, 790, 493, _tr("Totals"));
-          tabTotals = o;
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Float_Input_Fmt(140, 75, 110, 25, _tr("Credit"));
-              db_entities_credit_allowed = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "credit_allowed", db_entities_credit_allowed);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 110, 110, 25, _tr("Balance"));
-              db_entities_balance = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "balance", db_entities_balance);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 155, 110, 25, _tr("Sales Quoted"));
-              db_entities_sales_quoted = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "sales_quoted", db_entities_sales_quoted);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 190, 110, 25, _tr("Sales Ordered"));
-              db_entities_sales_ordered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "sales_ordered", db_entities_sales_ordered);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 225, 110, 25, _tr("Sales Delivered"));
-              db_entities_sales_delivered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "sales_delivered", db_entities_sales_delivered);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 260, 110, 25, _tr("Sales Invoiced"));
-              db_entities_sales_invoiced = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "sales_invoiced", db_entities_sales_invoiced);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 295, 110, 25, _tr("Sales Discount"));
-              db_entities_sales_discount = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "sales_discount", db_entities_sales_discount);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(140, 330, 110, 25, _tr("Sales Paid"));
-              db_entities_sales_paid = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "sales_paid", db_entities_sales_paid);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(410, 155, 110, 25, _tr("Buys Quoted"));
-              db_entities_buys_quoted = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "buys_quoted", db_entities_buys_quoted);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(410, 190, 110, 25, _tr("Buys Ordered"));
-              db_entities_buys_ordered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "buys_ordered", db_entities_buys_ordered);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(410, 225, 110, 25, _tr("Buys Received"));
-              db_entities_buys_received = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "buys_received", db_entities_buys_received);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(410, 260, 110, 25, _tr("Buys Invoiced"));
-              db_entities_buys_invoiced = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "buys_invoiced", db_entities_buys_invoiced);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(410, 330, 110, 25, _tr("Buys Paid"));
-              db_entities_buys_paid = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "buys_paid", db_entities_buys_paid);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(410, 295, 110, 25, _tr("Buys Discount"));
-              db_entities_buys_discount = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("entities", "buys_discount", db_entities_buys_discount);
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 62, 790, 493, _tr("Statistics"));
-          tabChartStatistics = o;
-          o.labelsize(16);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 59, 790, 496, _tr("History"));
-          tabHistory = o;
-          o.labelsize(16);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 59, 790, 496, _tr("Reports"));
-          tabReports = o;
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Button(255, 100, 215, 25, _tr("Entities List Contact Report"));
-              btnEntitesListContactReport = o;
-            }
-            {
-              local o = Fl_Progress(255, 140, 215, 25, _tr("Printing Progress"));
-              print_progress = o;
-            }
-          }
-          o.end();
-        }
-      }
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-  }
-}

+ 0 - 1141
SquiLu-ourbiz/edit-order-window.nut

@@ -1,1141 +0,0 @@
-class EditOrderWindow extends EditWindow {
-  
-  // Declaration of class members
-  delivery_calc_window = null;
-  entities_list_window = null;
-  products_list_window = null;
-  calendar_window = null;
-  db_orders_mdate = null;
-  db_orders_order_type_id = null;
-  pack_line2 = null;
-  db_orders_series = null;
-  db_orders_order_number = null;
-  db_orders_entity_id = null;
-  db_orders_entity_name = null;
-  btnSearchEntity = null;
-  db_orders_entity_order_number = null;
-  tabs = null;
-  tabMain = null;
-  pack_line3 = null;
-  out_lines = null;
-  db_orders_weight_total = null;
-  btnCalcDelivery = null;
-  db_orders_payment_type_id = null;
-  btnSortLines = null;
-  db_orders_order_date = null;
-  btnShowCalendar = null;
-  grid_lines = null;
-  group_totals = null;
-  db_orders_discount_amt = null;
-  db_orders_subtotal_amt = null;
-  db_orders_sales_tax1_amt = null;
-  db_orders_sales_tax2_amt = null;
-  db_orders_irpf_amt = null;
-  db_orders_total_amt = null;
-  db_orders_cash = null;
-  cash_return = null;
-  btnPrint = null;
-  linesTab = null;
-  group_lines = null;
-  db_orders_lines_batch_order_line_quantity = null;
-  db_orders_lines_batch_order_line_id = null;
-  btnSearchBatchOrderLineId = null;
-  db_orders_lines_xref_order_line_quantity = null;
-  db_orders_lines_xref_order_line_id = null;
-  btnSearchXrefOrderLineId = null;
-  db_orders_lines_product_id = null;
-  db_orders_lines_description = null;
-  btnSearchProduct = null;
-  db_orders_lines_quantity = null;
-  db_orders_lines_price = null;
-  db_orders_lines_price_decimals = null;
-  db_orders_lines_weight = null;
-  db_orders_lines_first_total = null;
-  db_orders_lines_discount_pct = null;
-  db_orders_lines_discount_amt = null;
-  db_orders_lines_line_subtotal = null;
-  db_orders_lines_sales_tax2_pct = null;
-  db_orders_lines_sales_tax1_pct = null;
-  db_orders_lines_sales_tax1_amt = null;
-  btnSaveLine = null;
-  db_orders_lines_line_total = null;
-  tabLineNotes = null;
-  db_orders_lines_notes = null;
-  tabDues = null;
-  grid_dues = null;
-  due_id = null;
-  due_date = null;
-  btnShowCalendarDueDate = null;
-  due_pct = null;
-  due_amount = null;
-  btnDueSave = null;
-  tabPayments = null;
-  grid_payments = null;
-  payment_id = null;
-  payment_date = null;
-  btnShowCalendarPaymentDate = null;
-  payemnt_amount = null;
-  btnPaymentSave = null;
-  btnNumberOrder = null;
-  dbAction = null;
-  btnDbAction = null;
-  tabDelivery = null;
-  db_orders_entity_address = null;
-  db_orders_entity_zip = null;
-  db_orders_entity_city = null;
-  db_orders_entity_state = null;
-  db_orders_entity_country = null;
-  db_orders_entity_phone = null;
-  db_orders_entity_tax_number = null;
-  db_orders_order_valid_till_date = null;
-  btnShowCalendarValidTill = null;
-  db_orders_entity_use_sales_tax2 = null;
-  db_orders_entity_sales_tax_exempt = null;
-  db_orders_notes = null;
-  db_orders_irpf_pct_retention = null;
-  tabOptions = null;
-  opt_ask_for_printer = null;
-  opt_print_only_data = null;
-  opt_print_to_pdf = null;
-  opt_print_page_format = null;
-  btnOptPrint = null;
-  opt_email_program = null;
-  opt_email_program_command = null;
-  btnOptSendEmail = null;
-  opt_print_order_company_info = null;
-  opt_print_order_bottom_info = null;
-  tabChartStatistics = null;
-  tabHistory = null;
-  tabPrintPreview = null;
-  tabTotals = null;
-  totals_balance = null;
-  db_totals_overview_sales_quoted = null;
-  db_totals_overview_sales_ordered = null;
-  db_totals_overview_sales_delivered = null;
-  db_totals_overview_sales_invoiced = null;
-  db_totals_overview_sales_discount = null;
-  db_totals_overview_sales_tax1 = null;
-  db_totals_overview_sales_tax2 = null;
-  db_totals_overview_sales_paid = null;
-  btnRefreshTotals = null;
-  db_totals_overview_buys_quoted = null;
-  db_totals_overview_buys_ordered = null;
-  db_totals_overview_buys_received = null;
-  db_totals_overview_buys_invoiced = null;
-  db_totals_overview_buys_discount = null;
-  db_totals_overview_buys_tax1 = null;
-  db_totals_overview_buys_tax2 = null;
-  db_totals_overview_buys_paid = null;
-  
-  constructor(){
-    base.constructor(255, 97, 800, 560, _tr("Edit Order"));
-    // Create member functions and widgets
-    delivery_calc_window = 0;
-    entities_list_window = 0;
-    products_list_window = 0;
-    calendar_window = 0;
-    {
-      local o = Fl_Group(5, 1, 792, 62);
-      {
-        {
-          local o = Fl_Output(670, 5, 125, 25);
-          db_orders_mdate = o;
-          o.textsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.labelsize(16);
-          add_input_field_to_map("orders", "mdate", db_orders_mdate);
-        }
-        {
-          local o = Flu_Combo_List(5, 5, 655, 25);
-          db_orders_order_type_id = o;
-          o.labelfont(1);
-          o.labeltype(FL_NO_LABEL);
-          o.tooltip(_tr("Selection of the order type"));
-          o.box(FL_DOWN_BOX);
-          o.labelsize(16);
-          add_input_field_to_map("orders", "order_type_id", db_orders_order_type_id);
-        }
-        {
-          local o = Fl_Pack(5, 35, 790, 25);
-          pack_line2 = o;
-          o.type(1);
-          o.labelsize(16);
-          o->spacing(5);
-          o->with_label(1);
-          {
-            {
-              local o = Fl_Input(55, 35, 45, 25, _tr("Series"));
-              db_orders_series = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "series", db_orders_series);
-            }
-            {
-              local o = Fl_Int_Input(172, 35, 95, 25, _tr("Number"));
-              db_orders_order_number = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "order_number", db_orders_order_number);
-              o->use_numeric_format(0);
-            }
-            {
-              local o = Fl_Int_Input(319, 35, 95, 25, _tr("Entity"));
-              db_orders_entity_id = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_id", db_orders_entity_id);
-            }
-            {
-              local o = Fl_Input(420, 35, 335, 25);
-              db_orders_entity_name = o;
-              o.textsize(16);
-              o.labeltype(FL_NO_LABEL);
-              o.textfont(1);
-              o.labelsize(16);
-              o.tooltip(_tr("Type partal description to search on availlable entities"));
-              add_input_field_to_map("orders", "entity_name", db_orders_entity_name);
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Button(765, 35, 30, 25, _tr("@<->"));
-              btnSearchEntity = o;
-              o.labelcolor(22);
-              o.labelsize(18);
-              o.tooltip(_tr("Show entities search window"));
-            }
-          }
-          o.end();
-        }
-      }
-      o.end();
-    }
-    {
-      local o = Fl_Input(585, 65, 210, 25, _tr("Their Nº"));
-      db_orders_entity_order_number = o;
-      o.textsize(16);
-      o.labelsize(16);
-      add_input_field_to_map("orders", "entity_order_number", db_orders_entity_order_number);
-    }
-    {
-      local o = Fl_Tabs(5, 68, 790, 487);
-      tabs = o;
-      o.labelcolor(7);
-      o.labelsize(16);
-      o.selection_color(4);
-      {
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("Main"));
-          tabMain = o;
-          o.labelsize(16);
-          o.labelfont(2);
-          o.color(246);
-          {
-            {
-              local o = Fl_Pack(11, 105, 780, 25);
-              pack_line3 = o;
-              o.type(1);
-              o.labelsize(16);
-              o->spacing(5);
-              o->with_label(1);
-              {
-                {
-                  local o = Fl_Output(57, 105, 69, 25, _tr("Lines"));
-                  out_lines = o;
-                  o.textsize(16);
-                  o.labelsize(16);
-                  o->right_to_left(1);
-                }
-                {
-                  local o = Fl_Output(189, 105, 110, 25, _tr("Weight"));
-                  db_orders_weight_total = o;
-                  o.textsize(16);
-                  o.labelsize(16);
-                  o->right_to_left(1);
-                  o->decimal_places(-2);
-                  o->use_numeric_format(1);
-                }
-                {
-                  local o = Fl_Button(309, 105, 30, 25, _tr("@<->"));
-                  btnCalcDelivery = o;
-                  o.labelcolor(22);
-                  o.labelsize(18);
-                  o.tooltip(_tr("Show delivery calc window"));
-                }
-                {
-                  local o = Fl_Choice_Int(345, 105, 235, 25);
-                  db_orders_payment_type_id = o;
-                  o.textsize(16);
-                  o.labeltype(FL_NO_LABEL);
-                  o.textfont(1);
-                  o.labelsize(16);
-                  o.down_box(FL_BORDER_BOX);
-                  add_input_field_to_map("orders", "payment_type_id", db_orders_payment_type_id);
-                  Fl_Group.current().resizable(o);
-                }
-                {
-                  local o = Fl_Button(590, 105, 30, 25, _tr("@2"));
-                  btnSortLines = o;
-                  o.labelcolor(22);
-                  o.labelsize(18);
-                  o.tooltip(_tr("Sort lines by description"));
-                }
-                {
-                  local o = Fl_Input(629, 105, 120, 25);
-                  db_orders_order_date = o;
-                  o.textsize(16);
-                  o.labeltype(FL_NO_LABEL);
-                  o.textfont(1);
-                  o.labelsize(16);
-                  add_input_field_to_map("orders", "order_date", db_orders_order_date);
-                }
-                {
-                  local o = Fl_Button(760, 105, 30, 25, _tr("@<->"));
-                  btnShowCalendar = o;
-                  o.labelcolor(22);
-                  o.labelsize(18);
-                  o.tooltip(_tr("Show calendar"));
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Data_Table(10, 135, 780, 150);
-              grid_lines = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o.end();
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Group(10, 290, 781, 260);
-              {
-                {
-                  local o = Fl_Group(600, 291, 190, 259);
-                  group_totals = o;
-                  o.box(FL_UP_BOX);
-                  o.color(174);
-                  {
-                    {
-                      local o = Fl_Output(685, 297, 100, 25, _tr("Discount"));
-                      db_orders_discount_amt = o;
-                      o.textsize(16);
-                      o.labelsize(16);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                      add_input_field_to_map("orders", "discount_amt", db_orders_discount_amt);
-                    }
-                    {
-                      local o = Fl_Output(684, 326, 100, 25, _tr("Subtotal"));
-                      db_orders_subtotal_amt = o;
-                      o.textsize(16);
-                      o.labelsize(16);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                      add_input_field_to_map("orders", "subtotal_amt", db_orders_subtotal_amt);
-                    }
-                    {
-                      local o = Fl_Output(685, 356, 100, 25, _tr("V.A.T."));
-                      db_orders_sales_tax1_amt = o;
-                      o.textsize(16);
-                      o.labelsize(16);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                      add_input_field_to_map("orders", "sales_tax1_amt", db_orders_sales_tax1_amt);
-                    }
-                    {
-                      local o = Fl_Output(684, 386, 100, 25, _tr("R.E."));
-                      db_orders_sales_tax2_amt = o;
-                      o.textsize(16);
-                      o.labelsize(16);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                      add_input_field_to_map("orders", "sales_tax2_amt", db_orders_sales_tax2_amt);
-                    }
-                    {
-                      local o = Fl_Output(685, 416, 100, 25, _tr("I.R.P.F."));
-                      db_orders_irpf_amt = o;
-                      o.textsize(16);
-                      o.labelsize(16);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                      add_input_field_to_map("orders", "irpf_amt", db_orders_irpf_amt);
-                    }
-                    {
-                      local o = Fl_Output(610, 453, 174, 33, _tr("Total"));
-                      db_orders_total_amt = o;
-                      o.textsize(30);
-                      o.align(5);
-                      o.textfont(1);
-                      o.color(119);
-                      o.labelfont(1);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                      add_input_field_to_map("orders", "total_amt", db_orders_total_amt);
-                    }
-                    {
-                      local o = Fl_Float_Input_Fmt(685, 490, 100, 25, _tr("Cash"));
-                      db_orders_cash = o;
-                      o.textsize(16);
-                      o.labelfont(1);
-                      o.labelsize(16);
-                      o.textfont(1);
-                      add_input_field_to_map("orders", "cash", db_orders_cash);
-                    }
-                    {
-                      local o = Fl_Output(685, 520, 100, 25, _tr("Return"));
-                      cash_return = o;
-                      o.textsize(16);
-                      o.labelfont(1);
-                      o.textfont(1);
-                      o.labelsize(16);
-                      o->right_to_left(1);
-                      o->use_numeric_format(1);
-                    }
-                  }
-                  o.end();
-                }
-                {
-                  local o = My_Fl_Return_Button(485, 525, 100, 25, _tr("Print"));
-                  btnPrint = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Tabs(10, 290, 585, 230);
-                  linesTab = o;
-                  o.labelcolor(7);
-                  o.labelfont(2);
-                  o.selection_color(4);
-                  o.labelsize(16);
-                  {
-                    {
-                      local o = Fl_Group(10, 321, 585, 199, _tr("Line Edit"));
-                      group_lines = o;
-                      o.labelsize(16);
-                      o.color(166);
-                      o.labelfont(2);
-                      o.box(FL_UP_BOX);
-                      {
-                        {
-                          local o = Fl_Output(265, 330, 110, 25, _tr("Batch Qty."));
-                          db_orders_lines_batch_order_line_quantity = o;
-                          o.textsize(16);
-                          o.labelsize(16);
-                          o->right_to_left(1);
-                          add_input_field_to_map("orders_lines", "batch_order_line_quantity", db_orders_lines_batch_order_line_quantity);
-                        }
-                        {
-                          local o = Fl_Int_Input(435, 329, 110, 25, _tr("Batch #"));
-                          db_orders_lines_batch_order_line_id = o;
-                          o.textsize(16);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "batch_order_line_id", db_orders_lines_batch_order_line_id);
-                        }
-                        {
-                          local o = Fl_Button(555, 329, 30, 25, _tr("@<->"));
-                          btnSearchBatchOrderLineId = o;
-                          o.labelcolor(22);
-                          o.labelsize(18);
-                          o.tooltip(_tr("Show products search window"));
-                        }
-                        {
-                          local o = Fl_Output(265, 360, 110, 25, _tr("XRef. Qty."));
-                          db_orders_lines_xref_order_line_quantity = o;
-                          o.textsize(16);
-                          o.labelsize(16);
-                          o->right_to_left(1);
-                          add_input_field_to_map("orders_lines", "xref_order_line_quantity", db_orders_lines_xref_order_line_quantity);
-                        }
-                        {
-                          local o = Fl_Int_Input(435, 359, 110, 25, _tr("XRef #"));
-                          db_orders_lines_xref_order_line_id = o;
-                          o.textsize(16);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "xref_order_line_id", db_orders_lines_xref_order_line_id);
-                        }
-                        {
-                          local o = Fl_Button(555, 359, 30, 25, _tr("@<->"));
-                          btnSearchXrefOrderLineId = o;
-                          o.labelcolor(22);
-                          o.labelsize(18);
-                          o.tooltip(_tr("Show products search window"));
-                        }
-                        {
-                          local o = Fl_Int_Input(21, 387, 70, 25, _tr("Code"));
-                          db_orders_lines_product_id = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "product_id", db_orders_lines_product_id);
-                        }
-                        {
-                          local o = Fl_Input(101, 387, 444, 25, _tr("Description"));
-                          db_orders_lines_description = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.tooltip(_tr("Type partal description to search on availlable products"));
-                          o.labelsize(16);
-                          o.textfont(1);
-                          add_input_field_to_map("orders_lines", "description", db_orders_lines_description);
-                        }
-                        {
-                          local o = Fl_Button(555, 387, 30, 25, _tr("@<->"));
-                          btnSearchProduct = o;
-                          o.labelcolor(22);
-                          o.labelsize(18);
-                          o.tooltip(_tr("Show products search window"));
-                        }
-                        {
-                          local o = My_Fl_Float_Input(21, 435, 84, 25, _tr("Quantity"));
-                          db_orders_lines_quantity = o;
-                          o.labelfont(1);
-                          o.textfont(1);
-                          o.textsize(16);
-                          o.labelsize(16);
-                          o.align(5);
-                          o->decimal_places(-6);
-                          add_input_field_to_map("orders_lines", "quantity", db_orders_lines_quantity);
-                        }
-                        {
-                          local o = My_Fl_Float_Input(115, 435, 108, 25, _tr("Price"));
-                          db_orders_lines_price = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.textfont(1);
-                          o.labelsize(16);
-                          o.labelfont(1);
-                          add_input_field_to_map("orders_lines", "price", db_orders_lines_price);
-                        }
-                        {
-                          local o = Fl_Int_Input(230, 435, 20, 25, _tr("(.)"));
-                          db_orders_lines_price_decimals = o;
-                          o.textsize(16);
-                          o.align(1);
-                          o.tooltip(_tr("Number of decimals to use on calculations"));
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "price_decimals", db_orders_lines_price_decimals);
-                        }
-                        {
-                          local o = My_Fl_Float_Input(255, 435, 70, 25, _tr("Weight"));
-                          db_orders_lines_weight = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          o->decimal_places(-6);
-                          add_input_field_to_map("orders_lines", "weight", db_orders_lines_weight);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(330, 435, 100, 25, _tr("1st total"));
-                          db_orders_lines_first_total = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "first_total", db_orders_lines_first_total);
-                        }
-                        {
-                          local o = My_Fl_Float_Input(435, 435, 60, 25, _tr("Disc. %"));
-                          db_orders_lines_discount_pct = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "discount_pct", db_orders_lines_discount_pct);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(505, 435, 80, 25, _tr("Disc. $"));
-                          db_orders_lines_discount_amt = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "discount_amt", db_orders_lines_discount_amt);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(21, 485, 108, 25, _tr("Subtotal"));
-                          db_orders_lines_line_subtotal = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "line_subtotal", db_orders_lines_line_subtotal);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(139, 485, 64, 25, _tr("R.E. %"));
-                          db_orders_lines_sales_tax2_pct = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "sales_tax2_pct", db_orders_lines_sales_tax2_pct);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(213, 485, 64, 25, _tr("V.A.T. %"));
-                          db_orders_lines_sales_tax1_pct = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "sales_tax1_pct", db_orders_lines_sales_tax1_pct);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(287, 485, 87, 25, _tr("V.A.T. $"));
-                          db_orders_lines_sales_tax1_amt = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "sales_tax1_amt", db_orders_lines_sales_tax1_amt);
-                        }
-                        {
-                          local o = My_Fl_Return_Button(384, 485, 83, 25, _tr("Save"));
-                          btnSaveLine = o;
-                          o.labelfont(1);
-                          o.labelsize(16);
-                          o.tooltip(_tr("Save the line currently edited"));
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(477, 485, 108, 25, _tr("Total"));
-                          db_orders_lines_line_total = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.textfont(1);
-                          o.labelsize(16);
-                          o.labelfont(1);
-                          add_input_field_to_map("orders_lines", "line_total", db_orders_lines_line_total);
-                        }
-                      }
-                      o.end();
-                    }
-                    {
-                      local o = Fl_Group(10, 320, 585, 200, _tr("Line Notes"));
-                      tabLineNotes = o;
-                      o.labelfont(2);
-                      o.labelsize(16);
-                      {
-                        {
-                          local o = Fl_Multiline_Input(80, 330, 505, 180, _tr("Notes"));
-                          db_orders_lines_notes = o;
-                          o.textsize(16);
-                          o.tooltip(_tr("Type partal description to search on availlable products"));
-                          o.labelsize(16);
-                          add_input_field_to_map("orders_lines", "notes", db_orders_lines_notes);
-                        }
-                      }
-                      o.end();
-                    }
-                    {
-                      local o = Fl_Group(10, 320, 585, 200, _tr("Dues"));
-                      tabDues = o;
-                      o.labelfont(2);
-                      o.labelsize(16);
-                      {
-                        {
-                          local o = Fl_Data_Table(15, 330, 575, 130);
-                          grid_dues = o;
-                          o.labelsize(16);
-                          o.textsize(16);
-                          o.end();
-                        }
-                        {
-                          local o = Fl_Output(15, 485, 80, 25, _tr("ID"));
-                          due_id = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.labelsize(16);
-                          o->right_to_left(1);
-                        }
-                        {
-                          local o = Fl_Input(100, 485, 125, 25, _tr("Due"));
-                          due_date = o;
-                          o.textsize(16);
-                          o.textfont(1);
-                          o.labelsize(16);
-                          o.align(5);
-                        }
-                        {
-                          local o = Fl_Button(230, 485, 30, 25, _tr("@<->"));
-                          btnShowCalendarDueDate = o;
-                          o.labelcolor(22);
-                          o.labelsize(18);
-                          o.tooltip(_tr("Show calendar"));
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(270, 485, 80, 25, _tr("Pct. %"));
-                          due_pct = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.textfont(1);
-                          o.labelsize(16);
-                          o.labelfont(1);
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(355, 485, 120, 25, _tr("Amount"));
-                          due_amount = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.textfont(1);
-                          o.labelsize(16);
-                          o.labelfont(1);
-                        }
-                        {
-                          local o = My_Fl_Return_Button(485, 485, 100, 25, _tr("Save"));
-                          btnDueSave = o;
-                          o.labelsize(16);
-                        }
-                      }
-                      o.end();
-                    }
-                    {
-                      local o = Fl_Group(10, 320, 585, 200, _tr("Payments"));
-                      tabPayments = o;
-                      o.labelfont(2);
-                      o.labelsize(16);
-                      {
-                        {
-                          local o = Fl_Data_Table(15, 330, 575, 130);
-                          grid_payments = o;
-                          o.textsize(16);
-                          o.labelsize(16);
-                          o.end();
-                        }
-                        {
-                          local o = Fl_Output(15, 485, 80, 25, _tr("ID"));
-                          payment_id = o;
-                          o.textsize(16);
-                          o.labelsize(16);
-                          o.align(5);
-                          o->right_to_left(1);
-                        }
-                        {
-                          local o = Fl_Input(100, 485, 125, 25, _tr("Date"));
-                          payment_date = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.textfont(1);
-                          o.labelsize(16);
-                        }
-                        {
-                          local o = Fl_Button(230, 485, 30, 25, _tr("@<->"));
-                          btnShowCalendarPaymentDate = o;
-                          o.labelcolor(22);
-                          o.labelsize(18);
-                          o.tooltip(_tr("Show calendar"));
-                        }
-                        {
-                          local o = Fl_Float_Input_Fmt(270, 485, 120, 25, _tr("Amount"));
-                          payemnt_amount = o;
-                          o.textsize(16);
-                          o.align(5);
-                          o.textfont(1);
-                          o.labelsize(16);
-                          o.labelfont(1);
-                        }
-                        {
-                          local o = My_Fl_Return_Button(395, 485, 100, 25, _tr("Save"));
-                          btnPaymentSave = o;
-                          o.labelsize(16);
-                        }
-                      }
-                      o.end();
-                    }
-                  }
-                  o.end();
-                }
-              }
-              o.end();
-            }
-            {
-              local o = My_Fl_Return_Button(230, 525, 82, 25, _tr("Number"));
-              btnNumberOrder = o;
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Choice_dbAction(9, 525, 119, 25);
-              dbAction = o;
-	      o->label(_tr("Action"));
-              o.textsize(16);
-              o.down_box(FL_BORDER_BOX);
-              o.labelsize(16);
-            }
-            {
-              local o = My_Fl_Return_Button(138, 525, 82, 25, _tr("Action"));
-              btnDbAction = o;
-              o.labelfont(1);
-              o.tooltip(_tr("Perform the selected action on this order"));
-              o.labelsize(16);
-            }
-          }
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("Delivery"));
-          tabDelivery = o;
-          o.labelfont(2);
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Input(91, 105, 694, 25, _tr("Address"));
-              db_orders_entity_address = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_address", db_orders_entity_address);
-            }
-            {
-              local o = Fl_Input(91, 135, 95, 25, _tr("ZIP"));
-              db_orders_entity_zip = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_zip", db_orders_entity_zip);
-            }
-            {
-              local o = Fl_Input(288, 135, 497, 25, _tr("City"));
-              db_orders_entity_city = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_city", db_orders_entity_city);
-            }
-            {
-              local o = Fl_Input(91, 165, 407, 25, _tr("State"));
-              db_orders_entity_state = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_state", db_orders_entity_state);
-            }
-            {
-              local o = Fl_Input(585, 165, 201, 25, _tr("Country"));
-              db_orders_entity_country = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_country", db_orders_entity_country);
-            }
-            {
-              local o = Fl_Input(91, 195, 201, 25, _tr("Phone"));
-              db_orders_entity_phone = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_phone", db_orders_entity_phone);
-            }
-            {
-              local o = Fl_Input(585, 195, 200, 25, _tr("Tax Num."));
-              db_orders_entity_tax_number = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_tax_number", db_orders_entity_tax_number);
-            }
-            {
-              local o = Fl_Input(90, 225, 121, 25, _tr("Valid till"));
-              db_orders_order_valid_till_date = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "order_valid_till_date", db_orders_order_valid_till_date);
-            }
-            {
-              local o = Fl_Button(221, 225, 30, 25, _tr("@<->"));
-              btnShowCalendarValidTill = o;
-              o.labelcolor(22);
-              o.labelsize(18);
-              o.tooltip(_tr("Show calendar"));
-            }
-            {
-              local o = Fl_Check_Button(585, 225, 155, 25, _tr("Use Sales Tax II"));
-              db_orders_entity_use_sales_tax2 = o;
-              o.down_box(FL_DOWN_BOX);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_use_sales_tax2", db_orders_entity_use_sales_tax2);
-            }
-            {
-              local o = Fl_Check_Button(585, 255, 155, 25, _tr("Sales Tax Exempt"));
-              db_orders_entity_sales_tax_exempt = o;
-              o.down_box(FL_DOWN_BOX);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "entity_sales_tax_exempt", db_orders_entity_sales_tax_exempt);
-            }
-            {
-              local o = Fl_Text_Editor_Buffered(15, 395, 770, 150, _tr("Notes"));
-              db_orders_notes = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-              #include <FL/Fl_Text_Editor.H>
-              add_input_field_to_map("orders", "notes", db_orders_notes);
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Check_Button(125, 375, 125, 25, _tr("Wrap lines"));
-              o.labelsize(16);
-              o.value(1);
-              o.down_box(FL_DOWN_BOX);
-              o.callback(function(sender, udata){
-                db_orders_notes->wrap_mode(o->value(), 0);
-              });
-            }
-            {
-              local o = Fl_Float_Input_Fmt(585, 285, 70, 25, _tr("I.R.P.F. %"));
-              db_orders_irpf_pct_retention = o;
-              o.textsize(16);
-              o.align(8);
-              o.labelsize(16);
-              add_input_field_to_map("orders", "irpf_pct_retention", db_orders_irpf_pct_retention);
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("Options"));
-          tabOptions = o;
-          o.labelfont(2);
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Check_Button(20, 115, 155, 25, _tr("Ask for printer"));
-              opt_ask_for_printer = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-            }
-            {
-              local o = Fl_Check_Button(20, 150, 155, 25, _tr("Print only data"));
-              opt_print_only_data = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-            }
-            {
-              local o = Fl_Check_Button(20, 180, 155, 25, _tr("Print to PDF"));
-              opt_print_to_pdf = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-            }
-            {
-              local o = Fl_Choice_Str(20, 215, 130, 25);
-              opt_print_page_format = o;
-              o.textsize(16);
-              o.labeltype(FL_NO_LABEL);
-              o.down_box(FL_BORDER_BOX);
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Button(20, 250, 130, 25, _tr("Print"));
-              btnOptPrint = o;
-              o.labelsize(16);
-              o.tooltip(_tr("Print the current order"));
-            }
-            {
-              local o = Fl_Input(260, 145, 520, 25, _tr("Email program"));
-              opt_email_program = o;
-              o.textsize(16);
-              o.align(5);
-              o.tooltip(_tr("Type partal description to search on availlable entities"));
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Input(260, 210, 520, 25, _tr("Email program parameters"));
-              opt_email_program_command = o;
-              o.textsize(16);
-              o.align(5);
-              o.tooltip(_tr("Type partal description to search on availlable entities"));
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Button(260, 250, 130, 25, _tr("Send as email"));
-              btnOptSendEmail = o;
-              o.labelsize(16);
-              o.tooltip(_tr("Print the current order"));
-            }
-            {
-              local o = Fl_Text_Editor_Buffered(20, 350, 375, 200, _tr("Company Info"));
-              opt_print_order_company_info = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-              #include <FL/Fl_Text_Editor.H>
-            }
-            {
-              local o = Fl_Check_Button(200, 330, 125, 25, _tr("Wrap lines"));
-              o.labelsize(16);
-              o.value(1);
-              o.down_box(FL_DOWN_BOX);
-              o.callback(function(sender, udata){
-                opt_print_order_company_info->wrap_mode(o->value(), 0);
-              });
-            }
-            {
-              local o = Fl_Text_Editor_Buffered(405, 350, 375, 200, _tr("Company Info"));
-              opt_print_order_bottom_info = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-              #include <FL/Fl_Text_Editor.H>
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Check_Button(590, 330, 125, 25, _tr("Wrap lines"));
-              o.labelsize(16);
-              o.value(1);
-              o.down_box(FL_DOWN_BOX);
-              o.callback(function(sender, udata){
-                opt_print_order_bottom_info->wrap_mode(o->value(), 0);
-              });
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("Statistics"));
-          tabChartStatistics = o;
-          o.labelsize(16);
-          o.labelfont(2);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("History"));
-          tabHistory = o;
-          o.labelsize(16);
-          o.labelfont(2);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("Preview"));
-          tabPrintPreview = o;
-          o.labelsize(16);
-          o.labelfont(2);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 95, 790, 460, _tr("Totals"));
-          tabTotals = o;
-          o.labelfont(2);
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Float_Input_Fmt(145, 155, 110, 25, _tr("Balance"));
-              totals_balance = o;
-              o.textsize(16);
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 200, 110, 25, _tr("Sales Quoted"));
-              db_totals_overview_sales_quoted = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_quoted", db_totals_overview_sales_quoted);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 235, 110, 25, _tr("Sales Ordered"));
-              db_totals_overview_sales_ordered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_ordered", db_totals_overview_sales_ordered);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 270, 110, 25, _tr("Sales Delivered"));
-              db_totals_overview_sales_delivered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_delivered", db_totals_overview_sales_delivered);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 305, 110, 25, _tr("Sales Invoiced"));
-              db_totals_overview_sales_invoiced = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_invoiced", db_totals_overview_sales_invoiced);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 340, 110, 25, _tr("Sales Discount"));
-              db_totals_overview_sales_discount = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_discount", db_totals_overview_sales_discount);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 375, 110, 25, _tr("Sales Tax1"));
-              db_totals_overview_sales_tax1 = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_tax1", db_totals_overview_sales_tax1);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 410, 110, 25, _tr("Sales Tax2"));
-              db_totals_overview_sales_tax2 = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_tax2", db_totals_overview_sales_tax2);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(145, 445, 110, 25, _tr("Sales Paid"));
-              db_totals_overview_sales_paid = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "sales_paid", db_totals_overview_sales_paid);
-            }
-            {
-              local o = My_Fl_Return_Button(415, 155, 110, 25, _tr("Refresh"));
-              btnRefreshTotals = o;
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 200, 110, 25, _tr("Buys Quoted"));
-              db_totals_overview_buys_quoted = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_quoted", db_totals_overview_buys_quoted);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 235, 110, 25, _tr("Buys Ordered"));
-              db_totals_overview_buys_ordered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_ordered", db_totals_overview_buys_ordered);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 270, 110, 25, _tr("Buys Received"));
-              db_totals_overview_buys_received = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_received", db_totals_overview_buys_received);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 305, 110, 25, _tr("Buys Invoiced"));
-              db_totals_overview_buys_invoiced = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_invoiced", db_totals_overview_buys_invoiced);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 340, 110, 25, _tr("Buys Discount"));
-              db_totals_overview_buys_discount = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_discount", db_totals_overview_buys_discount);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 375, 110, 25, _tr("Buys Tax1"));
-              db_totals_overview_buys_tax1 = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_tax1", db_totals_overview_buys_tax1);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 410, 110, 25, _tr("Buys Tax2"));
-              db_totals_overview_buys_tax2 = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_tax2", db_totals_overview_buys_tax2);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(415, 445, 110, 25, _tr("Buys Paid"));
-              db_totals_overview_buys_paid = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("totals_overview", "buys_paid", db_totals_overview_buys_paid);
-            }
-          }
-          o.end();
-        }
-      }
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-    db_orders_order_type_id->textfont(db_orders_order_type_id->labelfont());
-    db_orders_order_type_id->textsize(db_orders_order_type_id->labelsize());
-  }
-}

+ 0 - 737
SquiLu-ourbiz/edit-product-window.nut

@@ -1,737 +0,0 @@
-class EditProductWindow extends EditWindow {
-
-  // Declaration of class members
-  db_products_id = null;
-  db_products_description_ro = null;
-  db_products_mdate = null;
-  db_products_cdate = null;
-  tabs = null;
-  tabMain = null;
-  db_products_reference_code = null;
-  db_products_supplier_code = null;
-  db_products_bar_code = null;
-  db_products_sell_description = null;
-  db_products_buy_description = null;
-  db_products_sell_price = null;
-  db_products_measure_unit_id = null;
-  db_products_sales_tax_id = null;
-  db_products_warranty_id = null;
-  db_products_sell_quantity_min = null;
-  db_products_units_by_package = null;
-  db_products_weight = null;
-  db_products_sell_without_stock = null;
-  db_products_is_active = null;
-  db_products_show_on_sales = null;
-  db_products_show_on_buys = null;
-  db_products_show_on_web = null;
-  db_products_show_price_on_web = null;
-  dbAction = null;
-  btnDbAction = null;
-  tabsMoreData = null;
-  tabNotes = null;
-  db_products_sell_notes = null;
-  tabNotesSupplier = null;
-  db_products_buy_notes = null;
-  tabTags = null;
-  db_products_tags = null;
-  tabGroups = null;
-  db_products_group_id = null;
-  btnImage = null;
-  db_products_quantity_onhand = null;
-  tabPrices = null;
-  db_products_buy_price = null;
-  db_products_buy_discount = null;
-  db_products_buy_other_costs = null;
-  db_products_sell_markup = null;
-  markup_to_discount = null;
-  db_products_sell_price_ro = null;
-  db_products_price_decimals = null;
-  btnSaveProrduct = null;
-  db_products_stock_min = null;
-  db_products_stock_max = null;
-  db_products_buy_quantity_min = null;
-  db_products_price_formula = null;
-  db_products_price_date = null;
-  productPrices = null;
-  tabKit = null;
-  tabChartStatistics = null;
-  tabHistory = null;
-  tabReports = null;
-  grpExportImport = null;
-  btnProductsExport = null;
-  btnProductsImport = null;
-  chkWithoutPrices = null;
-  chkWebOnly = null;
-  boxExportImportCount = null;
-  btnProductGroupsExport = null;
-  btnProductGroupsImport = null;
-  btnUpdateWeb = null;
-  grpPrintPriceList = null;
-  chkPriceListWithVAT = null;
-  chkPriceListSellOnWeb = null;
-  btnPrintPriceList = null;
-  chkPriceListSellSales = null;
-  chkPriceListSellPDF = null;
-  tabTotals = null;
-  db_products_quantity_quoted_sales = null;
-  db_products_quantity_ordered_sales = null;
-  db_products_quantity_delivered = null;
-  db_products_quantity_invoiced_sales = null;
-  db_products_quantity_lost = null;
-  db_products_quantity_quoted_buys = null;
-  db_products_quantity_ordered_buys = null;
-  db_products_quantity_received = null;
-  db_products_quantity_invoiced_buys = null;
-  
-  constructor(px=34, py=28, pw=800, ph=560, pl=_tr("Edit Products")){
-    base.constructor(px, py, pw, ph, pl);
-    // Create member functions and widgets
-    {
-      local o = Fl_Output(5, 5, 96, 25);
-      db_products_id = o;
-      o.textsize(16);
-      o.labelsize(16);
-      o.labeltype(FL_NO_LABEL);
-      add_input_field_to_map("products", "id", db_products_id);
-    }
-    {
-      local o = Fl_Output(110, 5, 545, 25);
-      db_products_description_ro = o;
-      o.textsize(16);
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-    }
-    {
-      local o = Fl_Output(666, 5, 130, 25);
-      db_products_mdate = o;
-      o.textsize(16);
-      o.labelsize(16);
-      o.labeltype(FL_NO_LABEL);
-      add_input_field_to_map("products", "mdate", db_products_mdate);
-    }
-    {
-      local o = Fl_Output(665, 35, 130, 25);
-      db_products_cdate = o;
-      o.textsize(16);
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-      add_input_field_to_map("products", "cdate", db_products_cdate);
-    }
-    {
-      local o = Fl_Tabs(5, 35, 790, 520);
-      tabs = o;
-      o.labelcolor(7);
-      o.selection_color(4);
-      o.labelsize(16);
-      {
-        {
-          local o = Fl_Group(5, 60, 790, 495, _tr("Main"));
-          tabMain = o;
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Input(115, 70, 165, 25, _tr("Reference"));
-              db_products_reference_code = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("products", "reference_code", db_products_reference_code);
-            }
-            {
-              local o = Fl_Input(380, 70, 165, 25, _tr("Ref. Supp."));
-              db_products_supplier_code = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("products", "supplier_code", db_products_supplier_code);
-            }
-            {
-              local o = Fl_Input(620, 70, 165, 25, _tr("Barcode"));
-              db_products_bar_code = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("products", "bar_code", db_products_bar_code);
-            }
-            {
-              local o = Fl_Input(115, 100, 670, 25, _tr("Description"));
-              db_products_sell_description = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("products", "sell_description", db_products_sell_description);
-            }
-            {
-              local o = Fl_Input(115, 130, 670, 25, _tr("Desc. Supp."));
-              db_products_buy_description = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("products", "buy_description", db_products_buy_description);
-            }
-            {
-              local o = Fl_Float_Input_Fmt(115, 160, 110, 25, _tr("Sales Price"));
-              db_products_sell_price = o;
-              o.textsize(16);
-              o.labelsize(16);
-              add_input_field_to_map("products", "sell_price", db_products_sell_price);
-            }
-            {
-              local o = Fl_Choice_Int(370, 160, 110, 25, _tr("Measure Unit"));
-              db_products_measure_unit_id = o;
-              o.textsize(16);
-              o.down_box(FL_BORDER_BOX);
-              o.labelsize(16);
-              add_input_field_to_map("products", "measure_unit_id", db_products_measure_unit_id);
-            }
-            {
-              local o = Fl_Choice_Int(115, 190, 110, 25, _tr("V.A.T."));
-              db_products_sales_tax_id = o;
-              o.textsize(16);
-              o.down_box(FL_BORDER_BOX);
-              o.labelsize(16);
-              add_input_field_to_map("products", "sales_tax_id", db_products_sales_tax_id);
-            }
-            {
-              local o = Fl_Choice_Int(370, 190, 110, 25, _tr("Warranty"));
-              db_products_warranty_id = o;
-              o.textsize(16);
-              o.down_box(FL_BORDER_BOX);
-              o.labelsize(16);
-              add_input_field_to_map("products", "warranty_id", db_products_warranty_id);
-            }
-            {
-              local o = Fl_Float_Input(370, 250, 110, 25, _tr("Sell Min. Qty."));
-              db_products_sell_quantity_min = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "sell_quantity_min", db_products_sell_quantity_min);
-            }
-            {
-              local o = Fl_Float_Input(370, 280, 110, 25, _tr("Units by Pack."));
-              db_products_units_by_package = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "units_by_package", db_products_units_by_package);
-            }
-            {
-              local o = Fl_Float_Input(370, 220, 110, 25, _tr("Weight"));
-              db_products_weight = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "weight", db_products_weight);
-            }
-            {
-              local o = Fl_Check_Button(10, 250, 215, 25, _tr("Sell without stock"));
-              db_products_sell_without_stock = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("products", "sell_without_stock", db_products_sell_without_stock);
-            }
-            {
-              local o = Fl_Check_Button(10, 280, 110, 25, _tr("Active"));
-              db_products_is_active = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("products", "is_active", db_products_is_active);
-            }
-            {
-              local o = Fl_Check_Button(10, 310, 105, 25, _tr("Sales"));
-              db_products_show_on_sales = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("products", "show_on_sales", db_products_show_on_sales);
-            }
-            {
-              local o = Fl_Check_Button(10, 340, 95, 25, _tr("Buys"));
-              db_products_show_on_buys = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("products", "show_on_buys", db_products_show_on_buys);
-            }
-            {
-              local o = Fl_Check_Button(115, 310, 120, 25, _tr("Web"));
-              db_products_show_on_web = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("products", "show_on_web", db_products_show_on_web);
-            }
-            {
-              local o = Fl_Check_Button(115, 340, 100, 25, _tr("Web price"));
-              db_products_show_price_on_web = o;
-              o.labelsize(16);
-              o.down_box(FL_DOWN_BOX);
-              add_input_field_to_map("products", "show_price_on_web", db_products_show_price_on_web);
-            }
-            {
-              local o = Fl_Group(675, 402, 110, 143);
-              {
-                {
-                  local o = Fl_Box(675, 402, 110, 68, _tr("Spacer"));
-                  o.labeltype(FL_NO_LABEL);
-                  Fl_Group.current().resizable(o);
-                }
-                {
-                  local o = Fl_Choice_dbAction(675, 520, 110, 25, _tr("Action"));
-                  dbAction = o;
-                  o.textsize(16);
-                  o.align(1);
-                  o.down_box(FL_BORDER_BOX);
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Button(675, 470, 110, 25, _tr("Action"));
-                  btnDbAction = o;
-                  o.labelsize(16);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Tabs(10, 370, 650, 181);
-              tabsMoreData = o;
-              o.labelcolor(7);
-              o.labelsize(16);
-              o.selection_color(4);
-              {
-                {
-                  local o = Fl_Group(10, 400, 650, 150, _tr("Notes"));
-                  tabNotes = o;
-                  o.labelsize(16);
-                  {
-                    {
-                      local o = Fl_Text_Editor_Buffered(10, 400, 650, 150);
-                      db_products_sell_notes = o;
-                      o.textsize(16);
-                      o.align(5);
-                      o.labeltype(FL_NO_LABEL);
-                      o.labelsize(16);
-                      add_input_field_to_map("products", "sell_notes", db_products_sell_notes);
-                      Fl_Group.current().resizable(o);
-                    }
-                  }
-                  o.end();
-                }
-                {
-                  local o = Fl_Group(10, 400, 650, 150, _tr("Notes Supplier"));
-                  tabNotesSupplier = o;
-                  o.labelsize(16);
-                  {
-                    {
-                      local o = Fl_Text_Editor_Buffered(10, 400, 650, 150);
-                      db_products_buy_notes = o;
-                      o.textsize(16);
-                      o.align(5);
-                      o.labeltype(FL_NO_LABEL);
-                      o.labelsize(16);
-                      add_input_field_to_map("products", "buy_notes", db_products_buy_notes);
-                      Fl_Group.current().resizable(o);
-                    }
-                  }
-                  o.end();
-                }
-                {
-                  local o = Fl_Group(10, 400, 650, 150, _tr("Tags"));
-                  tabTags = o;
-                  o.labelsize(16);
-                  {
-                    {
-                      local o = Fl_Text_Editor_Buffered(10, 400, 650, 150);
-                      db_products_tags = o;
-                      o.textsize(16);
-                      o.align(5);
-                      o.labeltype(FL_NO_LABEL);
-                      o.labelsize(16);
-                      add_input_field_to_map("products", "tags", db_products_tags);
-                      Fl_Group.current().resizable(o);
-                    }
-                  }
-                  o.end();
-                }
-                {
-                  local o = Fl_Group(10, 395, 650, 156, _tr("Groups"));
-                  tabGroups = o;
-                  {
-                    {
-                      local o = Flu_Tree_Browser(10, 400, 650, 150);
-                      db_products_group_id = o;
-                      o.labelsize(16);
-                      add_input_field_to_map("products", "group_id", db_products_group_id);
-                    }
-                  }
-                  o.end();
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Image_Box(485, 158, 300, 232);
-              btnImage = o;
-              o.box(FL_ENGRAVED_BOX);
-              o.align(80);
-              o.color(7);
-            }
-            {
-              local o = Fl_Check_Button(370, 375, 102, 25, _tr("Wrap lines"));
-              o.labelsize(16);
-              o.value(1);
-              o.down_box(FL_DOWN_BOX);
-              o.callback(function(sender, udata){
-                db_products_sell_notes->wrap_mode(o->value(), 0);
-                db_products_buy_notes->wrap_mode(o->value(), 0);
-                db_products_tags->wrap_mode(o->value(), 0);
-              });
-            }
-            {
-              local o = Fl_Float_Input(115, 220, 110, 25, _tr("Onhand"));
-              db_products_quantity_onhand = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_onhand", db_products_quantity_onhand);
-            }
-          }
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Group(5, 60, 790, 495, _tr("Prices"));
-          tabPrices = o;
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Group(15, 88, 770, 201, _tr("Sales Price"));
-              o.labelsize(16);
-              o.color(166);
-              o.box(FL_UP_BOX);
-              {
-                {
-                  local o = Fl_Float_Input_Fmt(25, 115, 115, 25, _tr("Buy $"));
-                  db_products_buy_price = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "buy_price", db_products_buy_price);
-                }
-                {
-                  local o = Fl_Float_Input_Fmt(151, 115, 115, 25, _tr("Buy Disc. %"));
-                  db_products_buy_discount = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "buy_discount", db_products_buy_discount);
-                  o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Float_Input_Fmt(278, 115, 115, 25, _tr("Other Costs $"));
-                  db_products_buy_other_costs = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "buy_other_costs", db_products_buy_other_costs);
-                }
-                {
-                  local o = Fl_Float_Input_Fmt(404, 115, 115, 25, _tr("Markup %"));
-                  db_products_sell_markup = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "sell_markup", db_products_sell_markup);
-                  //o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Float_Input_Fmt(531, 115, 115, 25, _tr("Margin %"));
-                  markup_to_discount = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                  //o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Float_Input_Fmt(658, 115, 115, 25, _tr("Sales $"));
-                  db_products_sell_price_ro = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Int_Input(530, 150, 30, 25, _tr("Decimals for calculation"));
-                  db_products_price_decimals = o;
-                  o.textsize(16);
-                  o.labelfont(1);
-                  o.textfont(1);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "price_decimals", db_products_price_decimals);
-                  //o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Button(662, 150, 111, 25, _tr("Save"));
-                  btnSaveProrduct = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Float_Input(665, 195, 110, 25, _tr("Stock Min."));
-                  db_products_stock_min = o;
-                  o.textsize(16);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "stock_min", db_products_stock_min);
-                  o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Float_Input(665, 225, 110, 25, _tr("Stock Max."));
-                  db_products_stock_max = o;
-                  o.textsize(16);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "stock_max", db_products_stock_max);
-                  o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Float_Input(665, 255, 110, 25, _tr("Buy Min. Qty."));
-                  db_products_buy_quantity_min = o;
-                  o.textsize(16);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "buy_quantity_min", db_products_buy_quantity_min);
-                  o->decimal_places(-6);
-                }
-                {
-                  local o = Fl_Multiline_Input(25, 197, 495, 83, _tr("Price formula"));
-                  db_products_price_formula = o;
-                  o.textsize(16);
-                  o.align(5);
-                  o.labelsize(16);
-                  add_input_field_to_map("products", "price_formula", db_products_price_formula);
-                }
-                {
-                  local o = Fl_Output(25, 150, 130, 25, _tr("Last Update"));
-                  db_products_price_date = o;
-                  o.textsize(16);
-                  o.align(8);
-                  o.labelsize(16);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Box(15, 290, 770, 40, _tr("Spacer"));
-              o.labeltype(FL_NO_LABEL);
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Group(15, 332, 770, 212);
-              productPrices = o;
-              o.box(FL_UP_BOX);
-              o.labelsize(16);
-              o.color(166);
-              o.labeltype(FL_NO_LABEL);
-              o.end();
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 59, 790, 495, _tr("Kit"));
-          tabKit = o;
-          o.labelsize(16);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 60, 790, 495, _tr("Statistics"));
-          tabChartStatistics = o;
-          o.labelsize(16);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 60, 790, 495, _tr("History"));
-          tabHistory = o;
-          o.labelsize(16);
-          o.color(246);
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 60, 790, 495, _tr("Reports"));
-          tabReports = o;
-          o.labelsize(16);
-          o.color(246);
-          o.box(FL_UP_BOX);
-          {
-            {
-              local o = Fl_Group(15, 465, 770, 80, _tr("Export / Import"));
-              grpExportImport = o;
-              o.labelsize(16);
-              o.box(FL_ENGRAVED_FRAME);
-              {
-                {
-                  local o = Fl_Button(25, 475, 175, 25, _tr("Products Export"));
-                  btnProductsExport = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Button(25, 510, 175, 25, _tr("Products Import"));
-                  btnProductsImport = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Check_Button(225, 480, 150, 25, _tr("Withouth Prices"));
-                  chkWithoutPrices = o;
-                  o.labelsize(16);
-                  o.down_box(FL_DOWN_BOX);
-                }
-                {
-                  local o = Fl_Check_Button(225, 510, 150, 25, _tr("WEB Only"));
-                  chkWebOnly = o;
-                  o.labelsize(16);
-                  o.down_box(FL_DOWN_BOX);
-                }
-                {
-                  local o = Fl_Box(405, 499, 42, 25, _tr("0"));
-                  boxExportImportCount = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Button(555, 475, 220, 25, _tr("Product Groups Export"));
-                  btnProductGroupsExport = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Button(555, 510, 220, 25, _tr("Product Groups import"));
-                  btnProductGroupsImport = o;
-                  o.labelsize(16);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Button(610, 70, 175, 25, _tr("Update WEB"));
-              btnUpdateWeb = o;
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Group(10, 85, 195, 165, _tr("Price List"));
-              grpPrintPriceList = o;
-              o.labelsize(16);
-              o.box(FL_ENGRAVED_FRAME);
-              {
-                {
-                  local o = Fl_Check_Button(20, 95, 175, 25, _tr("With V.A.T."));
-                  chkPriceListWithVAT = o;
-                  o.labelsize(16);
-                  o.down_box(FL_DOWN_BOX);
-                }
-                {
-                  local o = Fl_Check_Button(20, 125, 170, 25, _tr("Sell on WEB"));
-                  chkPriceListSellOnWeb = o;
-                  o.labelsize(16);
-                  o.down_box(FL_DOWN_BOX);
-                }
-                {
-                  local o = Fl_Button(20, 215, 175, 25, _tr("Print"));
-                  btnPrintPriceList = o;
-                  o.labelsize(16);
-                }
-                {
-                  local o = Fl_Check_Button(20, 155, 175, 25, _tr("Sales"));
-                  chkPriceListSellSales = o;
-                  o.labelsize(16);
-                  o.down_box(FL_DOWN_BOX);
-                }
-                {
-                  local o = Fl_Check_Button(20, 185, 175, 25, _tr("PDF"));
-                  chkPriceListSellPDF = o;
-                  o.labelsize(16);
-                  o.down_box(FL_DOWN_BOX);
-                }
-              }
-              o.end();
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Group(5, 60, 790, 495, _tr("Totals"));
-          tabTotals = o;
-          o.labelsize(16);
-          o.color(246);
-          {
-            {
-              local o = Fl_Float_Input(220, 80, 110, 25, _tr("Quantity quoted sales"));
-              db_products_quantity_quoted_sales = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_quoted_sales", db_products_quantity_quoted_sales);
-            }
-            {
-              local o = Fl_Float_Input(220, 115, 110, 25, _tr("Quantity ordered sales"));
-              db_products_quantity_ordered_sales = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_ordered_sales", db_products_quantity_ordered_sales);
-            }
-            {
-              local o = Fl_Float_Input(220, 150, 110, 25, _tr("Quantity delivered"));
-              db_products_quantity_delivered = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_delivered", db_products_quantity_delivered);
-            }
-            {
-              local o = Fl_Float_Input(220, 185, 110, 25, _tr("Quantity invoiced sales"));
-              db_products_quantity_invoiced_sales = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_invoiced_sales", db_products_quantity_invoiced_sales);
-            }
-            {
-              local o = Fl_Float_Input(220, 220, 110, 25, _tr("Quantity lost"));
-              db_products_quantity_lost = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_lost", db_products_quantity_lost);
-            }
-            {
-              local o = Fl_Float_Input(665, 85, 110, 25, _tr("Quantity quoted buys"));
-              db_products_quantity_quoted_buys = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_quoted_buys", db_products_quantity_quoted_buys);
-            }
-            {
-              local o = Fl_Float_Input(665, 120, 110, 25, _tr("Quantity ordered buys"));
-              db_products_quantity_ordered_buys = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_ordered_buys", db_products_quantity_ordered_buys);
-            }
-            {
-              local o = Fl_Float_Input(665, 155, 110, 25, _tr("Quantity received"));
-              db_products_quantity_received = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_received", db_products_quantity_received);
-            }
-            {
-              local o = Fl_Float_Input(665, 190, 110, 25, _tr("Quantity invoiced buys"));
-              db_products_quantity_invoiced_buys = o;
-              o.textsize(16);
-              o.labelsize(16);
-              o->decimal_places(-6);
-              add_input_field_to_map("products", "quantity_invoiced_buys", db_products_quantity_invoiced_buys);
-            }
-          }
-          o.end();
-        }
-      }
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-  }
-}

+ 0 - 376
SquiLu-ourbiz/entity-edit-gui.fl

@@ -1,376 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-widget_class EditEntitiesWindow {
-  label {Edit Entity} open
-  xywh {54 85 800 560} type Double resizable
-  class Edit_Base_Window visible
-} {
-  Fl_Output db_entities_id {
-    macro_name {db entities id}
-    dirty_name db_entities_id
-    xywh {5 5 96 25} labeltype NO_LABEL labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Output db_entities_name_ro {
-    dirty_name db_entities_name_ro
-    xywh {110 5 545 25} labeltype NO_LABEL labelsize 16 textsize 16
-  }
-  Fl_Output db_entities_mdate {
-    macro_name {db entities mdate}
-    dirty_name db_entities_mdate
-    tooltip {This record last update date} xywh {666 5 130 25} labeltype NO_LABEL labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Output db_entities_cdate {
-    macro_name {db entities cdate}
-    dirty_name db_entities_cdate
-    tooltip {This record creation date} xywh {665 35 130 25} labeltype NO_LABEL labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Tabs tabs {open
-    xywh {5 35 790 521} selection_color 4 labelsize 16 labelcolor 7 resizable
-  } {
-    Fl_Group tabMain {
-      label Main open
-      xywh {5 62 790 494} color 246 labelsize 16 resizable
-    } {
-      Fl_Input db_entities_name {
-        label Name
-        macro_name {db entities name}
-        dirty_name db_entities_name
-        xywh {115 70 670 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_company {
-        label Company
-        macro_name {db entities company}
-        dirty_name db_entities_company
-        xywh {115 100 670 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_address {
-        label Address
-        macro_name {db entities address}
-        dirty_name db_entities_address
-        xywh {115 130 670 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_zip {
-        label ZIP
-        macro_name {db entities zip}
-        dirty_name db_entities_zip
-        xywh {115 160 95 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_city {
-        label City
-        macro_name {db entities city}
-        dirty_name db_entities_city
-        xywh {311 160 474 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_state {
-        label State
-        macro_name {db entities state}
-        dirty_name db_entities_state
-        xywh {115 189 390 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_country {
-        label Country
-        macro_name {db entities country}
-        dirty_name db_entities_country
-        xywh {585 190 200 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_tax_number {
-        label {Tax Num.}
-        macro_name {db entities tax_number}
-        dirty_name db_entities_tax_number
-        xywh {115 220 200 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_entities_show_on_sales {
-        label Sales
-        macro_name {db entities show_on_sales}
-        dirty_name db_entities_show_on_sales
-        xywh {325 220 115 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_entities_show_on_buys {
-        label Buys
-        macro_name {db entities show_on_buys}
-        dirty_name db_entities_show_on_buys
-        xywh {445 220 125 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_entities_is_active {
-        label Active
-        macro_name {db entities is_active}
-        dirty_name db_entities_is_active
-        xywh {585 220 155 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_phone {
-        label Phone
-        macro_name {db entities phone}
-        dirty_name db_entities_phone
-        xywh {115 249 200 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_fax {
-        label Fax
-        macro_name {db entities fax}
-        dirty_name db_entities_fax
-        xywh {370 249 200 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_entities_use_sales_tax2 {
-        label {Use Sales Tax II}
-        macro_name {db entities use_sales_tax2}
-        dirty_name db_entities_use_sales_tax2
-        xywh {585 250 155 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_email {
-        label Email
-        macro_name {db entities email}
-        dirty_name db_entities_email
-        xywh {115 280 455 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_entities_sales_tax_exempt {
-        label {Sales Tax Exempt}
-        macro_name {db entities sales_tax_exempt}
-        dirty_name db_entities_sales_tax_exempt
-        xywh {585 280 155 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_web {
-        label Web
-        macro_name {db entities web}
-        dirty_name db_entities_web
-        xywh {115 310 455 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_irpf_pct_retention {
-        label {I.R.P.F. %}
-        macro_name {db entities irpf_pct_retention}
-        xywh {585 310 60 25} type Float labelsize 16 align 8 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_contact {
-        label Contact
-        macro_name {db entities contact}
-        dirty_name db_entities_contact
-        xywh {115 340 455 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_entities_gps_coordinates {
-        label GPS
-        macro_name {db entities gps_coordinates}
-        dirty_name db_entities_gps_coordinates
-        xywh {630 340 155 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Group {} {open
-        xywh {675 394 110 151}
-      } {
-        Fl_Box {} {
-          label Spacer
-          xywh {675 394 110 73} labeltype NO_LABEL resizable
-        }
-        Fl_Button btnDbAction {
-          label Action
-          dirty_name btnDbAction
-          xywh {675 470 110 25} labelsize 16
-        }
-        Fl_Choice dbAction {
-          label Action
-          dirty_name dbAction open
-          xywh {675 520 110 25} down_box BORDER_BOX labelsize 16 align 1 textsize 16
-          class Fl_Choice_dbAction
-        } {}
-      }
-      Fl_Tabs {} {open
-        xywh {15 375 650 181} selection_color 4 labelsize 16 labelcolor 7
-      } {
-        Fl_Group tabNotes {
-          label Notes open selected
-          xywh {15 405 650 150} labelsize 16
-        } {
-          Fl_Input db_entities_notes {
-            macro_name {db entities notes}
-            dirty_name db_entities_notes
-            xywh {15 405 650 150} type Multiline labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Fl_Text_Editor_Buffered
-          }
-        }
-        Fl_Group tabTags {
-          label Tags
-          dirty_name tabTags open
-          xywh {15 405 650 150} labelsize 16 hide
-        } {
-          Fl_Input db_entities_tags {
-            macro_name {db entities tags}
-            dirty_name db_entities_tags
-            xywh {15 405 650 150} type Multiline labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Fl_Text_Editor_Buffered
-          }
-        }
-        Fl_Group tabGroups {
-          label Groups
-          dirty_name tabGroups open
-          xywh {15 400 650 156} hide
-        } {
-          Fl_Tree db_entities_group_id {
-            macro_name {db entities group_id}
-            dirty_name db_entities_group_id
-            xywh {15 405 650 150} labelsize 16
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Flu_Tree_Browser
-          }
-        }
-      }
-      Fl_Check_Button {} {
-        label {Wrap lines}
-        xywh {375 380 102 25} down_box DOWN_BOX value 1 labelsize 16
-      }
-    }
-    Fl_Group tabTotals {
-      label Totals
-      dirty_name tabTotals open
-      xywh {5 62 790 493} color 246 labelsize 16 hide
-    } {
-      Fl_Input db_entities_credit_allowed {
-        label Credit
-        macro_name {db entities credit_allowed}
-        xywh {140 75 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_balance {
-        label Balance
-        macro_name {db entities balance}
-        xywh {140 110 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_sales_quoted {
-        label {Sales Quoted}
-        macro_name {db entities sales_quoted}
-        xywh {140 155 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_sales_ordered {
-        label {Sales Ordered}
-        macro_name {db entities sales_ordered}
-        xywh {140 190 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_sales_delivered {
-        label {Sales Delivered}
-        macro_name {db entities sales_delivered}
-        xywh {140 225 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_sales_invoiced {
-        label {Sales Invoiced}
-        macro_name {db entities sales_invoiced}
-        xywh {140 260 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_sales_discount {
-        label {Sales Discount}
-        macro_name {db entities sales_discount}
-        xywh {140 295 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_sales_paid {
-        label {Sales Paid}
-        macro_name {db entities sales_paid}
-        xywh {140 330 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_buys_quoted {
-        label {Buys Quoted}
-        macro_name {db entities buys_quoted}
-        xywh {410 155 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_buys_ordered {
-        label {Buys Ordered}
-        macro_name {db entities buys_ordered}
-        xywh {410 190 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_buys_received {
-        label {Buys Received}
-        macro_name {db entities buys_received}
-        xywh {410 225 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_buys_invoiced {
-        label {Buys Invoiced}
-        macro_name {db entities buys_invoiced}
-        xywh {410 260 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_buys_paid {
-        label {Buys Paid}
-        macro_name {db entities buys_paid}
-        xywh {410 330 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_entities_buys_discount {
-        label {Buys Discount}
-        macro_name {db entities buys_discount}
-        dirty_name db_entities_buys_discount
-        xywh {410 295 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-    }
-    Fl_Group tabChartStatistics {
-      label Statistics
-      dirty_name tabChartStatistics open
-      xywh {5 62 790 493} color 246 labelsize 16 hide
-    } {}
-    Fl_Group tabHistory {
-      label History open
-      xywh {5 59 790 496} color 246 labelsize 16 hide
-    } {}
-    Fl_Group tabReports {
-      label Reports open
-      xywh {5 59 790 496} color 246 labelsize 16 hide
-    } {
-      Fl_Button btnEntitesListContactReport {
-        label {Entities List Contact Report}
-        xywh {255 100 215 25}
-      }
-      Fl_Progress print_progress {
-        label {Printing Progress}
-        xywh {255 140 215 25}
-      }
-    }
-  }
-} 

+ 0 - 64
SquiLu-ourbiz/groups-tree-gui.fl

@@ -1,64 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-widget_class GroupsListEditWindow {
-  label {Groups List / Edit} open
-  xywh {328 91 800 560} type Double labelsize 16 resizable
-  class Edit_Base_Window visible
-} {
-  Fl_Tree tree {
-    dirty_name tree selected
-    xywh {10 10 780 360} labeltype NO_LABEL labelsize 16 resizable
-    code0 {//o->showroot(0);}
-    code1 {//o->select_focus(1);}
-    class MyTree_Browser
-  }
-  Fl_Group bottomGroup {open
-    xywh {0 375 800 185} box ENGRAVED_BOX color 246 labelsize 16
-  } {
-    Fl_Input db_group_description {
-      label Description
-      macro_name {db group description}
-      xywh {98 408 576 28} labelsize 16 align 5 textfont 1 textsize 16
-      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-    }
-    Fl_Input db_group_parent_id {
-      label Parent
-      macro_name {db group parent_id}
-      xywh {684 408 106 28} type Int labelsize 16 align 5 textfont 1 textsize 16
-      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-    }
-    Fl_Choice dbAction {
-      dirty_name dbAction open
-      xywh {684 484 106 28} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
-      class Fl_Choice_dbAction
-    } {}
-    Fl_Button btnDbAction {
-      label Action
-      dirty_name btnDbAction
-      xywh {686 522 104 28} labelsize 16
-    }
-    Fl_Output db_group_id {
-      label ID
-      macro_name {db group id}
-      xywh {10 408 78 28} labelsize 16 align 5 textfont 1 textsize 16
-      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-    }
-    Fl_Check_Button btnWrapNotes {
-      label {Wrap lines}
-      dirty_name btnWrapNotes
-      xywh {95 440 115 25} down_box DOWN_BOX value 1 labelsize 16
-    }
-    Fl_Text_Editor db_group_notes {
-      label Notes
-      macro_name {db group notes}
-      xywh {10 462 660 88} labelsize 16 align 5 textsize 16 resizable
-      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      class MyFl_Text_Editor
-    }
-  }
-} 

+ 0 - 93
SquiLu-ourbiz/groups-tree-gui.nut

@@ -1,93 +0,0 @@
-class GroupsListEditWindow extends EditWindow {
-  
-// Declaration of class members
-  tree = null;
-  bottomGroup = null;
-  db_group_description = null;
-  db_group_parent_id = null;
-  dbAction = null;
-  btnDbAction = null;
-  db_group_id = null;
-  btnWrapNotes = null;
-  db_group_notes = null;
-  
-  constructor(px=328, py=91, pw=800, ph=560, pl=_tr("Groups List / Edit")){
-    base.constructor(px, py, pw, ph, pl);
-    // Create member functions and widgets
-    {
-      local o = MyTree_Browser(10, 10, 780, 360);
-      tree = o;
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-      //o->showroot(0);
-      //o->select_focus(1);
-      Fl_Group.current().resizable(o);
-    }
-    {
-      local o = Fl_Group(0, 375, 800, 185);
-      bottomGroup = o;
-      o.box(FL_ENGRAVED_BOX);
-      o.labelsize(16);
-      o.color(246);
-      {
-        {
-          local o = Fl_Input(98, 408, 576, 28, _tr("Description"));
-          db_group_description = o;
-          o.textsize(16);
-          o.align(5);
-          o.textfont(1);
-          o.labelsize(16);
-          add_input_field_to_map("group", "description", db_group_description);
-        }
-        {
-          local o = Fl_Int_Input(684, 408, 106, 28, _tr("Parent"));
-          db_group_parent_id = o;
-          o.textsize(16);
-          o.align(5);
-          o.textfont(1);
-          o.labelsize(16);
-          add_input_field_to_map("group", "parent_id", db_group_parent_id);
-        }
-        {
-          local o = Fl_Choice_dbAction(684, 484, 106, 28);
-          dbAction = o;
-          o.textsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.down_box(FL_BORDER_BOX);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(686, 522, 104, 28, _tr("Action"));
-          btnDbAction = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Output(10, 408, 78, 28, _tr("ID"));
-          db_group_id = o;
-          o.textsize(16);
-          o.align(5);
-          o.textfont(1);
-          o.labelsize(16);
-          add_input_field_to_map("group", "id", db_group_id);
-        }
-        {
-          local o = Fl_Check_Button(95, 440, 115, 25, _tr("Wrap lines"));
-          btnWrapNotes = o;
-          o.labelsize(16);
-          o.value(1);
-          o.down_box(FL_DOWN_BOX);
-        }
-        {
-          local o = MyFl_Text_Editor(10, 462, 660, 88, _tr("Notes"));
-          db_group_notes = o;
-          o.textsize(16);
-          o.align(5);
-          o.labelsize(16);
-          add_input_field_to_map("group", "notes", db_group_notes);
-          Fl_Group.current().resizable(o);
-        }
-      }
-      o.end();
-    }
-  }
-}

+ 0 - 86
SquiLu-ourbiz/help-view-gui.fl

@@ -1,86 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0300 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"} {public global
-} 
-
-widget_class HelpWindow {
-  label Help selected
-  xywh {76 128 600 400} type Double hide resizable
-  class Base_Window
-} {
-  Fl_Tabs tabs {
-    dirty_name tabs open
-    xywh {5 5 590 355} labelsize 16 resizable
-  } {
-    Fl_Group tabView {
-      label View
-      dirty_name tabView open
-      xywh {5 30 590 330} resizable
-    } {
-      Fl_Help_View view_html {
-        dirty_name view_html
-        xywh {5 30 590 330} labelsize 16
-      }
-    }
-    Fl_Group tabEdit {
-      label Edit
-      dirty_name tabEdit open
-      xywh {5 30 590 310} hide
-    } {
-      Fl_Text_Editor help_text {
-        dirty_name help_text
-        xywh {5 30 590 310} labelsize 18 textsize 18 resizable
-        class Fl_Text_Editor_Buffered
-      }
-    }
-  }
-  Fl_Group {} {open
-    xywh {5 370 590 25}
-  } {
-    Fl_Input words_to_search {
-      label {@search}
-      dirty_name words_to_search
-      xywh {34 370 225 25} labelsize 18 textsize 18 resizable
-    }
-    Fl_Button btnSearchHelp {
-      label Search
-      dirty_name btnSearchHelp
-      xywh {265 370 80 25} labelsize 16
-    }
-    Fl_Button btnSavehelp {
-      label Save
-      dirty_name btnSavehelp
-      xywh {350 370 80 25} labelsize 16 deactivate
-    }
-    Fl_Button btnBackward {
-      label {@<-}
-      dirty_name btnBackward
-      xywh {435 370 25 25} labelcolor 63
-    }
-    Fl_Button btnTop {
-      label {@8->}
-      dirty_name btnTop
-      xywh {470 370 25 25} labelcolor 63
-    }
-    Fl_Button btnForward {
-      label {@->}
-      dirty_name btnForward
-      xywh {503 370 25 25} labelcolor 63
-    }
-    Fl_Button btnFontSmaller {
-      label F
-      dirty_name btnFontSmaller
-      xywh {536 370 25 25} labelfont 1 labelsize 10
-    }
-    Fl_Button btnFontBigger {
-      label F
-      dirty_name btnFontBigger
-      xywh {569 370 25 25} labelfont 1
-    }
-  }
-} 

+ 0 - 109
SquiLu-ourbiz/help-view-gui.nut

@@ -1,109 +0,0 @@
-class HelpWindow extends MyBaseWindow {
-  
-  // Declaration of class members
-  tabs = null;
-  tabView = null;
-  view_html = null;
-  tabEdit = null;
-  help_text = null;
-  words_to_search = null;
-  btnSearchHelp = null;
-  btnSavehelp = null;
-  btnBackward = null;
-  btnTop = null;
-  btnForward = null;
-  btnFontSmaller = null;
-  btnFontBigger = null;
-  
-  constructor(){
-    base.constructor(76, 128, 600, 400, _tr("Help"));
-    // Create member functions and widgets
-    {
-      local o = Fl_Tabs(5, 5, 590, 355);
-      tabs = o;
-      o.labelsize(16);
-      {
-        {
-          local o = Fl_Group(5, 30, 590, 330, _tr ("View"));
-          tabView = o;
-          {
-            {
-              local o = Fl_Help_View(5, 30, 590, 330);
-              view_html = o;
-              o.labelsize(16);
-              o.end();
-            }
-          }
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Group(5, 30, 590, 310, _tr ("Edit"));
-          tabEdit = o;
-          {
-            {
-              local o = Fl_Text_Editor_Buffered(5, 30, 590, 310);
-              help_text = o;
-              o.textsize(18);
-              o.labelsize(18);
-              Fl_Group.current().resizable(o);
-            }
-          }
-          o.end();
-        }
-      }
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-    {
-      local o = Fl_Group(5, 370, 590, 25);
-      {
-        {
-          local o = Fl_Input(34, 370, 225, 25, _tr ("@search"));
-          words_to_search = o;
-          o.textsize(18);
-          o.labelsize(18);
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Button(265, 370, 80, 25, _tr ("Search"));
-          btnSearchHelp = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(350, 370, 80, 25, _tr ("Save"));
-          btnSavehelp = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(435, 370, 25, 25, _tr ("@<-"));
-          btnBackward = o;
-          o.labelcolor(63);
-        }
-        {
-          local o = Fl_Button(470, 370, 25, 25, _tr ("@8->"));
-          btnTop = o;
-          o.labelcolor(63);
-        }
-        {
-          local o = Fl_Button(503, 370, 25, 25, _tr ("@->"));
-          btnForward = o;
-          o.labelcolor(63);
-        }
-        {
-          local o = Fl_Button(536, 370, 25, 25, _tr ("F"));
-          btnFontSmaller = o;
-          o.labelsize(10);
-          o.labelfont(1);
-        }
-        {
-          local o = Fl_Button(569, 370, 25, 25, _tr ("F"));
-          btnFontBigger = o;
-          o.labelfont(1);
-        }
-      }
-      o.end();
-    }
-  }
-}
-

+ 0 - 35
SquiLu-ourbiz/history-gui.fl

@@ -1,35 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"} {public global
-} 
-
-widget_class HistoryGroup {
-  label History open
-  xywh {13 33 760 465} type Double labelsize 16 resizable visible position_relative
-} {
-  Fl_Pack {} {open
-    xywh {0 0 760 25} type HORIZONTAL labelsize 16
-    code0 {o->spacing(10);}
-  } {
-    Fl_Choice history_choice {open
-      xywh {0 0 564 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16 resizable
-    } {}
-    Fl_Input history_query_limit {
-      tooltip {Write then number of periodes you want to see} xywh {574 0 80 25} type Int labeltype NO_LABEL labelsize 16 textsize 16
-      code0 {o->value("50");}
-    }
-    Fl_Button btnViewDocHsitory {
-      label {View Doc.}
-      xywh {664 0 96 25} labelsize 16
-    }
-  }
-  Fl_Browser grid_history {selected
-    xywh {0 33 760 432} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
-    class Fl_Data_Table
-  }
-} 

+ 0 - 55
SquiLu-ourbiz/history-gui.nut

@@ -1,55 +0,0 @@
-class HistoryGroup extends Fl_Group {
-  
-  // Declaration of class members
-  history_choice = null;
-  history_query_limit = null;
-  btnViewDocHsitory = null;
-  grid_history = null;
-  
-  constructor(){
-    base.constructor(13, 33, 760, 465, _tr("History"));
-    local _x = 13, _y = 33;
-    // Create member functions and widgets
-    {
-      local o = Fl_Pack(_x + 0, _y + 0, 760, 25);
-      o.type(1);
-      o.labelsize(16);
-      o->spacing(10);
-      {
-        {
-          local o = Fl_Choice(_x + 0, _y + 0, 564, 25);
-          history_choice = o;
-          o.textsize(16);
-          o.labelsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.down_box(FL_BORDER_BOX);
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Int_Input(_x + 574, _y + 0, 80, 25);
-          history_query_limit = o;
-          o.textsize(16);
-          o.labelsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.tooltip(_tr("Write then number of periodes you want to see"));
-          o->value("50");
-        }
-        {
-          local o = Fl_Button(_x + 664, _y + 0, 96, 25, _tr("View Doc."));
-          btnViewDocHsitory = o;
-          o.labelsize(16);
-        }
-      }
-      o.end();
-    }
-    {
-      local o = Fl_Data_Table(_x + 0, _y + 33, 760, 432);
-      grid_history = o;
-      o.textsize(16);
-      o.labeltype(FL_NO_LABEL);
-      o.labelsize(16);
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-  }
-}

+ 0 - 608
SquiLu-ourbiz/invoice-A4.nut

@@ -1,608 +0,0 @@
-//class InvoiceA4 extends Fl_Group {
-class InvoiceA4 extends Fl_Window {
-	page=null;
-	pageDesignGroup=null;
-	logoGroupH=null;
-	logoH=null;
-	companyBoxH=null;
-	logoGroupV=null;
-	logoV=null;
-	companyBoxHV=null;
-	companyBoxV=null;
-	logoGroupHV=null;
-	logoGroupHV=null;
-	logoHV1=null;
-	logoHV2=null;
-	OrderNumber=null;
-	box_header_number_date=null;
-	box_data_number_date=null;
-	header_date_box=null;
-	box_data_date_box=null;
-	box_to=null;
-	orderLines=null;
-	header_lines_code_box=null;
-	header_lines_description_box=null;
-	header_lines_quantity_box=null;
-	header_lines_price_box=null;
-	header_lines_discount_box=null;
-	header_lines_sales_tax1_box=null;
-	header_lines_sales_tax2_box=null;
-	header_lines_subtotal_box=null;
-	designLinesGroup=null;
-	data_lines_code_box=null;
-	data_lines_description_box=null;
-	data_lines_quantity_box=null;
-	data_tlines_price_box=null;
-	data_lines_discount_box=null;
-	data_lines_sales_tax1_box=null;
-	data_lines_sales_tax2_box=null;
-	data_lines_subtotal_box=null;
-	orderTotals=null;
-	header_PAGENO_box=null;
-	box_data_pageno_box=null;
-	header_totals_subtotal_box=null;
-	data_totals_subtotal_box=null;
-	header_totals_total_sales_tax1_box=null;
-	data_totals_total_sales_tax1_box=null;
-	header_totals_total_sales_tax2_box=null;
-	data_totals_total_sales_tax2_box=null;
-	header_totals_total_box=null;
-	data_totals_total_box=null;
-	notes_box=null;
-	printDataGroup=null;
-	orderTypeBox=null;
-	numberBox=null;
-	dateBox=null;
-	entityBox=null;
-	dataLinesGroup=null;
-	codeBox=null;
-	descriptionBox=null;
-	quantityBox=null;
-	priceBox=null;
-	discountBox=null;
-	sales_tax1Box=null;
-	sales_tax2Box=null;
-	lineTotalBox=null;
-	bottomTotals=null;
-	orderPageBox=null;
-	fisrtTotalBox=null;
-	sales_tax1AmountBox=null;
-	sales_tax2AmountBox=null;
-	totalBox=null;
-	
-constructor() {
-	base.constructor(10, 50, 634, 686, _tr("InvoiceA4"));
-begin();
-this->box(FL_FLAT_BOX);
-this->color(FL_BACKGROUND_COLOR);
-this->selection_color(FL_BACKGROUND_COLOR);
-this->labeltype(FL_NO_LABEL);
-this->labelfont(0);
-this->labelsize(14);
-this->labelcolor(FL_FOREGROUND_COLOR);
-this->align((FL_ALIGN_TOP));
-this->when(FL_WHEN_RELEASE);
-{ page = new Fl_Group(0, 0, 634, 686);
-  page->color(FL_BACKGROUND2_COLOR);
-  { pageDesignGroup = new Fl_Group(2, 0, 630, 686);
-    pageDesignGroup->labeltype(FL_NO_LABEL);
-    { logoGroupH = new Fl_Group(15, 10, 316, 130);
-      logoGroupH->hide();
-      { logoH = new Fl_Box(16, 10, 310, 50, _tr("FLTK"));
-        logoH->labeltype(FL_SHADOW_LABEL);
-        logoH->labelfont(3);
-        logoH->labelsize(40);
-        logoH->align((644|FL_ALIGN_INSIDE));
-      } // Fl_Box* logoH
-      { companyBoxH = new Fl_Box_ClearLabel(16, 65, 308, 75, _tr(@"FLTK (pronounced ""fulltick"") is a cross-platform C++ GUI toolkit for UNIX\
-\302\256/Linux\302\256 (X11), Microsoft\302\256 Windows\302\256, and MacOS\
-\302\256 X. FLTK provides modern GUI functionality without the bloat and suppo\
-rts 3D graphics via OpenGL\302\256 and its built-in GLUT emulation."));
-        companyBoxH->box(FL_NO_BOX);
-        companyBoxH->color(FL_BACKGROUND_COLOR);
-        companyBoxH->selection_color(FL_BACKGROUND_COLOR);
-        companyBoxH->labeltype(FL_NORMAL_LABEL);
-        companyBoxH->labelfont(2);
-        companyBoxH->labelsize(10);
-        companyBoxH->labelcolor(FL_FOREGROUND_COLOR);
-        companyBoxH->align((FL_ALIGN_WRAP|FL_ALIGN_INSIDE));
-        companyBoxH->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* companyBoxH
-      logoGroupH->end();
-    } // Fl_Group* logoGroupH
-    { logoGroupV = new Fl_Group(15, 10, 316, 130);
-      logoGroupV->hide();
-      { logoV = new Fl_Box(16, 10, 100, 130, _tr("FLTK"));
-        logoV->labeltype(FL_SHADOW_LABEL);
-        logoV->labelfont(3);
-        logoV->labelsize(40);
-        logoV->align((644|FL_ALIGN_INSIDE));
-      } // Fl_Box* logoV
-      { companyBoxV = new Fl_Box_ClearLabel(120, 10, 210, 130, _tr(@"FLTK (pronounced ""fulltick"") is a cross-platform C++ GUI toolkit for UNIX\
-\302\256/Linux\302\256 (X11), Microsoft\302\256 Windows\302\256, and MacOS\
-\302\256 X. FLTK provides modern GUI functionality without the bloat and suppo\
-rts 3D graphics via OpenGL\302\256 and its built-in GLUT emulation."));
-        companyBoxV->box(FL_NO_BOX);
-        companyBoxV->color(FL_BACKGROUND_COLOR);
-        companyBoxV->selection_color(FL_BACKGROUND_COLOR);
-        companyBoxV->labeltype(FL_NORMAL_LABEL);
-        companyBoxV->labelfont(2);
-        companyBoxV->labelsize(10);
-        companyBoxV->labelcolor(FL_FOREGROUND_COLOR);
-        companyBoxV->align((FL_ALIGN_WRAP|FL_ALIGN_INSIDE));
-        companyBoxV->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* companyBoxV
-      logoGroupV->end();
-    } // Fl_Group* logoGroupV
-    { logoGroupHV = new Fl_Group(15, 10, 316, 130);
-      { logoHV1 = new Fl_Box(16, 10, 100, 130, _tr("FLTK"));
-        logoHV1->labeltype(FL_SHADOW_LABEL);
-        logoHV1->labelfont(3);
-        logoHV1->labelsize(40);
-        logoHV1->align((644|FL_ALIGN_INSIDE));
-      } // Fl_Box* logoHV1
-      { logoHV2 = new Fl_Box(120, 10, 210, 50, _tr("FLTK"));
-        logoHV2->labeltype(FL_SHADOW_LABEL);
-        logoHV2->labelfont(3);
-        logoHV2->labelsize(40);
-        logoHV2->align((644|FL_ALIGN_INSIDE));
-      } // Fl_Box* logoHV2
-      { companyBoxHV = new Fl_Box_ClearLabel(120, 50, 210, 90, _tr(@"FLTK (pronounced ""fulltick"") is a cross-platform C++ GUI toolkit for UNIX\
-\302\256/Linux\302\256 (X11), Microsoft\302\256 Windows\302\256, and MacOS\
-\302\256 X. FLTK provides modern GUI functionality without the bloat and suppo\
-rts 3D graphics via OpenGL\302\256 and its built-in GLUT emulation."));
-        companyBoxHV->box(FL_NO_BOX);
-        companyBoxHV->color(FL_BACKGROUND_COLOR);
-        companyBoxHV->selection_color(FL_BACKGROUND_COLOR);
-        companyBoxHV->labeltype(FL_NORMAL_LABEL);
-        companyBoxHV->labelfont(2);
-        companyBoxHV->labelsize(9);
-        companyBoxHV->labelcolor(FL_FOREGROUND_COLOR);
-        companyBoxHV->align((FL_ALIGN_WRAP|FL_ALIGN_INSIDE));
-        companyBoxHV->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* companyBoxHV
-      logoGroupHV->end();
-    } // Fl_Group* logoGroupHV
-    { OrderNumber = new Fl_Group(336, 10, 286, 40);
-      OrderNumber->box(FL_FLAT_BOX);
-      OrderNumber->color(FL_DARK3);
-      OrderNumber->labeltype(FL_NO_LABEL);
-      { box_header_number_date = new Fl_Box(337, 11, 142, 18);
-        box_header_number_date->box(FL_FLAT_BOX);
-        box_header_number_date->color(FL_DARK1);
-        box_header_number_date->labeltype(FL_NO_LABEL);
-        box_header_number_date->labelsize(12);
-      } // Fl_Box* box_header_number_date
-      { box_data_number_date = new Fl_Box(337, 30, 142, 19);
-        box_data_number_date->box(FL_FLAT_BOX);
-        box_data_number_date->color(FL_BACKGROUND2_COLOR);
-        box_data_number_date->labeltype(FL_NO_LABEL);
-        box_data_number_date->labelsize(12);
-      } // Fl_Box* box_data_number_date
-      { header_date_box = new Fl_Box(480, 11, 141, 18, _tr("DATE"));
-        header_date_box->box(FL_FLAT_BOX);
-        header_date_box->color(FL_DARK1);
-        header_date_box->labelfont(1);
-        header_date_box->labelsize(12);
-      } // Fl_Box* header_date_box
-      { box_data_date_box = new Fl_Box(480, 30, 141, 19);
-        box_data_date_box->box(FL_FLAT_BOX);
-        box_data_date_box->color(FL_BACKGROUND2_COLOR);
-        box_data_date_box->labeltype(FL_NO_LABEL);
-        box_data_date_box->labelfont(1);
-        box_data_date_box->labelsize(12);
-      } // Fl_Box* box_data_date_box
-      OrderNumber->end();
-    } // Fl_Group* OrderNumber
-    { box_to = new Fl_Box(336, 55, 286, 85);
-      box_to->box(FL_BORDER_FRAME);
-      box_to->color(FL_DARK3);
-      box_to->labelfont(1);
-      box_to->labelsize(16);
-      box_to->align((FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE));
-    } // Fl_Box* box_to
-    { orderLines = new Fl_Group(16, 148, 606, 433);
-      orderLines->box(FL_FLAT_BOX);
-      orderLines->color(FL_DARK3);
-      orderLines->labeltype(FL_NO_LABEL);
-      { header_lines_code_box = new Fl_Box(17, 149, 46, 20, _tr("CODE"));
-        header_lines_code_box->box(FL_FLAT_BOX);
-        header_lines_code_box->color(FL_DARK1);
-        header_lines_code_box->labelfont(1);
-        header_lines_code_box->labelsize(10);
-      } // Fl_Box* header_lines_code_box
-      { header_lines_description_box = new Fl_Box(64, 149, 300, 20, _tr("DESCRIPTION"));
-        header_lines_description_box->box(FL_FLAT_BOX);
-        header_lines_description_box->color(FL_DARK1);
-        header_lines_description_box->labelfont(1);
-        header_lines_description_box->labelsize(10);
-      } // Fl_Box* header_lines_description_box
-      { header_lines_quantity_box = new Fl_Box(365, 149, 40, 20, _tr("QTY."));
-        header_lines_quantity_box->box(FL_FLAT_BOX);
-        header_lines_quantity_box->color(FL_DARK1);
-        header_lines_quantity_box->labelfont(1);
-        header_lines_quantity_box->labelsize(10);
-      } // Fl_Box* header_lines_quantity_box
-      { header_lines_price_box = new Fl_Box(406, 149, 60, 20, _tr("PRICE"));
-        header_lines_price_box->box(FL_FLAT_BOX);
-        header_lines_price_box->color(FL_DARK1);
-        header_lines_price_box->labelfont(1);
-        header_lines_price_box->labelsize(10);
-      } // Fl_Box* header_lines_price_box
-      { header_lines_discount_box = new Fl_Box(467, 149, 30, 20, _tr("DISC. %"));
-        header_lines_discount_box->box(FL_FLAT_BOX);
-        header_lines_discount_box->color(FL_DARK1);
-        header_lines_discount_box->labelfont(1);
-        header_lines_discount_box->labelsize(8);
-        header_lines_discount_box->align((FL_ALIGN_WRAP));
-      } // Fl_Box* header_lines_discount_box
-      { header_lines_sales_tax1_box = new Fl_Box(498, 149, 30, 20, _tr("S.T. I %"));
-        header_lines_sales_tax1_box->box(FL_FLAT_BOX);
-        header_lines_sales_tax1_box->color(FL_DARK1);
-        header_lines_sales_tax1_box->labelfont(1);
-        header_lines_sales_tax1_box->labelsize(8);
-        header_lines_sales_tax1_box->align((FL_ALIGN_WRAP));
-      } // Fl_Box* header_lines_sales_tax1_box
-      { header_lines_sales_tax2_box = new Fl_Box(529, 149, 30, 20, _tr("S.T. II %"));
-        header_lines_sales_tax2_box->box(FL_FLAT_BOX);
-        header_lines_sales_tax2_box->color(FL_DARK1);
-        header_lines_sales_tax2_box->labelfont(1);
-        header_lines_sales_tax2_box->labelsize(8);
-        header_lines_sales_tax2_box->align((FL_ALIGN_WRAP));
-      } // Fl_Box* header_lines_sales_tax2_box
-      { header_lines_subtotal_box = new Fl_Box(560, 149, 61, 20, _tr("SUBTOTAL"));
-        header_lines_subtotal_box->box(FL_FLAT_BOX);
-        header_lines_subtotal_box->color(FL_DARK1);
-        header_lines_subtotal_box->labelfont(1);
-        header_lines_subtotal_box->labelsize(10);
-      } // Fl_Box* header_lines_subtotal_box
-      { designLinesGroup = new Fl_Group(17, 170, 604, 410);
-        designLinesGroup->labeltype(FL_NO_LABEL);
-        { data_lines_code_box = new Fl_Box(17, 170, 46, 410);
-          data_lines_code_box->box(FL_FLAT_BOX);
-          data_lines_code_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_code_box->labeltype(FL_NO_LABEL);
-          data_lines_code_box->labelfont(1);
-          data_lines_code_box->labelsize(10);
-        } // Fl_Box* data_lines_code_box
-        { data_lines_description_box = new Fl_Box(64, 170, 300, 410);
-          data_lines_description_box->box(FL_FLAT_BOX);
-          data_lines_description_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_description_box->labeltype(FL_NO_LABEL);
-          data_lines_description_box->labelfont(1);
-          data_lines_description_box->labelsize(10);
-        } // Fl_Box* data_lines_description_box
-        { data_lines_quantity_box = new Fl_Box(365, 170, 40, 410);
-          data_lines_quantity_box->box(FL_FLAT_BOX);
-          data_lines_quantity_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_quantity_box->labeltype(FL_NO_LABEL);
-          data_lines_quantity_box->labelfont(1);
-          data_lines_quantity_box->labelsize(10);
-        } // Fl_Box* data_lines_quantity_box
-        { data_tlines_price_box = new Fl_Box(406, 170, 60, 410);
-          data_tlines_price_box->box(FL_FLAT_BOX);
-          data_tlines_price_box->color(FL_BACKGROUND2_COLOR);
-          data_tlines_price_box->labeltype(FL_NO_LABEL);
-          data_tlines_price_box->labelfont(1);
-          data_tlines_price_box->labelsize(10);
-        } // Fl_Box* data_tlines_price_box
-        { data_lines_discount_box = new Fl_Box(467, 170, 30, 410);
-          data_lines_discount_box->box(FL_FLAT_BOX);
-          data_lines_discount_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_discount_box->labeltype(FL_NO_LABEL);
-          data_lines_discount_box->labelfont(1);
-          data_lines_discount_box->labelsize(10);
-        } // Fl_Box* data_lines_discount_box
-        { data_lines_sales_tax1_box = new Fl_Box(498, 170, 30, 410);
-          data_lines_sales_tax1_box->box(FL_FLAT_BOX);
-          data_lines_sales_tax1_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_sales_tax1_box->labeltype(FL_NO_LABEL);
-          data_lines_sales_tax1_box->labelfont(1);
-          data_lines_sales_tax1_box->labelsize(10);
-        } // Fl_Box* data_lines_sales_tax1_box
-        { data_lines_sales_tax2_box = new Fl_Box(529, 170, 30, 410);
-          data_lines_sales_tax2_box->box(FL_FLAT_BOX);
-          data_lines_sales_tax2_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_sales_tax2_box->labeltype(FL_NO_LABEL);
-          data_lines_sales_tax2_box->labelfont(1);
-          data_lines_sales_tax2_box->labelsize(10);
-        } // Fl_Box* data_lines_sales_tax2_box
-        { data_lines_subtotal_box = new Fl_Box(560, 170, 61, 410);
-          data_lines_subtotal_box->box(FL_FLAT_BOX);
-          data_lines_subtotal_box->color(FL_BACKGROUND2_COLOR);
-          data_lines_subtotal_box->labeltype(FL_NO_LABEL);
-          data_lines_subtotal_box->labelfont(1);
-          data_lines_subtotal_box->labelsize(10);
-        } // Fl_Box* data_lines_subtotal_box
-        designLinesGroup->end();
-        Fl_Group.current()->resizable(designLinesGroup);
-      } // Fl_Group* designLinesGroup
-      orderLines->end();
-      Fl_Group.current()->resizable(orderLines);
-    } // Fl_Group* orderLines
-    { orderTotals = new Fl_Group(16, 585, 606, 46);
-      orderTotals->box(FL_FLAT_BOX);
-      orderTotals->color(FL_DARK3);
-      orderTotals->labeltype(FL_NO_LABEL);
-      { header_PAGENO_box = new Fl_Box(17, 586, 65, 20, _tr("PAGE"));
-        header_PAGENO_box->box(FL_FLAT_BOX);
-        header_PAGENO_box->color(FL_DARK1);
-        header_PAGENO_box->labelfont(1);
-        header_PAGENO_box->labelsize(12);
-      } // Fl_Box* header_PAGENO_box
-      { box_data_pageno_box = new Fl_Box(17, 607, 65, 23);
-        box_data_pageno_box->box(FL_FLAT_BOX);
-        box_data_pageno_box->color(FL_BACKGROUND2_COLOR);
-        box_data_pageno_box->labeltype(FL_NO_LABEL);
-        box_data_pageno_box->labelfont(1);
-        box_data_pageno_box->labelsize(12);
-      } // Fl_Box* box_data_pageno_box
-      { header_totals_subtotal_box = new Fl_Box(83, 586, 150, 20, _tr("SUBTOTAL"));
-        header_totals_subtotal_box->box(FL_FLAT_BOX);
-        header_totals_subtotal_box->color(FL_DARK1);
-        header_totals_subtotal_box->labelfont(1);
-        header_totals_subtotal_box->labelsize(12);
-      } // Fl_Box* header_totals_subtotal_box
-      { data_totals_subtotal_box = new Fl_Box(83, 607, 150, 23);
-        data_totals_subtotal_box->box(FL_FLAT_BOX);
-        data_totals_subtotal_box->color(FL_BACKGROUND2_COLOR);
-        data_totals_subtotal_box->labeltype(FL_NO_LABEL);
-        data_totals_subtotal_box->labelfont(1);
-        data_totals_subtotal_box->labelsize(12);
-      } // Fl_Box* data_totals_subtotal_box
-      { header_totals_total_sales_tax1_box = new Fl_Box(234, 586, 120, 20, _tr("Sales Tax I"));
-        header_totals_total_sales_tax1_box->box(FL_FLAT_BOX);
-        header_totals_total_sales_tax1_box->color(FL_DARK1);
-        header_totals_total_sales_tax1_box->labelfont(1);
-        header_totals_total_sales_tax1_box->labelsize(12);
-      } // Fl_Box* header_totals_total_sales_tax1_box
-      { data_totals_total_sales_tax1_box = new Fl_Box(234, 607, 120, 23);
-        data_totals_total_sales_tax1_box->box(FL_FLAT_BOX);
-        data_totals_total_sales_tax1_box->color(FL_BACKGROUND2_COLOR);
-        data_totals_total_sales_tax1_box->labeltype(FL_NO_LABEL);
-        data_totals_total_sales_tax1_box->labelfont(1);
-        data_totals_total_sales_tax1_box->labelsize(12);
-      } // Fl_Box* data_totals_total_sales_tax1_box
-      { header_totals_total_sales_tax2_box = new Fl_Box(355, 586, 115, 20, _tr("Sales Tax II"));
-        header_totals_total_sales_tax2_box->box(FL_FLAT_BOX);
-        header_totals_total_sales_tax2_box->color(FL_DARK1);
-        header_totals_total_sales_tax2_box->labelfont(1);
-        header_totals_total_sales_tax2_box->labelsize(12);
-      } // Fl_Box* header_totals_total_sales_tax2_box
-      { data_totals_total_sales_tax2_box = new Fl_Box(355, 607, 115, 23);
-        data_totals_total_sales_tax2_box->box(FL_FLAT_BOX);
-        data_totals_total_sales_tax2_box->color(FL_BACKGROUND2_COLOR);
-        data_totals_total_sales_tax2_box->labeltype(FL_NO_LABEL);
-        data_totals_total_sales_tax2_box->labelfont(1);
-        data_totals_total_sales_tax2_box->labelsize(12);
-      } // Fl_Box* data_totals_total_sales_tax2_box
-      { header_totals_total_box = new Fl_Box(471, 586, 150, 20, _tr("TOTAL"));
-        header_totals_total_box->box(FL_FLAT_BOX);
-        header_totals_total_box->color(FL_DARK1);
-        header_totals_total_box->labelfont(1);
-        header_totals_total_box->labelsize(12);
-      } // Fl_Box* header_totals_total_box
-      { data_totals_total_box = new Fl_Box(471, 607, 150, 23);
-        data_totals_total_box->box(FL_FLAT_BOX);
-        data_totals_total_box->color(FL_BACKGROUND2_COLOR);
-        data_totals_total_box->labeltype(FL_NO_LABEL);
-        data_totals_total_box->labelfont(1);
-        data_totals_total_box->labelsize(12);
-      } // Fl_Box* data_totals_total_box
-      orderTotals->end();
-    } // Fl_Group* orderTotals
-    { notes_box = new Fl_Box_ClearLabel(17, 638, 606, 37, _tr(@"FLTK is provided under the terms of the GNU Library Public License, Version 2\
- with exceptions that allow for static linking."));
-      notes_box->box(FL_NO_BOX);
-      notes_box->color(FL_BACKGROUND_COLOR);
-      notes_box->selection_color(FL_BACKGROUND_COLOR);
-      notes_box->labeltype(FL_NORMAL_LABEL);
-      notes_box->labelfont(2);
-      notes_box->labelsize(9);
-      notes_box->labelcolor(FL_FOREGROUND_COLOR);
-      notes_box->align((FL_ALIGN_WRAP|FL_ALIGN_INSIDE));
-      notes_box->when(FL_WHEN_RELEASE);
-    } // Fl_Box_ClearLabel* notes_box
-    pageDesignGroup->end();
-  } // Fl_Group* pageDesignGroup
-  { printDataGroup = new Fl_Group(3, 0, 628, 637);
-    printDataGroup->labeltype(FL_NO_LABEL);
-    { orderTypeBox = new Fl_Box(338, 10, 139, 20);
-      orderTypeBox->labelfont(1);
-      orderTypeBox->labelsize(12);
-    } // Fl_Box* orderTypeBox
-    { numberBox = new Fl_Box_ClearLabel(338, 33, 139, 16);
-      numberBox->box(FL_NO_BOX);
-      numberBox->color(FL_BACKGROUND_COLOR);
-      numberBox->selection_color(FL_BACKGROUND_COLOR);
-      numberBox->labeltype(FL_NORMAL_LABEL);
-      numberBox->labelfont(5);
-      numberBox->labelsize(15);
-      numberBox->labelcolor(FL_FOREGROUND_COLOR);
-      numberBox->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-      numberBox->when(FL_WHEN_RELEASE);
-    } // Fl_Box_ClearLabel* numberBox
-    { dateBox = new Fl_Box_ClearLabel(484, 32, 133, 16);
-      dateBox->box(FL_NO_BOX);
-      dateBox->color(FL_BACKGROUND_COLOR);
-      dateBox->selection_color(FL_BACKGROUND_COLOR);
-      dateBox->labeltype(FL_NORMAL_LABEL);
-      dateBox->labelfont(5);
-      dateBox->labelsize(15);
-      dateBox->labelcolor(FL_FOREGROUND_COLOR);
-      dateBox->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-      dateBox->when(FL_WHEN_RELEASE);
-    } // Fl_Box_ClearLabel* dateBox
-    { entityBox = new Fl_Box_ClearLabel(338, 57, 282, 82);
-      entityBox->box(FL_NO_BOX);
-      entityBox->color(FL_BACKGROUND_COLOR);
-      entityBox->selection_color(FL_BACKGROUND_COLOR);
-      entityBox->labeltype(FL_NORMAL_LABEL);
-      entityBox->labelfont(0);
-      entityBox->labelsize(12);
-      entityBox->labelcolor(FL_FOREGROUND_COLOR);
-      entityBox->align((69|FL_ALIGN_INSIDE));
-      entityBox->when(FL_WHEN_RELEASE);
-    } // Fl_Box_ClearLabel* entityBox
-    { dataLinesGroup = new Fl_Group(16, 169, 605, 412);
-      dataLinesGroup->labeltype(FL_NO_LABEL);
-      dataLinesGroup->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-      { codeBox = new Fl_Box_ClearLabel(16, 174, 46, 404);
-        codeBox->box(FL_NO_BOX);
-        codeBox->color(FL_BACKGROUND_COLOR);
-        codeBox->selection_color(FL_BACKGROUND_COLOR);
-        codeBox->labeltype(FL_NORMAL_LABEL);
-        codeBox->labelfont(0);
-        codeBox->labelsize(11);
-        codeBox->labelcolor(FL_FOREGROUND_COLOR);
-        codeBox->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        codeBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* codeBox
-      { descriptionBox = new Fl_Box_ClearLabel(64, 174, 300, 404);
-        descriptionBox->box(FL_NO_BOX);
-        descriptionBox->color(FL_BACKGROUND_COLOR);
-        descriptionBox->selection_color(FL_BACKGROUND_COLOR);
-        descriptionBox->labeltype(FL_NORMAL_LABEL);
-        descriptionBox->labelfont(0);
-        descriptionBox->labelsize(11);
-        descriptionBox->labelcolor(FL_FOREGROUND_COLOR);
-        descriptionBox->align((69|FL_ALIGN_INSIDE));
-        descriptionBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* descriptionBox
-      { quantityBox = new Fl_Box_ClearLabel(365, 174, 40, 404);
-        quantityBox->box(FL_NO_BOX);
-        quantityBox->color(FL_BACKGROUND_COLOR);
-        quantityBox->selection_color(FL_BACKGROUND_COLOR);
-        quantityBox->labeltype(FL_NORMAL_LABEL);
-        quantityBox->labelfont(0);
-        quantityBox->labelsize(11);
-        quantityBox->labelcolor(FL_FOREGROUND_COLOR);
-        quantityBox->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        quantityBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* quantityBox
-      { priceBox = new Fl_Box_ClearLabel(406, 174, 60, 404);
-        priceBox->box(FL_NO_BOX);
-        priceBox->color(FL_BACKGROUND_COLOR);
-        priceBox->selection_color(FL_BACKGROUND_COLOR);
-        priceBox->labeltype(FL_NORMAL_LABEL);
-        priceBox->labelfont(0);
-        priceBox->labelsize(11);
-        priceBox->labelcolor(FL_FOREGROUND_COLOR);
-        priceBox->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        priceBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* priceBox
-      { discountBox = new Fl_Box_ClearLabel(467, 174, 30, 404);
-        discountBox->box(FL_NO_BOX);
-        discountBox->color(FL_BACKGROUND_COLOR);
-        discountBox->selection_color(FL_BACKGROUND_COLOR);
-        discountBox->labeltype(FL_NORMAL_LABEL);
-        discountBox->labelfont(0);
-        discountBox->labelsize(11);
-        discountBox->labelcolor(FL_FOREGROUND_COLOR);
-        discountBox->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        discountBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* discountBox
-      { sales_tax1Box = new Fl_Box_ClearLabel(498, 174, 30, 404);
-        sales_tax1Box->box(FL_NO_BOX);
-        sales_tax1Box->color(FL_BACKGROUND_COLOR);
-        sales_tax1Box->selection_color(FL_BACKGROUND_COLOR);
-        sales_tax1Box->labeltype(FL_NORMAL_LABEL);
-        sales_tax1Box->labelfont(0);
-        sales_tax1Box->labelsize(11);
-        sales_tax1Box->labelcolor(FL_FOREGROUND_COLOR);
-        sales_tax1Box->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        sales_tax1Box->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* sales_tax1Box
-      { sales_tax2Box = new Fl_Box_ClearLabel(529, 174, 30, 404);
-        sales_tax2Box->box(FL_NO_BOX);
-        sales_tax2Box->color(FL_BACKGROUND_COLOR);
-        sales_tax2Box->selection_color(FL_BACKGROUND_COLOR);
-        sales_tax2Box->labeltype(FL_NORMAL_LABEL);
-        sales_tax2Box->labelfont(0);
-        sales_tax2Box->labelsize(11);
-        sales_tax2Box->labelcolor(FL_FOREGROUND_COLOR);
-        sales_tax2Box->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        sales_tax2Box->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* sales_tax2Box
-      { lineTotalBox = new Fl_Box_ClearLabel(560, 174, 61, 404);
-        lineTotalBox->box(FL_NO_BOX);
-        lineTotalBox->color(FL_BACKGROUND_COLOR);
-        lineTotalBox->selection_color(FL_BACKGROUND_COLOR);
-        lineTotalBox->labeltype(FL_NORMAL_LABEL);
-        lineTotalBox->labelfont(0);
-        lineTotalBox->labelsize(11);
-        lineTotalBox->labelcolor(FL_FOREGROUND_COLOR);
-        lineTotalBox->align((FL_ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE));
-        lineTotalBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* lineTotalBox
-      dataLinesGroup->end();
-      Fl_Group.current()->resizable(dataLinesGroup);
-    } // Fl_Group* dataLinesGroup
-    { bottomTotals = new Fl_Group(16, 585, 605, 48);
-      bottomTotals->labeltype(FL_NO_LABEL);
-      { orderPageBox = new Fl_Box_ClearLabel(16, 608, 65, 25);
-        orderPageBox->box(FL_NO_BOX);
-        orderPageBox->color(FL_BACKGROUND_COLOR);
-        orderPageBox->selection_color(FL_BACKGROUND_COLOR);
-        orderPageBox->labeltype(FL_NORMAL_LABEL);
-        orderPageBox->labelfont(5);
-        orderPageBox->labelsize(15);
-        orderPageBox->labelcolor(FL_FOREGROUND_COLOR);
-        orderPageBox->align((FL_ALIGN_CENTER));
-        orderPageBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* orderPageBox
-      { fisrtTotalBox = new Fl_Box_ClearLabel(83, 608, 150, 25);
-        fisrtTotalBox->box(FL_NO_BOX);
-        fisrtTotalBox->color(FL_BACKGROUND_COLOR);
-        fisrtTotalBox->selection_color(FL_BACKGROUND_COLOR);
-        fisrtTotalBox->labeltype(FL_NORMAL_LABEL);
-        fisrtTotalBox->labelfont(5);
-        fisrtTotalBox->labelsize(15);
-        fisrtTotalBox->labelcolor(FL_FOREGROUND_COLOR);
-        fisrtTotalBox->align((FL_ALIGN_CENTER));
-        fisrtTotalBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* fisrtTotalBox
-      { sales_tax1AmountBox = new Fl_Box_ClearLabel(234, 608, 120, 25);
-        sales_tax1AmountBox->box(FL_NO_BOX);
-        sales_tax1AmountBox->color(FL_BACKGROUND_COLOR);
-        sales_tax1AmountBox->selection_color(FL_BACKGROUND_COLOR);
-        sales_tax1AmountBox->labeltype(FL_NORMAL_LABEL);
-        sales_tax1AmountBox->labelfont(5);
-        sales_tax1AmountBox->labelsize(15);
-        sales_tax1AmountBox->labelcolor(FL_FOREGROUND_COLOR);
-        sales_tax1AmountBox->align((FL_ALIGN_CENTER));
-        sales_tax1AmountBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* sales_tax1AmountBox
-      { sales_tax2AmountBox = new Fl_Box_ClearLabel(355, 608, 115, 25);
-        sales_tax2AmountBox->box(FL_NO_BOX);
-        sales_tax2AmountBox->color(FL_BACKGROUND_COLOR);
-        sales_tax2AmountBox->selection_color(FL_BACKGROUND_COLOR);
-        sales_tax2AmountBox->labeltype(FL_NORMAL_LABEL);
-        sales_tax2AmountBox->labelfont(5);
-        sales_tax2AmountBox->labelsize(15);
-        sales_tax2AmountBox->labelcolor(FL_FOREGROUND_COLOR);
-        sales_tax2AmountBox->align((FL_ALIGN_CENTER));
-        sales_tax2AmountBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* sales_tax2AmountBox
-      { totalBox = new Fl_Box_ClearLabel(500, 608, 121, 25);
-        totalBox->box(FL_NO_BOX);
-        totalBox->color(FL_BACKGROUND_COLOR);
-        totalBox->selection_color(FL_BACKGROUND_COLOR);
-        totalBox->labeltype(FL_NORMAL_LABEL);
-        totalBox->labelfont(5);
-        totalBox->labelsize(15);
-        totalBox->labelcolor(FL_FOREGROUND_COLOR);
-        totalBox->align((FL_ALIGN_CENTER));
-        totalBox->when(FL_WHEN_RELEASE);
-      } // Fl_Box_ClearLabel* totalBox
-      bottomTotals->end();
-    } // Fl_Group* bottomTotals
-    printDataGroup->end();
-    Fl_Group.current()->resizable(printDataGroup);
-  } // Fl_Group* printDataGroup
-  page->end();
-} // Fl_Group* page
-end();
-resizable(this);
-}
-}

+ 0 - 82
SquiLu-ourbiz/list-search-gui.fl

@@ -1,82 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"} {public global
-} 
-
-widget_class ListSearchWindow {
-  label {List Search} open
-  xywh {132 118 800 560} type Double labelsize 16 resizable
-  class List_Search_Base_Window visible
-} {
-  Fl_Group topGroup {open
-    xywh {0 0 800 35} labelsize 16
-  } {
-    Fl_Input group_filter {
-      dirty_name group_filter selected
-      xywh {5 5 675 25} labeltype NO_LABEL labelsize 16 textsize 16
-      class Flu_Combo_List
-    }
-    Fl_Input query_limit {
-      xywh {690 6 60 25} type Int labeltype NO_LABEL labelsize 16 textsize 16
-      code0 {o->value("50");}
-    }
-    Fl_Button btnNotes {
-      label {?}
-      xywh {760 6 35 25} labelsize 16
-    }
-  }
-  Fl_Group middleGroup {open
-    xywh {0 41 800 409} labelsize 16 resizable
-  } {
-    Fl_Browser grid {
-      dirty_name grid
-      xywh {5 41 790 389} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
-      class Fl_Data_Table
-    }
-  }
-  Fl_Group bottomGroup {open
-    xywh {4 440 790 115} box ENGRAVED_BOX color 246 labelsize 16
-  } {
-    Fl_Pack pack_search_options {open
-      xywh {14 450 320 25} type HORIZONTAL labelsize 16
-      code0 {o->spacing(10);}
-    } {}
-    Fl_Input search_str {
-      label {@search}
-      dirty_name search_str
-      xywh {35 485 299 25} labelsize 16 when 8 textsize 16
-    }
-    Fl_Button btnSearch {
-      label Search
-      xywh {345 485 100 25} labelsize 16
-    }
-    Fl_Button btnSelect {
-      label Select
-      xywh {14 520 100 25} labelsize 16
-    }
-    Fl_Button btnUpdate {
-      label Update
-      xywh {124 520 100 25} labelsize 16
-    }
-    Fl_Button btnInsert {
-      label Insert
-      xywh {234 520 100 25} labelsize 16
-    }
-    Fl_Button btnThumbImage {
-      xywh {663 445 125 105} box NO_BOX align 80
-      class Fl_Image_Box
-    }
-    Fl_Box {} {
-      xywh {650 445 5 105} labeltype NO_LABEL labelsize 16 align 80 resizable
-    }
-    Fl_Pack pack_search_options2 {open
-      xywh {345 520 300 25} type HORIZONTAL labelsize 16
-      code0 {o->spacing(10);}
-    } {}
-  }
-} 

+ 0 - 136
SquiLu-ourbiz/list-search-window.nut

@@ -1,136 +0,0 @@
-class ListSearch extends MyBaseWindow {
-
-  // Declaration of class members
-  topGroup = null;
-  group_filter = null;
-  query_limit = null;
-  btnNotes = null;
-  middleGroup = null;
-  grid = null;
-  bottomGroup = null;
-  pack_search_options = null;
-  search_str = null;
-  btnSearch = null;
-  btnSelect = null;
-  btnUpdate = null;
-  btnInsert = null;
-  btnThumbImage = null;
-  pack_search_options2 = null;
-  
-  constructor(px=132, py=118, pw=800, ph=560, pl=_tr("List Search")){
-    base.constructor(px, py, pw, ph, pl);
-    // Create member functions and widgets
-    {
-      local o = Fl_Group(0, 0, 800, 35);
-      topGroup = o;
-      o.labelsize(16);
-      {
-        {
-          local o = Flu_Combo_List(5, 5, 675, 25);
-          group_filter = o;
-          o.textsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Int_Input(690, 6, 60, 25);
-          query_limit = o;
-          o.textsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.labelsize(16);
-          o->value("50");
-        }
-        {
-          local o = Fl_Button(760, 6, 35, 25, _tr("?"));
-          btnNotes = o;
-          o.labelsize(16);
-        }
-      }
-      o.end();
-    }
-    {
-      local o = Fl_Group(0, 41, 800, 409);
-      middleGroup = o;
-      o.labelsize(16);
-      {
-        {
-          local o = Fl_Data_Table(5, 41, 790, 389);
-          grid = o;
-          o.textsize(16);
-          o.labeltype(FL_NO_LABEL);
-          o.labelsize(16);
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-      }
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-    {
-      local o = Fl_Group(4, 440, 790, 115);
-      bottomGroup = o;
-      o.box(FL_ENGRAVED_BOX);
-      o.labelsize(16);
-      o.color(246);
-      {
-        {
-          local o = Fl_Pack(14, 450, 320, 25);
-          pack_search_options = o;
-          o.type(1);
-          o.labelsize(16);
-          o->spacing(10);
-          o.end();
-        }
-        {
-          local o = Fl_Input(35, 485, 299, 25, _tr("@search"));
-          search_str = o;
-          o.textsize(16);
-          o.when(8);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(345, 485, 100, 25, _tr("Search"));
-          btnSearch = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(14, 520, 100, 25, _tr("Select"));
-          btnSelect = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(124, 520, 100, 25, _tr("Update"));
-          btnUpdate = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(234, 520, 100, 25, _tr("Insert"));
-          btnInsert = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Image_Box(663, 445, 125, 105);
-          btnThumbImage = o;
-          o.box(FL_NO_BOX);
-          o.align(80);
-        }
-        {
-          local o = Fl_Box(650, 445, 5, 105);
-          o.align(80);
-          o.labeltype(FL_NO_LABEL);
-          o.labelsize(16);
-          Fl_Group.current().resizable(o);
-        }
-        {
-          local o = Fl_Pack(345, 520, 300, 25);
-          pack_search_options2 = o;
-          o.type(1);
-          o.labelsize(16);
-          o->spacing(10);
-          o.end();
-        }
-      }
-      o.end();
-    }
-  }
-}

+ 0 - 343
SquiLu-ourbiz/main-window.nut

@@ -1,343 +0,0 @@
-class MainWindow extends MyBaseWindow {
-	tabs=null;
-	tabSales=null;
-	btnOrdersSales=null;
-	btnPaymentsSales=null;
-	btnEntitiesSales=null;
-	btnProductsSales=null;
-	tabBuys=null;
-	btnOrdersBuys=null;
-	btnPaymentsBuys=null;
-	btnProductsBuys=null;
-	btnEntitiesBuys=null;
-	tabAll=null;
-	btnOrders=null;
-	btnPayments=null;
-	btnEntities=null;
-	btnProducts=null;
-	tabGL=null;
-	btnGLGroups=null;
-	btnGLChart=null;
-	btnGLTransactions=null;
-	tabConfig=null;
-	config_scroll=null;
-	config_pack=null;
-	btnOrdersSum=null;
-	btnSalesTaxRates=null;
-	btnOrderTypes=null;
-	btnPaymentTypes=null;
-	btnMeasureUnits=null;
-	btnWarrantyTypes=null;
-	btnImages=null;
-	btnProductGroups=null;
-	btnEntityGroups=null;
-	btnConfig=null;
-	btnOpenDB=null;
-	btnTranslations=null;
-	btnAppUsers=null;
-	btnAskForPrinter=null;
-	btnWebServer=null;
-
-constructor(px, py, pw, ph, pl) {
-	base.constructor(px, py, pw, ph, pl);
-	begin();
-	this->box(FL_FLAT_BOX);
-	this->color(FL_BACKGROUND_COLOR);
-	this->selection_color(FL_BACKGROUND_COLOR);
-	this->labeltype(FL_NO_LABEL);
-	this->labelfont(0);
-	this->labelsize(16);
-	this->labelcolor(FL_FOREGROUND_COLOR);
-	this->align(FL_ALIGN_TOP);
-	this->when(FL_WHEN_RELEASE);
-	reset_all_child_windows_ptr();
-	{ tabs = new Fl_Tabs(5, 5, 320, 310);
-	  tabs->selection_color(4);
-	  tabs->labelsize(16);
-	  tabs->labelcolor(FL_BACKGROUND2_COLOR);
-	  { tabSales = new Fl_Group(5, 35, 320, 280, _tr("Sales"));
-	    tabSales->color(127);
-	    tabSales->labelsize(16);
-	    { btnOrdersSales = new My_Fl_Return_Button(30, 50, 275, 55, _tr("Sales"));
-	      btnOrdersSales->labeltype(FL_SHADOW_LABEL);
-	      btnOrdersSales->labelfont(3);
-	      btnOrdersSales->labelsize(34);
-	      btnOrdersSales->labelcolor(FL_INACTIVE_COLOR);
-	      btnOrdersSales->callback(cb_btnOrdersSales);
-	      btnOrdersSales->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
-	    } // My_Fl_Return_Button* btnOrdersSales
-	    { btnPaymentsSales = new My_Fl_Return_Button(30, 116, 275, 55, _tr("Payments"));
-	      btnPaymentsSales->labeltype(FL_SHADOW_LABEL);
-	      btnPaymentsSales->labelfont(3);
-	      btnPaymentsSales->labelsize(34);
-	      btnPaymentsSales->labelcolor(FL_INACTIVE_COLOR);
-	      btnPaymentsSales->callback(cb_btnPaymentsSales);
-	    } // My_Fl_Return_Button* btnPaymentsSales
-	    { btnEntitiesSales = new My_Fl_Return_Button(30, 183, 275, 55, _tr("Customers"));
-	      btnEntitiesSales->labeltype(FL_SHADOW_LABEL);
-	      btnEntitiesSales->labelfont(3);
-	      btnEntitiesSales->labelsize(34);
-	      btnEntitiesSales->labelcolor(FL_INACTIVE_COLOR);
-	      btnEntitiesSales->callback(cb_btnEntitiesSales);
-	    } // My_Fl_Return_Button* btnEntitiesSales
-	    { btnProductsSales = new My_Fl_Return_Button(30, 250, 275, 55, _tr("Products"));
-	      btnProductsSales->labeltype(FL_SHADOW_LABEL);
-	      btnProductsSales->labelfont(3);
-	      btnProductsSales->labelsize(34);
-	      btnProductsSales->labelcolor(FL_INACTIVE_COLOR);
-	      btnProductsSales->callback(cb_btnProductsSales);
-	    } // My_Fl_Return_Button* btnProductsSales
-	    tabSales->end();
-	  } // Fl_Group* tabSales
-	  { tabBuys = new Fl_Group(5, 35, 320, 280, _tr("Buys"));
-	    tabBuys->color(174);
-	    tabBuys->labelsize(16);
-	    tabBuys->hide();
-	    { btnOrdersBuys = new My_Fl_Return_Button(30, 50, 275, 55, _tr("Buys"));
-	      btnOrdersBuys->labeltype(FL_SHADOW_LABEL);
-	      btnOrdersBuys->labelfont(3);
-	      btnOrdersBuys->labelsize(34);
-	      btnOrdersBuys->labelcolor(FL_INACTIVE_COLOR);
-	      btnOrdersBuys->callback(cb_btnOrdersBuys);
-	      btnOrdersBuys->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-	    } // My_Fl_Return_Button* btnOrdersBuys
-	    { btnPaymentsBuys = new My_Fl_Return_Button(30, 115, 275, 55, _tr("Payments"));
-	      btnPaymentsBuys->labeltype(FL_SHADOW_LABEL);
-	      btnPaymentsBuys->labelfont(3);
-	      btnPaymentsBuys->labelsize(34);
-	      btnPaymentsBuys->labelcolor(FL_INACTIVE_COLOR);
-	      btnPaymentsBuys->callback(cb_btnPaymentsBuys);
-	    } // My_Fl_Return_Button* btnPaymentsBuys
-	    { btnProductsBuys = new My_Fl_Return_Button(30, 250, 275, 55, _tr("Products"));
-	      btnProductsBuys->labeltype(FL_SHADOW_LABEL);
-	      btnProductsBuys->labelfont(3);
-	      btnProductsBuys->labelsize(34);
-	      btnProductsBuys->labelcolor(FL_INACTIVE_COLOR);
-	      btnProductsBuys->callback(cb_btnProductsBuys);
-	    } // My_Fl_Return_Button* btnProductsBuys
-	    { btnEntitiesBuys = new My_Fl_Return_Button(30, 183, 275, 55, _tr("Suppliers"));
-	      btnEntitiesBuys->labeltype(FL_SHADOW_LABEL);
-	      btnEntitiesBuys->labelfont(3);
-	      btnEntitiesBuys->labelsize(34);
-	      btnEntitiesBuys->labelcolor(FL_INACTIVE_COLOR);
-	      btnEntitiesBuys->callback(cb_btnEntitiesBuys);
-	    } // My_Fl_Return_Button* btnEntitiesBuys
-	    tabBuys->end();
-	  } // Fl_Group* tabBuys
-	  { tabAll = new Fl_Group(5, 35, 320, 280, _tr("All"));
-	    tabAll->color(239);
-	    tabAll->labelsize(16);
-	    tabAll->hide();
-	    { btnOrders = new My_Fl_Return_Button(30, 50, 275, 55, _tr("Orders"));
-	      btnOrders->labeltype(FL_SHADOW_LABEL);
-	      btnOrders->labelfont(3);
-	      btnOrders->labelsize(34);
-	      btnOrders->labelcolor(FL_INACTIVE_COLOR);
-	      btnOrders->callback(cb_btnOrders);
-	      btnOrders->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-	    } // My_Fl_Return_Button* btnOrders
-	    { btnPayments = new My_Fl_Return_Button(30, 116, 275, 55, _tr("Payments"));
-	      btnPayments->labeltype(FL_SHADOW_LABEL);
-	      btnPayments->labelfont(3);
-	      btnPayments->labelsize(34);
-	      btnPayments->labelcolor(FL_INACTIVE_COLOR);
-	      btnPayments->callback(cb_btnPayments);
-	    } // My_Fl_Return_Button* btnPayments
-	    { btnEntities = new My_Fl_Return_Button(30, 183, 275, 55, _tr("Entities"));
-	      btnEntities->labeltype(FL_SHADOW_LABEL);
-	      btnEntities->labelfont(3);
-	      btnEntities->labelsize(34);
-	      btnEntities->labelcolor(FL_INACTIVE_COLOR);
-	      btnEntities->callback(cb_btnEntities);
-	    } // My_Fl_Return_Button* btnEntities
-	    { btnProducts = new My_Fl_Return_Button(30, 250, 275, 55, _tr("Products"));
-	      btnProducts->labeltype(FL_SHADOW_LABEL);
-	      btnProducts->labelfont(3);
-	      btnProducts->labelsize(34);
-	      btnProducts->labelcolor(FL_INACTIVE_COLOR);
-	      btnProducts->callback(cb_btnProducts);
-	    } // My_Fl_Return_Button* btnProducts
-	    tabAll->end();
-	    Fl_Group.current()->resizable(tabAll);
-	  } // Fl_Group* tabAll
-	  { tabGL = new Fl_Group(5, 35, 320, 280, _tr("GL"));
-	    tabGL->color(132);
-	    tabGL->labelsize(16);
-	    tabGL->hide();
-	    { btnGLGroups = new My_Fl_Return_Button(30, 50, 275, 55, _tr("Groups"));
-	      btnGLGroups->labeltype(FL_SHADOW_LABEL);
-	      btnGLGroups->labelfont(3);
-	      btnGLGroups->labelsize(34);
-	      btnGLGroups->labelcolor(FL_INACTIVE_COLOR);
-	      btnGLGroups->callback(cb_btnGLGroups);
-	      btnGLGroups->align((FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
-	    } // My_Fl_Return_Button* btnGLGroups
-	    { btnGLChart = new My_Fl_Return_Button(30, 115, 275, 55, _tr("Chart"));
-	      btnGLChart->labeltype(FL_SHADOW_LABEL);
-	      btnGLChart->labelfont(3);
-	      btnGLChart->labelsize(34);
-	      btnGLChart->labelcolor(FL_INACTIVE_COLOR);
-	      btnGLChart->callback(cb_btnGLChart);
-	    } // My_Fl_Return_Button* btnGLChart
-	    { btnGLTransactions = new My_Fl_Return_Button(30, 180, 275, 55, _tr("Transactions"));
-	      btnGLTransactions->labeltype(FL_SHADOW_LABEL);
-	      btnGLTransactions->labelfont(3);
-	      btnGLTransactions->labelsize(34);
-	      btnGLTransactions->labelcolor(FL_INACTIVE_COLOR);
-	      btnGLTransactions->callback(cb_btnGLTransactions);
-	    } // My_Fl_Return_Button* btnGLTransactions
-	    tabGL->end();
-	  } // Fl_Group* tabGL
-	  { tabConfig = new Fl_Group(5, 35, 320, 280, _tr("Config"));
-	    tabConfig->labelsize(16);
-	    tabConfig->hide();
-	    { config_scroll = new Fl_Scroll(10, 45, 310, 265);
-	      config_scroll->labelsize(16);
-	      { local o = config_pack = new Fl_Pack(30, 45, 270, 260);
-		config_pack->labelsize(16);
-		{ btnOrdersSum = new My_Fl_Return_Button(65, 55, 64, 30, _tr("Orders Sum"));
-		  btnOrdersSum->labelsize(16);
-		  btnOrdersSum->callback(cb_btnOrdersSum);
-		} // My_Fl_Return_Button* btnOrdersSum
-		{ btnSalesTaxRates = new My_Fl_Return_Button(55, 45, 64, 30, _tr("Sales Tax Rates"));
-		  btnSalesTaxRates->labelsize(16);
-		  btnSalesTaxRates->callback(cb_btnSalesTaxRates);
-		} // My_Fl_Return_Button* btnSalesTaxRates
-		{ btnOrderTypes = new My_Fl_Return_Button(65, 80, 64, 30, _tr("Order Types"));
-		  btnOrderTypes->labelsize(16);
-		  btnOrderTypes->callback(cb_btnOrderTypes);
-		} // My_Fl_Return_Button* btnOrderTypes
-		{ btnPaymentTypes = new My_Fl_Return_Button(105, 148, 64, 30, _tr("Payment Types"));
-		  btnPaymentTypes->labelsize(16);
-		  btnPaymentTypes->callback(cb_btnPaymentTypes);
-		} // My_Fl_Return_Button* btnPaymentTypes
-		{ btnMeasureUnits = new My_Fl_Return_Button(115, 158, 64, 30, _tr("Measure Units"));
-		  btnMeasureUnits->labelsize(16);
-		  btnMeasureUnits->callback(cb_btnMeasureUnits);
-		} // My_Fl_Return_Button* btnMeasureUnits
-		{ btnWarrantyTypes = new My_Fl_Return_Button(125, 168, 64, 30, _tr("Warranty Types"));
-		  btnWarrantyTypes->labelsize(16);
-		  btnWarrantyTypes->callback(cb_btnWarrantyTypes);
-		} // My_Fl_Return_Button* btnWarrantyTypes
-		{ btnImages = new My_Fl_Return_Button(75, 118, 64, 30, _tr("Images"));
-		  btnImages->labelsize(16);
-		  btnImages->callback(cb_btnImages);
-		} // My_Fl_Return_Button* btnImages
-		{ btnProductGroups = new My_Fl_Return_Button(85, 128, 64, 30, _tr("Product Groups"));
-		  btnProductGroups->labelsize(16);
-		  btnProductGroups->callback(cb_btnProductGroups);
-		} // My_Fl_Return_Button* btnProductGroups
-		{ btnEntityGroups = new My_Fl_Return_Button(95, 138, 64, 30, _tr("Entity Groups"));
-		  btnEntityGroups->labelsize(16);
-		  btnEntityGroups->callback(cb_btnEntityGroups);
-		} // My_Fl_Return_Button* btnEntityGroups
-		{ btnConfig = new My_Fl_Return_Button(105, 148, 64, 30, _tr("App Config"));
-		  btnConfig->labelsize(16);
-		  btnConfig->callback(cb_btnConfig);
-		} // My_Fl_Return_Button* btnConfig
-		{ btnOpenDB = new My_Fl_Return_Button(115, 158, 64, 30, _tr("Open Database"));
-		  btnOpenDB->tooltip(_tr("Open a database file"));
-		  btnOpenDB->labelsize(16);
-		  btnOpenDB->callback(cb_btnOpenDB);
-		} // My_Fl_Return_Button* btnOpenDB
-		{ btnTranslations = new My_Fl_Return_Button(115, 158, 64, 30, _tr("Translations"));
-		  btnTranslations->labelsize(16);
-		  btnTranslations->callback(cb_btnTranslations);
-		} // My_Fl_Return_Button* btnTranslations
-		{ btnAppUsers = new My_Fl_Return_Button(75, 65, 64, 30, _tr("App Users"));
-		  btnAppUsers->labelsize(16);
-		  btnAppUsers->callback(cb_btnAppUsers);
-		} // My_Fl_Return_Button* btnAppUsers
-		{ btnAskForPrinter = new Fl_Check_Button(55, 70, 64, 15, _tr("Ask for Printer"));
-		  btnAskForPrinter->down_box(FL_DOWN_BOX);
-		} // Fl_Check_Button* btnAskForPrinter
-		{ btnWebServer = new Fl_Check_Button(65, 80, 64, 15, _tr("Web Server"));
-		  btnWebServer->down_box(FL_DOWN_BOX);
-		} // Fl_Check_Button* btnWebServer
-		o->spacing(5);
-		config_pack->end();
-	      } // Fl_Pack* config_pack
-	      config_scroll->end();
-	    } // Fl_Scroll* config_scroll
-	    tabConfig->end();
-	  } // Fl_Group* tabConfig
-	  tabs->end();
-	} // Fl_Tabs* tabs
-	end();
-}
-
-function cb_btnEntitiesSales(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Entities Sales List/Search", EntitiesListSearch);
-}
-function cb_btnPaymentsSales(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Payments Sales List/Search", PaymentsListSearch);
-}
-function cb_btnOrdersSales(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Orders Sales List/Search", OrdersListSearch);
-}
-function cb_btnProductsSales(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Products Sales List/Search", ProductsListSearch);
-}
-function cb_btnOrdersBuys(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Orders Buys List/Search", OrdersListSearch);
-}
-function cb_btnPaymentsBuys(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Payments Buys List/Search", PaymentsListSearch);
-}
-function cb_btnProductsBuys(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Products Buys List/Search", ProductsListSearch);
-}
-function cb_btnEntitiesBuys(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Entities Buys List/Search", EntitiesListSearch);
-}
-function cb_btnOrders(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Orders List/Search", OrdersListSearch);
-}
-function cb_btnPayments(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Payments List/Search", PaymentsListSearch);
-}
-function cb_btnEntities(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Entities List/Search", EntitiesListSearch);
-}
-function cb_btnProducts(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Products List/Search", ProductsListSearch);
-}
-function cb_btnGLGroups(){print(__LINE__);}
-function cb_btnGLChart(){print(__LINE__);}
-function cb_btnGLTransactions(){print(__LINE__);}
-function cb_btnOrdersSum(){print(__LINE__);}
-function cb_btnSalesTaxRates(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Sales Tax Rates List/Edit", OurSalesTax);
-}
-function cb_btnOrderTypes(){print(__LINE__);}
-function cb_btnPaymentTypes(){print(__LINE__);}
-function cb_btnMeasureUnits(){print(__LINE__);}
-function cb_btnWarrantyTypes(){print(__LINE__);}
-function cb_btnImages(){print(__LINE__);}
-function cb_btnProductGroups(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Product Groups", OurProductGroups);
-}
-function cb_btnEntityGroups(sender, udata){
-	this = sender.window();
-	local win = showChildWindow("Entity Groups", OurEntityGroups);
-}
-function cb_btnConfig(){print(__LINE__);}
-function cb_btnOpenDB(){print(__LINE__);}
-function cb_btnTranslations(){print(__LINE__);}
-function cb_btnAppUsers(){print(__LINE__);}
-function reset_all_child_windows_ptr(){print(__LINE__);}
-}

+ 0 - 302
SquiLu-ourbiz/order-page-gui.fl

@@ -1,302 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"} {public global
-} 
-
-widget_class OrderPageGroup {
-  label InvoiceA4 open selected
-  xywh {213 39 630 685} type Double resizable
-  class Fl_Scroll visible position_relative
-} {
-  Fl_Group page {open
-    xywh {0 0 634 686} color 7
-  } {
-    Fl_Group pageDesignGroup {open
-      xywh {2 0 630 686} labeltype NO_LABEL
-    } {
-      Fl_Group logoGroupH {
-        dirty_name logoGroupH open
-        xywh {15 10 316 130} hide
-      } {
-        Fl_Box logoH {
-          label FLTK
-          dirty_name logoH
-          xywh {16 10 310 50} labeltype SHADOW_LABEL labelfont 3 labelsize 40 align 660
-        }
-        Fl_Box companyBoxH {
-          label {FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11), Microsoft® Windows®, and MacOS® X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL® and its built-in GLUT emulation.}
-          dirty_name companyBoxH
-          xywh {16 65 308 75} labelfont 2 labelsize 10 align 144
-          class Fl_Box_ClearLabel
-        }
-      }
-      Fl_Group logoGroupV {
-        dirty_name logoGroupV open
-        xywh {15 10 316 130} hide
-      } {
-        Fl_Box logoV {
-          label FLTK
-          dirty_name logoV
-          xywh {16 10 100 130} labeltype SHADOW_LABEL labelfont 3 labelsize 40 align 660
-        }
-        Fl_Box companyBoxV {
-          label {FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11), Microsoft® Windows®, and MacOS® X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL® and its built-in GLUT emulation.}
-          dirty_name companyBoxV
-          xywh {120 10 210 130} labelfont 2 labelsize 10 align 144
-          class Fl_Box_ClearLabel
-        }
-      }
-      Fl_Group logoGroupHV {
-        dirty_name logoGroupHV open
-        xywh {15 10 316 130}
-      } {
-        Fl_Box logoHV1 {
-          label FLTK
-          dirty_name logoHV1
-          xywh {16 10 100 130} labeltype SHADOW_LABEL labelfont 3 labelsize 40 align 660
-        }
-        Fl_Box logoHV2 {
-          label FLTK
-          dirty_name logoHV2
-          xywh {120 10 210 50} labeltype SHADOW_LABEL labelfont 3 labelsize 40 align 660
-        }
-        Fl_Box companyBoxHV {
-          label {FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11), Microsoft® Windows®, and MacOS® X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL® and its built-in GLUT emulation.}
-          dirty_name companyBoxHV
-          xywh {120 50 210 90} labelfont 2 labelsize 9 align 144
-          class Fl_Box_ClearLabel
-        }
-      }
-      Fl_Group OrderNumber {
-        dirty_name OrderNumber open
-        xywh {336 10 286 40} box FLAT_BOX color 39 labeltype NO_LABEL
-      } {
-        Fl_Box box_header_number_date {
-          xywh {337 11 142 18} box FLAT_BOX color 47 labeltype NO_LABEL labelsize 12
-        }
-        Fl_Box box_data_number_date {
-          xywh {337 30 142 19} box FLAT_BOX color 7 labeltype NO_LABEL labelsize 12
-        }
-        Fl_Box header_date_box {
-          label DATE
-          xywh {480 11 141 18} box FLAT_BOX color 47 labelfont 1 labelsize 12
-        }
-        Fl_Box box_data_date_box {
-          xywh {480 30 141 19} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 12
-        }
-      }
-      Fl_Box box_to {
-        xywh {336 55 286 85} box BORDER_FRAME color 39 labelfont 1 labelsize 16 align 21
-      }
-      Fl_Group orderLines {
-        dirty_name orderLines open
-        xywh {16 148 606 433} box FLAT_BOX color 39 labeltype NO_LABEL resizable
-      } {
-        Fl_Box header_lines_code_box {
-          label CODE
-          xywh {17 149 46 20} box FLAT_BOX color 47 labelfont 1 labelsize 10
-        }
-        Fl_Box header_lines_description_box {
-          label DESCRIPTION
-          xywh {64 149 300 20} box FLAT_BOX color 47 labelfont 1 labelsize 10
-        }
-        Fl_Box header_lines_quantity_box {
-          label {QTY.}
-          xywh {365 149 40 20} box FLAT_BOX color 47 labelfont 1 labelsize 10
-        }
-        Fl_Box header_lines_price_box {
-          label PRICE
-          xywh {406 149 60 20} box FLAT_BOX color 47 labelfont 1 labelsize 10
-        }
-        Fl_Box header_lines_discount_box {
-          label {DISC. %}
-          xywh {467 149 30 20} box FLAT_BOX color 47 labelfont 1 labelsize 8 align 128
-        }
-        Fl_Box header_lines_sales_tax1_box {
-          label {S.T. I %}
-          dirty_name header_lines_sales_tax1_box
-          xywh {498 149 30 20} box FLAT_BOX color 47 labelfont 1 labelsize 8 align 128
-        }
-        Fl_Box header_lines_sales_tax2_box {
-          label {S.T. II %}
-          dirty_name header_lines_sales_tax2_box
-          xywh {529 149 30 20} box FLAT_BOX color 47 labelfont 1 labelsize 8 align 128
-        }
-        Fl_Box header_lines_subtotal_box {
-          label SUBTOTAL
-          xywh {560 149 61 20} box FLAT_BOX color 47 labelfont 1 labelsize 10
-        }
-        Fl_Group designLinesGroup {open
-          xywh {17 170 604 410} labeltype NO_LABEL resizable
-        } {
-          Fl_Box data_lines_code_box {
-            xywh {17 170 46 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_lines_description_box {
-            xywh {64 170 300 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_lines_quantity_box {
-            xywh {365 170 40 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_tlines_price_box {
-            xywh {406 170 60 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_lines_discount_box {
-            xywh {467 170 30 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_lines_sales_tax1_box {
-            dirty_name data_lines_sales_tax1_box
-            xywh {498 170 30 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_lines_sales_tax2_box {
-            dirty_name data_lines_sales_tax2_box
-            xywh {529 170 30 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-          Fl_Box data_lines_subtotal_box {
-            xywh {560 170 61 410} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 10
-          }
-        }
-      }
-      Fl_Group orderTotals {
-        dirty_name orderTotals open
-        xywh {16 585 606 46} box FLAT_BOX color 39 labeltype NO_LABEL
-      } {
-        Fl_Box header_PAGENO_box {
-          label PAGE
-          xywh {17 586 65 20} box FLAT_BOX color 47 labelfont 1 labelsize 12
-        }
-        Fl_Box box_data_pageno_box {
-          xywh {17 607 65 23} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 12
-        }
-        Fl_Box header_totals_subtotal_box {
-          label SUBTOTAL
-          xywh {83 586 150 20} box FLAT_BOX color 47 labelfont 1 labelsize 12
-        }
-        Fl_Box data_totals_subtotal_box {
-          xywh {83 607 150 23} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 12
-        }
-        Fl_Box header_totals_total_sales_tax1_box {
-          label {Sales Tax I}
-          dirty_name header_totals_total_sales_tax1_box
-          xywh {234 586 120 20} box FLAT_BOX color 47 labelfont 1 labelsize 12
-        }
-        Fl_Box data_totals_total_sales_tax1_box {
-          dirty_name data_totals_total_sales_tax1_box
-          xywh {234 607 120 23} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 12
-        }
-        Fl_Box header_totals_total_sales_tax2_box {
-          label {Sales Tax II}
-          dirty_name header_totals_total_sales_tax2_box
-          xywh {355 586 115 20} box FLAT_BOX color 47 labelfont 1 labelsize 12
-        }
-        Fl_Box data_totals_total_sales_tax2_box {
-          dirty_name data_totals_total_sales_tax2_box
-          xywh {355 607 115 23} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 12
-        }
-        Fl_Box header_totals_total_box {
-          label TOTAL
-          xywh {471 586 150 20} box FLAT_BOX color 47 labelfont 1 labelsize 12
-        }
-        Fl_Box data_totals_total_box {
-          xywh {471 607 150 23} box FLAT_BOX color 7 labeltype NO_LABEL labelfont 1 labelsize 12
-        }
-      }
-      Fl_Box notes_box {
-        label {FLTK is provided under the terms of the GNU Library Public License, Version 2 with exceptions that allow for static linking.}
-        xywh {17 638 606 37} labelfont 2 labelsize 9 align 144
-        class Fl_Box_ClearLabel
-      }
-    }
-    Fl_Group printDataGroup {open
-      xywh {3 0 628 637} labeltype NO_LABEL resizable
-    } {
-      Fl_Box orderTypeBox {
-        dirty_name orderTypeBox
-        xywh {338 10 139 20} labelfont 1 labelsize 12
-      }
-      Fl_Box numberBox {
-        xywh {338 33 139 16} labelfont 5 labelsize 15 align 16
-        class Fl_Box_ClearLabel
-      }
-      Fl_Box dateBox {
-        xywh {484 32 133 16} labelfont 5 labelsize 15 align 16
-        class Fl_Box_ClearLabel
-      }
-      Fl_Box entityBox {
-        xywh {338 57 282 82} labelsize 12 align 85
-        class Fl_Box_ClearLabel
-      }
-      Fl_Group dataLinesGroup {open
-        xywh {16 169 605 412} labeltype NO_LABEL align 16 resizable
-      } {
-        Fl_Box codeBox {
-          xywh {16 174 46 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box descriptionBox {
-          xywh {64 174 300 404} labelsize 11 align 85
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box quantityBox {
-          xywh {365 174 40 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box priceBox {
-          xywh {406 174 60 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box discountBox {
-          xywh {467 174 30 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box sales_tax1Box {
-          dirty_name sales_tax1Box
-          xywh {498 174 30 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box sales_tax2Box {
-          dirty_name sales_tax2Box
-          xywh {529 174 30 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box lineTotalBox {
-          xywh {560 174 61 404} labelsize 11 align 25
-          class Fl_Box_ClearLabel
-        }
-      }
-      Fl_Group bottomTotals {
-        dirty_name bottomTotals open
-        xywh {16 585 605 48} labeltype NO_LABEL
-      } {
-        Fl_Box orderPageBox {
-          dirty_name orderPageBox
-          xywh {16 608 65 25} labelfont 5 labelsize 15
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box fisrtTotalBox {
-          xywh {83 608 150 25} labelfont 5 labelsize 15
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box sales_tax1AmountBox {
-          dirty_name sales_tax1AmountBox
-          xywh {234 608 120 25} labelfont 5 labelsize 15
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box sales_tax2AmountBox {
-          dirty_name sales_tax2AmountBox
-          xywh {355 608 115 25} labelfont 5 labelsize 15
-          class Fl_Box_ClearLabel
-        }
-        Fl_Box totalBox {
-          xywh {500 608 121 25} labelfont 5 labelsize 15
-          class Fl_Box_ClearLabel
-        }
-      }
-    }
-  }
-} 

+ 0 - 612
SquiLu-ourbiz/order-page-gui.nut

@@ -1,612 +0,0 @@
-class OrderPageGroup extends Fl_Scroll {
-  
-  // Declaration of class members
-  page = null;
-  pageDesignGroup = null;
-  logoGroupH = null;
-  logoH = null;
-  companyBoxH = null;
-  logoGroupV = null;
-  logoV = null;
-  companyBoxV = null;
-  logoGroupHV = null;
-  logoHV1 = null;
-  logoHV2 = null;
-  companyBoxHV = null;
-  OrderNumber = null;
-  box_header_number_date = null;
-  box_data_number_date = null;
-  header_date_box = null;
-  box_data_date_box = null;
-  box_to = null;
-  orderLines = null;
-  header_lines_code_box = null;
-  header_lines_description_box = null;
-  header_lines_quantity_box = null;
-  header_lines_price_box = null;
-  header_lines_discount_box = null;
-  header_lines_sales_tax1_box = null;
-  header_lines_sales_tax2_box = null;
-  header_lines_subtotal_box = null;
-  designLinesGroup = null;
-  data_lines_code_box = null;
-  data_lines_description_box = null;
-  data_lines_quantity_box = null;
-  data_tlines_price_box = null;
-  data_lines_discount_box = null;
-  data_lines_sales_tax1_box = null;
-  data_lines_sales_tax2_box = null;
-  data_lines_subtotal_box = null;
-  orderTotals = null;
-  header_PAGENO_box = null;
-  box_data_pageno_box = null;
-  header_totals_subtotal_box = null;
-  data_totals_subtotal_box = null;
-  header_totals_total_sales_tax1_box = null;
-  data_totals_total_sales_tax1_box = null;
-  header_totals_total_sales_tax2_box = null;
-  data_totals_total_sales_tax2_box = null;
-  header_totals_total_box = null;
-  data_totals_total_box = null;
-  notes_box = null;
-  printDataGroup = null;
-  orderTypeBox = null;
-  numberBox = null;
-  dateBox = null;
-  entityBox = null;
-  dataLinesGroup = null;
-  codeBox = null;
-  descriptionBox = null;
-  quantityBox = null;
-  priceBox = null;
-  discountBox = null;
-  sales_tax1Box = null;
-  sales_tax2Box = null;
-  lineTotalBox = null;
-  bottomTotals = null;
-  orderPageBox = null;
-  fisrtTotalBox = null;
-  sales_tax1AmountBox = null;
-  sales_tax2AmountBox = null;
-  totalBox = null;
-  
-  constructor(px=213, py=29, pw=630, ph=685, pl=null){
-    base.constructor(px,py,pw,ph,pl);
-    local _x = 213, _y = 39;
-    // Create member functions and widgets
-    {
-      local o = Fl_Group(_x + 0, _y + 0, 634, 686);
-      page = o;
-      o.color(7);
-      {
-        {
-          local o = Fl_Group(_x + 2, _y + 0, 630, 686);
-          pageDesignGroup = o;
-          o.labeltype(FL_NO_LABEL);
-          {
-            {
-              local o = Fl_Group(_x + 15, _y + 10, 316, 130);
-              logoGroupH = o;
-              {
-                {
-                  local o = Fl_Box(_x + 16, _y + 10, 310, 50, _tr("FLTK"));
-                  logoH = o;
-                  o.align(660);
-                  o.labelfont(3);
-                  o.labeltype(FL_SHADOW_LABEL);
-                  o.labelsize(40);
-                }
-                {
-                  local o = Fl_Box(_x + 16, _y + 65, 308, 75);
-                  companyBoxH = o;
-                  o.labelfont(2);
-                  o.align(144);
-                  o.labelsize(10);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Group(_x + 15, _y + 10, 316, 130);
-              logoGroupV = o;
-              {
-                {
-                  local o = Fl_Box(_x + 16, _y + 10, 100, 130, _tr("FLTK"));
-                  logoV = o;
-                  o.align(660);
-                  o.labelfont(3);
-                  o.labeltype(FL_SHADOW_LABEL);
-                  o.labelsize(40);
-                }
-                {
-                  local o = Fl_Box(_x + 120, _y + 10, 210, 130);
-                  companyBoxV = o;
-                  o.labelfont(2);
-                  o.align(144);
-                  o.labelsize(10);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Group(_x + 15, _y + 10, 316, 130);
-              logoGroupHV = o;
-              {
-                {
-                  local o = Fl_Box(_x + 16, _y + 10, 100, 130, _tr("FLTK"));
-                  logoHV1 = o;
-                  o.align(660);
-                  o.labelfont(3);
-                  o.labeltype(FL_SHADOW_LABEL);
-                  o.labelsize(40);
-                }
-                {
-                  local o = Fl_Box(_x + 120, _y + 10, 210, 50, _tr("FLTK"));
-                  logoHV2 = o;
-                  o.align(660);
-                  o.labelfont(3);
-                  o.labeltype(FL_SHADOW_LABEL);
-                  o.labelsize(40);
-                }
-                {
-                  local o = Fl_Box(_x + 120, _y + 50, 210, 90);
-                  companyBoxHV = o;
-                  o.labelfont(2);
-                  o.align(144);
-                  o.labelsize(9);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Group(_x + 336, _y + 10, 286, 40);
-              OrderNumber = o;
-              o.box(FL_FLAT_BOX);
-              o.color(39);
-              o.labeltype(FL_NO_LABEL);
-              {
-                {
-                  local o = Fl_Box(_x + 337, _y + 11, 142, 18);
-                  box_header_number_date = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 337, _y + 30, 142, 19);
-                  box_data_number_date = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-                {
-                  local o = Fl_Box(_x + 480, _y + 11, 141, 18, _tr("DATE"));
-                  header_date_box = o;
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 480, _y + 30, 141, 19);
-                  box_data_date_box = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Box(_x + 336, _y + 55, 286, 85);
-              box_to = o;
-              o.box(FL_BORDER_FRAME);
-              o.align(21);
-              o.labelfont(1);
-              o.labelsize(16);
-              o.color(39);
-            }
-            {
-              local o = Fl_Group(_x + 16, _y + 148, 606, 433);
-              orderLines = o;
-              o.box(FL_FLAT_BOX);
-              o.color(39);
-              o.labeltype(FL_NO_LABEL);
-              {
-                {
-                  local o = Fl_Box(_x + 17, _y + 149, 46, 20, _tr("CODE"));
-                  header_lines_code_box = o;
-                  o.labelsize(10);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 64, _y + 149, 300, 20, _tr("DESCRIPTION"));
-                  header_lines_description_box = o;
-                  o.labelsize(10);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 365, _y + 149, 40, 20, _tr("QTY."));
-                  header_lines_quantity_box = o;
-                  o.labelsize(10);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 406, _y + 149, 60, 20, _tr("PRICE"));
-                  header_lines_price_box = o;
-                  o.labelsize(10);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 467, _y + 149, 30, 20, _tr("DISC. %"));
-                  header_lines_discount_box = o;
-                  o.align(128);
-                  o.labelsize(8);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 498, _y + 149, 30, 20, _tr("S.T. I %"));
-                  header_lines_sales_tax1_box = o;
-                  o.align(128);
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(8);
-                  o.color(47);
-                  o.labelfont(1);
-                }
-                {
-                  local o = Fl_Box(_x + 529, _y + 149, 30, 20, _tr("S.T. II %"));
-                  header_lines_sales_tax2_box = o;
-                  o.align(128);
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(8);
-                  o.color(47);
-                  o.labelfont(1);
-                }
-                {
-                  local o = Fl_Box(_x + 560, _y + 149, 61, 20, _tr("SUBTOTAL"));
-                  header_lines_subtotal_box = o;
-                  o.labelsize(10);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Group(_x + 17, _y + 170, 604, 410);
-                  designLinesGroup = o;
-                  o.labeltype(FL_NO_LABEL);
-                  {
-                    {
-                      local o = Fl_Box(_x + 17, _y + 170, 46, 410);
-                      data_lines_code_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 64, _y + 170, 300, 410);
-                      data_lines_description_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 365, _y + 170, 40, 410);
-                      data_lines_quantity_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 406, _y + 170, 60, 410);
-                      data_tlines_price_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 467, _y + 170, 30, 410);
-                      data_lines_discount_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 498, _y + 170, 30, 410);
-                      data_lines_sales_tax1_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 529, _y + 170, 30, 410);
-                      data_lines_sales_tax2_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                    {
-                      local o = Fl_Box(_x + 560, _y + 170, 61, 410);
-                      data_lines_subtotal_box = o;
-                      o.box(FL_FLAT_BOX);
-                      o.labelsize(10);
-                      o.labelfont(1);
-                      o.labeltype(FL_NO_LABEL);
-                      o.color(7);
-                    }
-                  }
-                  o.end();
-                  Fl_Group.current().resizable(o);
-                }
-              }
-              o.end();
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Group(_x + 16, _y + 585, 606, 46);
-              orderTotals = o;
-              o.box(FL_FLAT_BOX);
-              o.color(39);
-              o.labeltype(FL_NO_LABEL);
-              {
-                {
-                  local o = Fl_Box(_x + 17, _y + 586, 65, 20, _tr("PAGE"));
-                  header_PAGENO_box = o;
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 17, _y + 607, 65, 23);
-                  box_data_pageno_box = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-                {
-                  local o = Fl_Box(_x + 83, _y + 586, 150, 20, _tr("SUBTOTAL"));
-                  header_totals_subtotal_box = o;
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 83, _y + 607, 150, 23);
-                  data_totals_subtotal_box = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-                {
-                  local o = Fl_Box(_x + 234, _y + 586, 120, 20, _tr("Sales Tax I"));
-                  header_totals_total_sales_tax1_box = o;
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.color(47);
-                  o.box(FL_FLAT_BOX);
-                }
-                {
-                  local o = Fl_Box(_x + 234, _y + 607, 120, 23);
-                  data_totals_total_sales_tax1_box = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-                {
-                  local o = Fl_Box(_x + 355, _y + 586, 115, 20, _tr("Sales Tax II"));
-                  header_totals_total_sales_tax2_box = o;
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.color(47);
-                  o.box(FL_FLAT_BOX);
-                }
-                {
-                  local o = Fl_Box(_x + 355, _y + 607, 115, 23);
-                  data_totals_total_sales_tax2_box = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-                {
-                  local o = Fl_Box(_x + 471, _y + 586, 150, 20, _tr("TOTAL"));
-                  header_totals_total_box = o;
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.box(FL_FLAT_BOX);
-                  o.color(47);
-                }
-                {
-                  local o = Fl_Box(_x + 471, _y + 607, 150, 23);
-                  data_totals_total_box = o;
-                  o.box(FL_FLAT_BOX);
-                  o.labelsize(12);
-                  o.labelfont(1);
-                  o.labeltype(FL_NO_LABEL);
-                  o.color(7);
-                }
-              }
-              o.end();
-            }
-            {
-              local o = Fl_Box(_x + 17, _y + 638, 606, 37);
-              notes_box = o;
-              o.labelfont(2);
-              o.align(144);
-              o.labelsize(9);
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Group(_x + 3, _y + 0, 628, 637);
-          printDataGroup = o;
-          o.labeltype(FL_NO_LABEL);
-          {
-            {
-              local o = Fl_Box(_x + 338, _y + 10, 139, 20);
-              orderTypeBox = o;
-              o.labelfont(1);
-              o.labelsize(12);
-            }
-            {
-              local o = Fl_Box(_x + 338, _y + 33, 139, 16);
-              numberBox = o;
-              o.labelfont(5);
-              o.labelsize(15);
-              o.align(16);
-            }
-            {
-              local o = Fl_Box(_x + 484, _y + 32, 133, 16);
-              dateBox = o;
-              o.labelfont(5);
-              o.labelsize(15);
-              o.align(16);
-            }
-            {
-              local o = Fl_Box(_x + 338, _y + 57, 282, 82);
-              entityBox = o;
-              o.align(85);
-              o.labelsize(12);
-            }
-            {
-              local o = Fl_Group(_x + 16, _y + 169, 605, 412);
-              dataLinesGroup = o;
-              o.align(16);
-              o.labeltype(FL_NO_LABEL);
-              {
-                {
-                  local o = Fl_Box(_x + 16, _y + 174, 46, 404);
-                  codeBox = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 64, _y + 174, 300, 404);
-                  descriptionBox = o;
-                  o.align(85);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 365, _y + 174, 40, 404);
-                  quantityBox = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 406, _y + 174, 60, 404);
-                  priceBox = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 467, _y + 174, 30, 404);
-                  discountBox = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 498, _y + 174, 30, 404);
-                  sales_tax1Box = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 529, _y + 174, 30, 404);
-                  sales_tax2Box = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-                {
-                  local o = Fl_Box(_x + 560, _y + 174, 61, 404);
-                  lineTotalBox = o;
-                  o.align(25);
-                  o.labelsize(11);
-                }
-              }
-              o.end();
-              Fl_Group.current().resizable(o);
-            }
-            {
-              local o = Fl_Group(_x + 16, _y + 585, 605, 48);
-              bottomTotals = o;
-              o.labeltype(FL_NO_LABEL);
-              {
-                {
-                  local o = Fl_Box(_x + 16, _y + 608, 65, 25);
-                  orderPageBox = o;
-                  o.labelfont(5);
-                  o.labelsize(15);
-                }
-                {
-                  local o = Fl_Box(_x + 83, _y + 608, 150, 25);
-                  fisrtTotalBox = o;
-                  o.labelfont(5);
-                  o.labelsize(15);
-                }
-                {
-                  local o = Fl_Box(_x + 234, _y + 608, 120, 25);
-                  sales_tax1AmountBox = o;
-                  o.labelfont(5);
-                  o.labelsize(15);
-                }
-                {
-                  local o = Fl_Box(_x + 355, _y + 608, 115, 25);
-                  sales_tax2AmountBox = o;
-                  o.labelfont(5);
-                  o.labelsize(15);
-                }
-                {
-                  local o = Fl_Box(_x + 500, _y + 608, 121, 25);
-                  totalBox = o;
-                  o.labelfont(5);
-                  o.labelsize(15);
-                }
-              }
-              o.end();
-            }
-          }
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-      }
-      o.end();
-    }
-  }
-}

+ 0 - 828
SquiLu-ourbiz/orders-edit-gui.fl

@@ -1,828 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"
-\#include "delivery-calc.h"
-\#include "calendar-gui.h"
-\#include "barchart-gui.h"
-\#include "history-gui.h"
-\#include "print-preview-gui.h"
-class EntitiesListSearchWindow;
-class ProductsListSearchWindow;} {public global
-} 
-
-decl {\#include "entities.h"
-\#include "products.h"} {private local
-} 
-
-widget_class EditOrderWindow {
-  label {Edit Order} open
-  xywh {255 97 800 560} type Double labelsize 16 resizable
-  class Lines_Edit_Base_Window visible
-} {
-  decl {OurDeliveryCalc *delivery_calc_window;
-EntitiesListSearchWindow *entities_list_window;
-ProductsListSearchWindow *products_list_window;
-CalendarWindow *calendar_window;} {protected local
-  }
-  Function {~EditOrderWindow()} {open
-  } {
-    code {delete delivery_calc_window;
-delete products_list_window;
-delete entities_list_window;
-delete calendar_window;} {}
-  }
-  code {delivery_calc_window = 0;
-entities_list_window = 0;
-products_list_window = 0;
-calendar_window = 0;} {}
-  Fl_Group {} {open
-    xywh {5 1 792 62}
-  } {
-    Fl_Output db_orders_mdate {
-      macro_name {db orders mdate}
-      dirty_name db_orders_mdate
-      xywh {670 5 125 25} labeltype NO_LABEL labelsize 16 textsize 16
-      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-    }
-    Fl_Box db_orders_order_type_id {
-      macro_name {db orders order_type_id}
-      dirty_name db_orders_order_type_id
-      tooltip {Selection of the order type} xywh {5 5 655 25} box DOWN_BOX labeltype NO_LABEL labelfont 1 labelsize 16
-      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      class Flu_Combo_List
-    }
-    Fl_Pack pack_line2 {open
-      xywh {5 35 790 25} type HORIZONTAL labelsize 16
-      code0 {o->spacing(5);}
-      code1 {o->with_label(1);}
-    } {
-      Fl_Input db_orders_series {
-        label Series
-        macro_name {db orders series}
-        dirty_name db_orders_series
-        xywh {55 35 45 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_order_number {
-        label Number
-        macro_name {db orders order_number}
-        dirty_name db_orders_order_number
-        xywh {172 35 95 25} type Int labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        code1 {o->use_numeric_format(0);}
-      }
-      Fl_Input db_orders_entity_id {
-        label Entity
-        macro_name {db orders entity_id}
-        dirty_name db_orders_entity_id
-        xywh {319 35 95 25} type Int labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_name {
-        macro_name {db orders entity_name}
-        dirty_name db_orders_entity_name
-        tooltip {Type partal description to search on availlable entities} xywh {420 35 335 25} labeltype NO_LABEL labelsize 16 textfont 1 textsize 16 resizable
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Button btnSearchEntity {
-        label {@<->}
-        tooltip {Show entities search window} xywh {765 35 30 25} labelsize 18 labelcolor 22
-      }
-    }
-  }
-  Fl_Input db_orders_entity_order_number {
-    label {Their Nº}
-    macro_name {db orders entity_order_number}
-    dirty_name db_orders_entity_order_number
-    xywh {585 65 210 25} labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Tabs tabs {open selected
-    xywh {5 68 790 487} selection_color 4 labelsize 16 labelcolor 7 resizable
-  } {
-    Fl_Group tabMain {
-      label Main open
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 resizable
-    } {
-      Fl_Pack pack_line3 {open
-        xywh {11 105 780 25} type HORIZONTAL labelsize 16
-        code0 {o->spacing(5);}
-        code1 {o->with_label(1);}
-      } {
-        Fl_Output out_lines {
-          label Lines
-          dirty_name out_lines
-          xywh {57 105 69 25} labelsize 16 textsize 16
-          code0 {o->right_to_left(1);}
-        }
-        Fl_Output db_orders_weight_total {
-          label Weight
-          dirty_name db_orders_weight_total
-          xywh {189 105 110 25} labelsize 16 textsize 16
-          code0 {o->right_to_left(1);}
-          code1 {o->decimal_places(-2);}
-          code2 {o->use_numeric_format(1);}
-        }
-        Fl_Button btnCalcDelivery {
-          label {@<->}
-          tooltip {Show delivery calc window} xywh {309 105 30 25} labelsize 18 labelcolor 22
-        }
-        Fl_Choice db_orders_payment_type_id {
-          macro_name {db orders payment_type_id}
-          dirty_name db_orders_payment_type_id
-          xywh {345 105 235 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textfont 1 textsize 16 resizable
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          class Fl_Choice_Int
-        } {}
-        Fl_Button btnSortLines {
-          label {@2}
-          tooltip {Sort lines by description} xywh {590 105 30 25} labelsize 18 labelcolor 22
-        }
-        Fl_Input db_orders_order_date {
-          macro_name {db orders order_date}
-          dirty_name db_orders_order_date
-          xywh {629 105 120 25} labeltype NO_LABEL labelsize 16 textfont 1 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        }
-        Fl_Button btnShowCalendar {
-          label {@<->}
-          tooltip {Show calendar} xywh {760 105 30 25} labelsize 18 labelcolor 22
-        }
-      }
-      Fl_Browser grid_lines {
-        dirty_name {@grid_lines}
-        xywh {10 135 780 150} labelsize 16 textsize 16 resizable
-        class Fl_Data_Table
-      }
-      Fl_Group {} {
-        xywh {10 290 781 260}
-      } {
-        Fl_Group group_totals {open
-          xywh {600 291 190 259} box UP_BOX color 174
-        } {
-          Fl_Output db_orders_discount_amt {
-            label Discount
-            macro_name {db orders discount_amt}
-            dirty_name db_orders_discount_amt
-            xywh {685 297 100 25} labelsize 16 textsize 16
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-            code2 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          }
-          Fl_Output db_orders_subtotal_amt {
-            label Subtotal
-            macro_name {db orders subtotal_amt}
-            dirty_name db_orders_subtotal_amt
-            xywh {684 326 100 25} labelsize 16 textsize 16
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-            code2 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          }
-          Fl_Output db_orders_sales_tax1_amt {
-            label {V.A.T.}
-            macro_name {db orders sales_tax1_amt}
-            dirty_name db_orders_sales_tax1_amt
-            xywh {685 356 100 25} labelsize 16 textsize 16
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-            code2 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          }
-          Fl_Output db_orders_sales_tax2_amt {
-            label {R.E.}
-            macro_name {db orders sales_tax2_amt}
-            dirty_name db_orders_sales_tax2_amt
-            xywh {684 386 100 25} labelsize 16 textsize 16
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-            code2 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          }
-          Fl_Output db_orders_irpf_amt {
-            label {I.R.P.F.}
-            macro_name {db orders irpf_amt}
-            xywh {685 416 100 25} labelsize 16 textsize 16
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-            code2 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          }
-          Fl_Output db_orders_total_amt {
-            label Total
-            macro_name {db orders total_amt}
-            dirty_name db_orders_total_amt
-            xywh {610 453 174 33} color 119 labelfont 1 align 5 textfont 1 textsize 30
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-            code2 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          }
-          Fl_Input db_orders_cash {
-            label Cash
-            macro_name {db orders cash}
-            dirty_name db_orders_cash
-            xywh {685 490 100 25} type Float labelfont 1 labelsize 16 textfont 1 textsize 16
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Fl_Float_Input_Fmt
-          }
-          Fl_Output cash_return {
-            label Return
-            dirty_name cash_return
-            xywh {685 520 100 25} labelfont 1 labelsize 16 textfont 1 textsize 16
-            code0 {o->right_to_left(1);}
-            code1 {o->use_numeric_format(1);}
-          }
-        }
-        Fl_Button btnPrint {
-          label Print
-          dirty_name btnPrint
-          xywh {485 525 100 25} labelsize 16
-          class My_Fl_Return_Button
-        }
-        Fl_Tabs linesTab {
-          dirty_name linesTab open
-          xywh {10 290 585 230} selection_color 4 labelfont 2 labelsize 16 labelcolor 7
-        } {
-          Fl_Group group_lines {
-            label {Line Edit} open
-            xywh {10 321 585 199} box UP_BOX color 166 labelfont 2 labelsize 16
-          } {
-            Fl_Output db_orders_lines_batch_order_line_quantity {
-              label {Batch Qty.}
-              macro_name {db orders_lines batch_order_line_quantity}
-              xywh {265 330 110 25} labelsize 16 textsize 16
-              code0 {o->right_to_left(1);}
-              code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Input db_orders_lines_batch_order_line_id {
-              label {Batch \#}
-              macro_name {db orders_lines batch_order_line_id}
-              xywh {435 329 110 25} type Int labelsize 16 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Button btnSearchBatchOrderLineId {
-              label {@<->}
-              dirty_name btnSearchBatchOrderLineId
-              tooltip {Show products search window} xywh {555 329 30 25} labelsize 18 labelcolor 22
-            }
-            Fl_Output db_orders_lines_xref_order_line_quantity {
-              label {XRef. Qty.}
-              macro_name {db orders_lines xref_order_line_quantity}
-              xywh {265 360 110 25} labelsize 16 textsize 16
-              code0 {o->right_to_left(1);}
-              code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Input db_orders_lines_xref_order_line_id {
-              label {XRef \#}
-              macro_name {db orders_lines xref_order_line_id}
-              xywh {435 359 110 25} type Int labelsize 16 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Button btnSearchXrefOrderLineId {
-              label {@<->}
-              dirty_name btnSearchXrefOrderLineId
-              tooltip {Show products search window} xywh {555 359 30 25} labelsize 18 labelcolor 22
-            }
-            Fl_Input db_orders_lines_product_id {
-              label Code
-              macro_name {db orders_lines product_id}
-              dirty_name db_orders_lines_product_id
-              xywh {21 387 70 25} type Int labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Input db_orders_lines_description {
-              label Description
-              macro_name {db orders_lines description}
-              dirty_name db_orders_lines_description
-              tooltip {Type partal description to search on availlable products} xywh {101 387 444 25} labelsize 16 align 5 textfont 1 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Button btnSearchProduct {
-              label {@<->}
-              tooltip {Show products search window} xywh {555 387 30 25} labelsize 18 labelcolor 22
-            }
-            Fl_Input db_orders_lines_quantity {
-              label Quantity
-              macro_name {db orders_lines quantity}
-              dirty_name db_orders_lines_quantity
-              xywh {21 435 84 25} type Float labelfont 1 labelsize 16 align 5 textfont 1 textsize 16
-              code0 {o->decimal_places(-6);}
-              code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class My_Fl_Float_Input
-            }
-            Fl_Input db_orders_lines_price {
-              label Price
-              macro_name {db orders_lines price}
-              xywh {115 435 108 25} type Float labelfont 1 labelsize 16 align 5 textfont 1 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class My_Fl_Float_Input
-            }
-            Fl_Input db_orders_lines_price_decimals {
-              label {(.)}
-              macro_name {db orders_lines price_decimals}
-              tooltip {Number of decimals to use on calculations} xywh {230 435 20 25} type Int labelsize 16 align 1 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-            Fl_Input db_orders_lines_weight {
-              label Weight
-              macro_name {db orders_lines weight}
-              xywh {255 435 70 25} type Float labelsize 16 align 5 textsize 16
-              code0 {o->decimal_places(-6);}
-              code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class My_Fl_Float_Input
-            }
-            Fl_Input db_orders_lines_first_total {
-              label {1st total}
-              macro_name {db orders_lines first_total}
-              xywh {330 435 100 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Input db_orders_lines_discount_pct {
-              label {Disc. %}
-              macro_name {db orders_lines discount_pct}
-              xywh {435 435 60 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class My_Fl_Float_Input
-            }
-            Fl_Input db_orders_lines_discount_amt {
-              label {Disc. $}
-              macro_name {db orders_lines discount_amt}
-              xywh {505 435 80 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Input db_orders_lines_line_subtotal {
-              label Subtotal
-              macro_name {db orders_lines line_subtotal}
-              xywh {21 485 108 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Input db_orders_lines_sales_tax2_pct {
-              label {R.E. %}
-              macro_name {db orders_lines sales_tax2_pct}
-              xywh {139 485 64 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Input db_orders_lines_sales_tax1_pct {
-              label {V.A.T. %}
-              macro_name {db orders_lines sales_tax1_pct}
-              xywh {213 485 64 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Input db_orders_lines_sales_tax1_amt {
-              label {V.A.T. $}
-              macro_name {db orders_lines sales_tax1_amt}
-              xywh {287 485 87 25} type Float labelsize 16 align 5 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Button btnSaveLine {
-              label Save
-              tooltip {Save the line currently edited} xywh {384 485 83 25} labelfont 1 labelsize 16
-              class My_Fl_Return_Button
-            }
-            Fl_Input db_orders_lines_line_total {
-              label Total
-              macro_name {db orders_lines line_total}
-              xywh {477 485 108 25} type Float labelfont 1 labelsize 16 align 5 textfont 1 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-              class Fl_Float_Input_Fmt
-            }
-          }
-          Fl_Group tabLineNotes {
-            label {Line Notes}
-            dirty_name tabLineNotes open
-            xywh {10 320 585 200} labelfont 2 labelsize 16 hide
-          } {
-            Fl_Input db_orders_lines_notes {
-              label Notes
-              macro_name {db orders_lines notes}
-              dirty_name db_orders_lines_description
-              tooltip {Type partial description to search on availlable products} xywh {80 330 505 180} type Multiline labelsize 16 textsize 16
-              code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            }
-          }
-          Fl_Group tabDues {
-            label Dues
-            dirty_name tabDues open
-            xywh {10 320 585 200} labelfont 2 labelsize 16 hide
-          } {
-            Fl_Browser grid_dues {
-              dirty_name grid_dues
-              xywh {15 330 575 130} labelsize 16 textsize 16
-              class Fl_Data_Table
-            }
-            Fl_Output due_id {
-              label ID
-              dirty_name due_id
-              xywh {15 485 80 25} labelsize 16 align 5 textsize 16
-              code0 {o->right_to_left(1);}
-            }
-            Fl_Input due_date {
-              label Due
-              dirty_name due_date
-              xywh {100 485 125 25} labelsize 16 align 5 textfont 1 textsize 16
-            }
-            Fl_Button btnShowCalendarDueDate {
-              label {@<->}
-              dirty_name btnShowCalendarDueDate
-              tooltip {Show calendar} xywh {230 485 30 25} labelsize 18 labelcolor 22
-            }
-            Fl_Input due_pct {
-              label {Pct. %}
-              dirty_name due_pct
-              xywh {270 485 80 25} type Float labelfont 1 labelsize 16 align 5 textfont 1 textsize 16
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Input due_amount {
-              label Amount
-              dirty_name due_amount
-              xywh {355 485 120 25} type Float labelfont 1 labelsize 16 align 5 textfont 1 textsize 16
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Button btnDueSave {
-              label Save
-              dirty_name btnDueSave
-              xywh {485 485 100 25} labelsize 16
-              class My_Fl_Return_Button
-            }
-          }
-          Fl_Group tabPayments {
-            label Payments
-            dirty_name tabPayments open
-            xywh {10 320 585 200} labelfont 2 labelsize 16 hide
-          } {
-            Fl_Browser grid_payments {
-              dirty_name grid_payments
-              xywh {15 330 575 130} labelsize 16 textsize 16
-              class Fl_Data_Table
-            }
-            Fl_Output payment_id {
-              label ID
-              dirty_name payment_id
-              xywh {15 485 80 25} labelsize 16 align 5 textsize 16
-              code0 {o->right_to_left(1);}
-            }
-            Fl_Input payment_date {
-              label Date
-              dirty_name payment_date
-              xywh {100 485 125 25} labelsize 16 align 5 textfont 1 textsize 16
-            }
-            Fl_Button btnShowCalendarPaymentDate {
-              label {@<->}
-              dirty_name btnShowCalendarPaymentDate
-              tooltip {Show calendar} xywh {230 485 30 25} labelsize 18 labelcolor 22
-            }
-            Fl_Input payemnt_amount {
-              label Amount
-              dirty_name payemnt_amount
-              xywh {270 485 120 25} type Float labelfont 1 labelsize 16 align 5 textfont 1 textsize 16
-              class Fl_Float_Input_Fmt
-            }
-            Fl_Button btnPaymentSave {
-              label Save
-              dirty_name btnPaymentSave
-              xywh {395 485 100 25} labelsize 16
-              class My_Fl_Return_Button
-            }
-          }
-        }
-      }
-      Fl_Button btnNumberOrder {
-        label Number
-        dirty_name btnNumberOrder
-        xywh {230 525 82 25} labelsize 16
-        class My_Fl_Return_Button
-      }
-      Fl_Choice dbAction {
-        dirty_name {@dbAction} open
-        xywh {9 525 119 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
-      } {}
-      Fl_Button btnDbAction {
-        label Action
-        dirty_name {@btnDbAction}
-        tooltip {Perform the selected action on this order} xywh {138 525 82 25} labelfont 1 labelsize 16
-        class My_Fl_Return_Button
-      }
-    }
-    Fl_Group tabDelivery {
-      label Delivery
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 hide
-    } {
-      Fl_Input db_orders_entity_address {
-        label Address
-        macro_name {db orders entity_address}
-        dirty_name db_orders_entity_address
-        xywh {91 105 694 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_zip {
-        label ZIP
-        macro_name {db orders entity_zip}
-        dirty_name db_orders_entity_zip
-        xywh {91 135 95 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_city {
-        label City
-        macro_name {db orders entity_city}
-        dirty_name db_orders_entity_city
-        xywh {288 135 497 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_state {
-        label State
-        macro_name {db orders entity_state}
-        dirty_name db_orders_entity_state
-        xywh {91 165 407 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_country {
-        label Country
-        macro_name {db orders entity_country}
-        dirty_name db_orders_entity_country
-        xywh {585 165 201 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_phone {
-        label Phone
-        macro_name {db orders entity_phone}
-        dirty_name db_orders_entity_phone
-        xywh {91 195 201 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_entity_tax_number {
-        label {Tax Num.}
-        macro_name {db orders entity_tax_number}
-        dirty_name db_orders_entity_tax_number
-        xywh {585 195 200 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_orders_order_valid_till_date {
-        label {Valid till}
-        macro_name {db orders order_valid_till_date}
-        xywh {90 225 121 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Button btnShowCalendarValidTill {
-        label {@<->}
-        dirty_name btnShowCalendarValidTill
-        tooltip {Show calendar} xywh {221 225 30 25} labelsize 18 labelcolor 22
-      }
-      Fl_Check_Button db_orders_entity_use_sales_tax2 {
-        label {Use Sales Tax II}
-        macro_name {db orders entity_use_sales_tax2}
-        dirty_name db_orders_entity_use_sales_tax2
-        xywh {585 225 155 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_orders_entity_sales_tax_exempt {
-        label {Sales Tax Exempt}
-        macro_name {db orders entity_sales_tax_exempt}
-        dirty_name db_orders_entity_sales_tax_exempt
-        xywh {585 255 155 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Text_Editor db_orders_notes {
-        label Notes
-        macro_name {db orders notes}
-        dirty_name db_orders_notes
-        xywh {15 395 770 150} labelsize 16 align 5 textsize 16 resizable
-        code0 {\#include <FL/Fl_Text_Editor.H>}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Text_Editor_Buffered
-      }
-      Fl_Check_Button {} {
-        label {Wrap lines}
-        callback {db_orders_notes->wrap_mode(o->value(), 0);}
-        xywh {125 375 125 25} down_box DOWN_BOX value 1 labelsize 16
-      }
-      Fl_Input db_orders_irpf_pct_retention {
-        label {I.R.P.F. %}
-        macro_name {db orders irpf_pct_retention}
-        xywh {585 285 70 25} type Float labelsize 16 align 8 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-    }
-    Fl_Group tabOptions {
-      label Options
-      dirty_name tabOptions
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 hide
-    } {
-      Fl_Check_Button opt_ask_for_printer {
-        label {Ask for printer}
-        dirty_name opt_ask_for_printer
-        xywh {20 115 155 25} down_box DOWN_BOX labelsize 16
-      }
-      Fl_Check_Button opt_print_only_data {
-        label {Print only data}
-        dirty_name opt_print_only_data
-        xywh {20 150 155 25} down_box DOWN_BOX labelsize 16
-      }
-      Fl_Check_Button opt_print_to_pdf {
-        label {Print to PDF}
-        dirty_name opt_print_to_pdf
-        xywh {20 180 155 25} down_box DOWN_BOX labelsize 16
-      }
-      Fl_Choice opt_print_page_format {
-        dirty_name opt_print_page_format
-        xywh {20 215 130 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
-        class Fl_Choice_Str
-      } {}
-      Fl_Button btnOptPrint {
-        label Print
-        dirty_name btnOptPrint
-        tooltip {Print the current order} xywh {20 250 130 25} labelsize 16
-      }
-      Fl_Input opt_email_program {
-        label {Email program}
-        dirty_name opt_email_program
-        tooltip {Type partal description to search on availlable entities} xywh {260 145 520 25} labelsize 16 align 5 textsize 16
-      }
-      Fl_Input opt_email_program_command {
-        label {Email program parameters}
-        dirty_name opt_email_program_command
-        tooltip {Type partal description to search on availlable entities} xywh {260 210 520 25} labelsize 16 align 5 textsize 16
-      }
-      Fl_Button btnOptSendEmail {
-        label {Send as email}
-        dirty_name btnOptSendEmail
-        tooltip {Print the current order} xywh {260 250 130 25} labelsize 16
-      }
-      Fl_Text_Editor opt_print_order_company_info {
-        label {Company Info}
-        dirty_name opt_print_order_company_info
-        xywh {20 350 375 200} labelsize 16 align 5 textsize 16
-        code0 {\#include <FL/Fl_Text_Editor.H>}
-        class Fl_Text_Editor_Buffered
-      }
-      Fl_Check_Button {} {
-        label {Wrap lines}
-        callback {opt_print_order_company_info->wrap_mode(o->value(), 0);}
-        xywh {200 330 125 25} down_box DOWN_BOX value 1 labelsize 16
-      }
-      Fl_Text_Editor opt_print_order_bottom_info {
-        label {Company Info}
-        dirty_name opt_print_order_bottom_info
-        xywh {405 350 375 200} labelsize 16 align 5 textsize 16 resizable
-        code0 {\#include <FL/Fl_Text_Editor.H>}
-        class Fl_Text_Editor_Buffered
-      }
-      Fl_Check_Button {} {
-        label {Wrap lines}
-        callback {opt_print_order_bottom_info->wrap_mode(o->value(), 0);}
-        xywh {590 330 125 25} down_box DOWN_BOX value 1 labelsize 16
-      }
-    }
-    Fl_Group tabChartStatistics {
-      label Statistics open
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 hide
-    } {}
-    Fl_Group tabHistory {
-      label History open
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 hide
-    } {}
-    Fl_Group tabPrintPreview {
-      label Preview open
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 hide
-    } {}
-    Fl_Group tabTotals {
-      label Totals
-      dirty_name tabTotals
-      xywh {5 95 790 460} color 246 labelfont 2 labelsize 16 hide
-    } {
-      Fl_Input totals_balance {
-        label Balance
-        dirty_name totals_balance
-        xywh {145 155 110 25} type Float labelsize 16 textsize 16
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_quoted {
-        label {Sales Quoted}
-        macro_name {db totals_overview sales_quoted}
-        xywh {145 200 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_ordered {
-        label {Sales Ordered}
-        macro_name {db totals_overview sales_ordered}
-        xywh {145 235 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_delivered {
-        label {Sales Delivered}
-        macro_name {db totals_overview sales_delivered}
-        xywh {145 270 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_invoiced {
-        label {Sales Invoiced}
-        macro_name {db totals_overview sales_invoiced}
-        xywh {145 305 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_discount {
-        label {Sales Discount}
-        macro_name {db totals_overview sales_discount}
-        xywh {145 340 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_tax1 {
-        label {Sales Tax1}
-        macro_name {db totals_overview sales_tax1}
-        xywh {145 375 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_tax2 {
-        label {Sales Tax2}
-        macro_name {db totals_overview sales_tax2}
-        xywh {145 410 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_sales_paid {
-        label {Sales Paid}
-        macro_name {db totals_overview sales_paid}
-        xywh {145 445 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Button btnRefreshTotals {
-        label Refresh
-        dirty_name btnRefreshTotals
-        xywh {415 155 110 25} labelsize 16
-        class My_Fl_Return_Button
-      }
-      Fl_Input db_totals_overview_buys_quoted {
-        label {Buys Quoted}
-        macro_name {db totals_overview buys_quoted}
-        xywh {415 200 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_ordered {
-        label {Buys Ordered}
-        macro_name {db totals_overview buys_ordered}
-        xywh {415 235 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_received {
-        label {Buys Received}
-        macro_name {db totals_overview buys_received}
-        xywh {415 270 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_invoiced {
-        label {Buys Invoiced}
-        macro_name {db totals_overview buys_invoiced}
-        xywh {415 305 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_discount {
-        label {Buys Discount}
-        macro_name {db totals_overview buys_discount}
-        xywh {415 340 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_tax1 {
-        label {Buys Tax1}
-        macro_name {db totals_overview buys_tax1}
-        xywh {415 375 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_tax2 {
-        label {Buys Tax2}
-        macro_name {db totals_overview buys_tax2}
-        xywh {415 410 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Input db_totals_overview_buys_paid {
-        label {Buys Paid}
-        macro_name {db totals_overview buys_paid}
-        xywh {415 445 110 25} type Float labelsize 16 textsize 16
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-    }
-  }
-  code {db_orders_order_type_id->textfont(db_orders_order_type_id->labelfont());
-db_orders_order_type_id->textsize(db_orders_order_type_id->labelsize());} {}
-} 

+ 0 - 52
SquiLu-ourbiz/print-preview-gui.fl

@@ -1,52 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"
-\#include "order-page-gui.h"} {public global
-} 
-
-widget_class PrintPreviewGroup {
-  label {Print Preview} open
-  xywh {181 165 770 440} type Double labelsize 16 hide resizable position_relative
-} {
-  Fl_Group {} {open
-    xywh {0 0 80 440}
-  } {
-    Fl_Button btnRefresh {
-      label Refresh
-      xywh {0 5 80 25} labelsize 16
-    }
-    Fl_Button btnPrinter {
-      label Printer
-      xywh {0 35 80 25} labelsize 16
-    }
-    Fl_Button btnPrint {
-      label Print
-      xywh {0 65 80 25} labelsize 16
-    }
-    Fl_Check_Button chkOnlyData {
-      label {Only Data}
-      xywh {30 118 20 25} down_box DOWN_BOX labelsize 16 align 1
-    }
-    Fl_Check_Button chkA4 {
-      label A4
-      xywh {30 165 20 25} down_box DOWN_BOX labelsize 16 align 1
-    }
-    Fl_Input iNumCopies {
-      label Copies
-      xywh {10 211 56 24} type Int labelsize 16 align 1 textsize 16
-    }
-    Fl_Browser brwPages {
-      label Pages
-      xywh {5 260 70 180} type Hold labelsize 16 align 1 textsize 16 resizable
-    }
-  }
-  Fl_Scroll PreviewScroll {open selected
-    xywh {90 0 680 440} box ENGRAVED_FRAME color 7 resizable
-    class OrderPageGroup
-  } {}
-} 

+ 0 - 77
SquiLu-ourbiz/print-preview-gui.nut

@@ -1,77 +0,0 @@
-class PrintPreviewGroup extends Fl_Group {
-  
-  // Declaration of class members
-  btnRefresh = null;
-  btnPrinter = null;
-  btnPrint = null;
-  chkOnlyData = null;
-  chkA4 = null;
-  iNumCopies = null;
-  brwPages = null;
-  PreviewScroll = null;
-  
-  constructor(){
-    base.constructor(181, 165, 770, 440, _tr("Print Preview"));
-    local _x = 181, _y = 165;
-    // Create member functions and widgets
-    {
-      local o = Fl_Group(_x + 0, _y + 0, 80, 440);
-      {
-        {
-          local o = Fl_Button(_x + 0, _y + 5, 80, 25, _tr("Refresh"));
-          btnRefresh = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(_x + 0, _y + 35, 80, 25, _tr("Printer"));
-          btnPrinter = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Button(_x + 0, _y + 65, 80, 25, _tr("Print"));
-          btnPrint = o;
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Check_Button(_x + 30, _y + 118, 20, 25, _tr("Only Data"));
-          chkOnlyData = o;
-          o.align(1);
-          o.labelsize(16);
-          o.down_box(FL_DOWN_BOX);
-        }
-        {
-          local o = Fl_Check_Button(_x + 30, _y + 165, 20, 25, _tr("A4"));
-          chkA4 = o;
-          o.align(1);
-          o.labelsize(16);
-          o.down_box(FL_DOWN_BOX);
-        }
-        {
-          local o = Fl_Int_Input(_x + 10, _y + 211, 56, 24, _tr("Copies"));
-          iNumCopies = o;
-          o.textsize(16);
-          o.align(1);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Hold_Browser(_x + 5, _y + 260, 70, 180, _tr("Pages"));
-          brwPages = o;
-          o.textsize(16);
-          o.align(1);
-          o.labelsize(16);
-          o.end();
-          Fl_Group.current().resizable(o);
-        }
-      }
-      o.end();
-    }
-    {
-      local o = OrderPageGroup(_x + 90, _y + 0, 680, 440);
-      PreviewScroll = o;
-      o.box(FL_ENGRAVED_FRAME);
-      o.color(7);
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-  }
-}

+ 0 - 529
SquiLu-ourbiz/product-edit-gui.fl

@@ -1,529 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-widget_class EditProductsWindow {
-  label {Edit Products} open
-  xywh {34 28 800 560} type Double resizable
-  class Edit_Base_Window visible
-} {
-  Fl_Output db_products_id {
-    macro_name {db products id}
-    dirty_name db_products_id
-    xywh {5 5 96 25} labeltype NO_LABEL labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Output db_products_description_ro {
-    dirty_name db_products_description_ro
-    xywh {110 5 545 25} labeltype NO_LABEL labelsize 16 textsize 16
-  }
-  Fl_Output db_products_mdate {
-    macro_name {db products mdate}
-    dirty_name db_products_mdate
-    xywh {666 5 130 25} labeltype NO_LABEL labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Output db_products_cdate {
-    macro_name {db products cdate}
-    xywh {665 35 130 25} labeltype NO_LABEL labelsize 16 textsize 16
-    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-  }
-  Fl_Tabs tabs {open
-    xywh {5 35 790 520} selection_color 4 labelsize 16 labelcolor 7 resizable
-  } {
-    Fl_Group tabMain {
-      label Main open
-      xywh {5 60 790 495} color 246 labelsize 16 resizable
-    } {
-      Fl_Input db_products_reference_code {
-        label Reference
-        macro_name {db products reference_code}
-        xywh {115 70 165 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_supplier_code {
-        label {Ref. Supp.}
-        macro_name {db products supplier_code}
-        dirty_name db_products_supplier_code
-        xywh {380 70 165 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_bar_code {
-        label Barcode
-        macro_name {db products bar_code}
-        dirty_name db_products_bar_code
-        xywh {620 70 165 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_sell_description {
-        label Description
-        macro_name {db products sell_description}
-        dirty_name db_products_sell_description
-        xywh {115 100 670 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_buy_description {
-        label {Desc. Supp.}
-        macro_name {db products buy_description}
-        dirty_name db_products_buy_description
-        xywh {115 130 670 25} labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_sell_price {
-        label {Sales Price}
-        macro_name {db products sell_price}
-        dirty_name db_products_sell_price
-        xywh {115 160 110 25} type Float labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Float_Input_Fmt
-      }
-      Fl_Choice db_products_measure_unit_id {
-        label {Measure Unit}
-        macro_name {db products measure_unit_id}
-        dirty_name db_products_measure_unit_id open
-        xywh {370 160 110 25} down_box BORDER_BOX labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Choice_Int
-      } {}
-      Fl_Choice db_products_sales_tax_id {
-        label {V.A.T.}
-        macro_name {db products sales_tax_id}
-        dirty_name db_products_sales_tax_id open
-        xywh {115 190 110 25} down_box BORDER_BOX labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Choice_Int
-      } {}
-      Fl_Choice db_products_warranty_id {
-        label Warranty
-        macro_name {db products warranty_id}
-        dirty_name db_products_warranty_id open
-        xywh {370 190 110 25} down_box BORDER_BOX labelsize 16 textsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        class Fl_Choice_Int
-      } {}
-      Fl_Input db_products_sell_quantity_min {
-        label {Sell Min. Qty.}
-        macro_name {db products sell_quantity_min}
-        dirty_name db_products_sell_quantity_min
-        xywh {370 250 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_units_by_package {
-        label {Units by Pack.}
-        macro_name {db products units_by_package}
-        dirty_name db_products_units_by_package
-        xywh {370 280 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_weight {
-        label Weight
-        macro_name {db products weight}
-        dirty_name db_products_weight
-        xywh {370 220 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_products_sell_without_stock {
-        label {Sell without stock}
-        macro_name {db products sell_without_stock}
-        xywh {10 250 215 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_products_is_active {
-        label Active
-        macro_name {db products is_active}
-        dirty_name db_products_is_active
-        xywh {10 280 110 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_products_show_on_sales {
-        label Sales
-        macro_name {db products show_on_sales}
-        dirty_name db_products_show_on_sales
-        xywh {10 310 105 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_products_show_on_buys {
-        label Buys
-        macro_name {db products show_on_buys}
-        dirty_name db_products_show_on_buys
-        xywh {10 340 95 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_products_show_on_web {
-        label Web
-        macro_name {db products show_on_web}
-        dirty_name db_products_show_on_web
-        xywh {115 310 120 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Check_Button db_products_show_price_on_web {
-        label {Web price}
-        macro_name {db products show_price_on_web}
-        dirty_name db_products_show_price_on_web
-        xywh {115 340 100 25} down_box DOWN_BOX labelsize 16
-        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Group {} {open
-        xywh {675 402 110 143}
-      } {
-        Fl_Box {} {
-          label Spacer
-          xywh {675 402 110 68} labeltype NO_LABEL resizable
-        }
-        Fl_Choice dbAction {
-          label Action
-          dirty_name dbAction open
-          xywh {675 520 110 25} down_box BORDER_BOX labelsize 16 align 1 textsize 16
-          class Fl_Choice_dbAction
-        } {}
-        Fl_Button btnDbAction {
-          label Action
-          dirty_name btnDbAction
-          xywh {675 470 110 25} labelsize 16
-        }
-      }
-      Fl_Tabs tabsMoreData {
-        dirty_name tabsMoreData open selected
-        xywh {10 370 650 181} selection_color 4 labelsize 16 labelcolor 7
-      } {
-        Fl_Group tabNotes {
-          label Notes open
-          xywh {10 400 650 150} labelsize 16
-        } {
-          Fl_Input db_products_sell_notes {
-            macro_name {db products sell_notes}
-            dirty_name db_products_sell_notes
-            xywh {10 400 650 150} type Multiline labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Fl_Text_Editor_Buffered
-          }
-        }
-        Fl_Group tabNotesSupplier {
-          label {Notes Supplier} open
-          xywh {10 400 650 150} labelsize 16 hide
-        } {
-          Fl_Input db_products_buy_notes {
-            macro_name {db products buy_notes}
-            dirty_name db_products_buy_notes
-            xywh {10 400 650 150} type Multiline labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Fl_Text_Editor_Buffered
-          }
-        }
-        Fl_Group tabTags {
-          label Tags
-          dirty_name tabTags open
-          xywh {10 400 650 150} labelsize 16 hide
-        } {
-          Fl_Input db_products_tags {
-            macro_name {db products tags}
-            dirty_name db_products_tags
-            xywh {10 400 650 150} type Multiline labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Fl_Text_Editor_Buffered
-          }
-        }
-        Fl_Group tabGroups {
-          label Groups
-          dirty_name tabGroups open
-          xywh {10 395 650 156} hide
-        } {
-          Fl_Tree db_products_group_id {
-            macro_name {db products group_id}
-            dirty_name db_products_group_id
-            xywh {10 400 650 150} labelsize 16
-            code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-            class Flu_Tree_Browser
-          }
-        }
-      }
-      Fl_Button btnImage {
-        xywh {485 158 300 232} box ENGRAVED_BOX color 7 align 80
-        class Fl_Image_Box
-      }
-      Fl_Check_Button {} {
-        label {Wrap lines}
-        callback {db_products_sell_notes->wrap_mode(o->value(), 0);
-db_products_buy_notes->wrap_mode(o->value(), 0);
-db_products_tags->wrap_mode(o->value(), 0);}
-        xywh {370 375 102 25} down_box DOWN_BOX value 1 labelsize 16
-      }
-      Fl_Input db_products_quantity_onhand {
-        label Onhand
-        macro_name {db products quantity_onhand}
-        dirty_name db_products_quantity_onhand
-        xywh {115 220 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-    }
-    Fl_Group tabPrices {
-      label Prices open
-      xywh {5 60 790 495} color 246 labelsize 16 hide
-    } {
-      Fl_Group {} {
-        label {Sales Price} open
-        xywh {15 88 770 201} box UP_BOX color 166 labelsize 16
-      } {
-        Fl_Input db_products_buy_price {
-          label {Buy $}
-          macro_name {db products buy_price}
-          dirty_name db_products_buy_price
-          xywh {25 115 115 25} type Float labelsize 16 align 5 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          class Fl_Float_Input_Fmt
-        }
-        Fl_Input db_products_buy_discount {
-          label {Buy Disc. %}
-          macro_name {db products buy_discount}
-          dirty_name db_products_buy_discount
-          xywh {151 115 115 25} type Float labelsize 16 align 5 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          code1 {o->decimal_places(-6);}
-          class Fl_Float_Input_Fmt
-        }
-        Fl_Input db_products_buy_other_costs {
-          label {Other Costs $}
-          macro_name {db products buy_other_costs}
-          dirty_name db_products_buy_other_costs
-          xywh {278 115 115 25} type Float labelsize 16 align 5 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          class Fl_Float_Input_Fmt
-        }
-        Fl_Input db_products_sell_markup {
-          label {Markup %}
-          macro_name {db products sell_markup}
-          dirty_name db_products_sell_markup
-          xywh {404 115 115 25} type Float labelsize 16 align 5 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          code1 {//o->decimal_places(-6);}
-          class Fl_Float_Input_Fmt
-        }
-        Fl_Input markup_to_discount {
-          label {Margin %}
-          xywh {531 115 115 25} type Float labelsize 16 align 5 textsize 16
-          code0 {//o->decimal_places(-6);}
-          class Fl_Float_Input_Fmt
-        }
-        Fl_Input db_products_sell_price_ro {
-          label {Sales $}
-          dirty_name db_products_sell_price_ro
-          xywh {658 115 115 25} type Float labelsize 16 align 5 textsize 16
-          class Fl_Float_Input_Fmt
-        }
-        Fl_Input db_products_price_decimals {
-          label {Decimals for calculation}
-          macro_name {db products price_decimals}
-          dirty_name db_products_price_decimals
-          xywh {530 150 30 25} type Int labelfont 1 labelsize 16 textfont 1 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          code1 {//o->decimal_places(-6);}
-        }
-        Fl_Button btnSaveProrduct {
-          label Save
-          xywh {662 150 111 25} labelsize 16
-        }
-        Fl_Input db_products_stock_min {
-          label {Stock Min.}
-          macro_name {db products stock_min}
-          dirty_name db_products_stock_min
-          xywh {665 195 110 25} type Float labelsize 16 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          code1 {o->decimal_places(-6);}
-        }
-        Fl_Input db_products_stock_max {
-          label {Stock Max.}
-          macro_name {db products stock_max}
-          dirty_name db_products_stock_max
-          xywh {665 225 110 25} type Float labelsize 16 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          code1 {o->decimal_places(-6);}
-        }
-        Fl_Input db_products_buy_quantity_min {
-          label {Buy Min. Qty.}
-          macro_name {db products buy_quantity_min}
-          dirty_name db_products_buy_quantity_min
-          xywh {665 255 110 25} type Float labelsize 16 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-          code1 {o->decimal_places(-6);}
-        }
-        Fl_Input db_products_price_formula {
-          label {Price formula}
-          macro_name {db products price_formula}
-          dirty_name db_products_price_formula
-          xywh {25 197 495 83} type Multiline labelsize 16 align 5 textsize 16
-          code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-        }
-        Fl_Output db_products_price_date {
-          label {Last Update}
-          dirty_name db_products_price_date
-          xywh {25 150 130 25} labelsize 16 align 8 textsize 16
-        }
-      }
-      Fl_Box {} {
-        label Spacer
-        xywh {15 290 770 40} labeltype NO_LABEL resizable
-      }
-      Fl_Group productPrices {
-        dirty_name productPrices open
-        xywh {15 332 770 212} box UP_BOX color 166 labeltype NO_LABEL labelsize 16
-      } {}
-    }
-    Fl_Group tabKit {
-      label Kit
-      dirty_name tabKit open
-      xywh {5 59 790 495} color 246 labelsize 16 hide
-    } {}
-    Fl_Group tabChartStatistics {
-      label Statistics open
-      xywh {5 60 790 495} color 246 labelsize 16 hide
-    } {}
-    Fl_Group tabHistory {
-      label History open
-      xywh {5 60 790 495} color 246 labelsize 16 hide
-    } {}
-    Fl_Group tabReports {
-      label Reports open
-      xywh {5 60 790 495} box UP_BOX color 246 labelsize 16 hide
-    } {
-      Fl_Group grpExportImport {
-        label {Export / Import} open
-        xywh {15 465 770 80} box ENGRAVED_FRAME labelsize 16
-      } {
-        Fl_Button btnProductsExport {
-          label {Products Export}
-          xywh {25 475 175 25} labelsize 16
-        }
-        Fl_Button btnProductsImport {
-          label {Products Import}
-          xywh {25 510 175 25} labelsize 16
-        }
-        Fl_Check_Button chkWithoutPrices {
-          label {Withouth Prices}
-          xywh {225 480 150 25} down_box DOWN_BOX labelsize 16
-        }
-        Fl_Check_Button chkWebOnly {
-          label {WEB Only}
-          xywh {225 510 150 25} down_box DOWN_BOX labelsize 16
-        }
-        Fl_Box boxExportImportCount {
-          label 0
-          xywh {405 499 42 25} labelsize 16
-        }
-        Fl_Button btnProductGroupsExport {
-          label {Product Groups Export}
-          xywh {555 475 220 25} labelsize 16
-        }
-        Fl_Button btnProductGroupsImport {
-          label {Product Groups import}
-          xywh {555 510 220 25} labelsize 16
-        }
-      }
-      Fl_Button btnUpdateWeb {
-        label {Update WEB}
-        xywh {610 70 175 25} labelsize 16
-      }
-      Fl_Group grpPrintPriceList {
-        label {Price List}
-        dirty_name grpPrintPriceList open
-        xywh {10 85 195 165} box ENGRAVED_FRAME labelsize 16
-      } {
-        Fl_Check_Button chkPriceListWithVAT {
-          label {With V.A.T.}
-          xywh {20 95 175 25} down_box DOWN_BOX labelsize 16
-        }
-        Fl_Check_Button chkPriceListSellOnWeb {
-          label {Sell on WEB}
-          xywh {20 125 170 25} down_box DOWN_BOX labelsize 16
-        }
-        Fl_Button btnPrintPriceList {
-          label Print
-          xywh {20 215 175 25} labelsize 16
-        }
-        Fl_Check_Button chkPriceListSellSales {
-          label Sales
-          xywh {20 155 175 25} down_box DOWN_BOX labelsize 16
-        }
-        Fl_Check_Button chkPriceListSellPDF {
-          label PDF
-          xywh {20 185 175 25} down_box DOWN_BOX labelsize 16
-        }
-      }
-    }
-    Fl_Group tabTotals {
-      label Totals
-      dirty_name tabTotals open
-      xywh {5 60 790 495} color 246 labelsize 16 hide
-    } {
-      Fl_Input db_products_quantity_quoted_sales {
-        label {Quantity quoted sales}
-        macro_name {db products quantity_quoted_sales}
-        xywh {220 80 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_ordered_sales {
-        label {Quantity ordered sales}
-        macro_name {db products quantity_ordered_sales}
-        xywh {220 115 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_delivered {
-        label {Quantity delivered}
-        macro_name {db products quantity_delivered}
-        xywh {220 150 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_invoiced_sales {
-        label {Quantity invoiced sales}
-        macro_name {db products quantity_invoiced_sales}
-        xywh {220 185 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_lost {
-        label {Quantity lost}
-        macro_name {db products quantity_lost}
-        xywh {220 220 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_quoted_buys {
-        label {Quantity quoted buys}
-        macro_name {db products quantity_quoted_buys}
-        xywh {665 85 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_ordered_buys {
-        label {Quantity ordered buys}
-        macro_name {db products quantity_ordered_buys}
-        xywh {665 120 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_received {
-        label {Quantity received}
-        macro_name {db products quantity_received}
-        xywh {665 155 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-      Fl_Input db_products_quantity_invoiced_buys {
-        label {Quantity invoiced buys}
-        macro_name {db products quantity_invoiced_buys}
-        xywh {665 190 110 25} type Float labelsize 16 textsize 16
-        code0 {o->decimal_places(-6);}
-        code1 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
-      }
-    }
-  }
-} 

+ 0 - 94
SquiLu-ourbiz/product-kit-gui.fl

@@ -1,94 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"} {public global
-} 
-
-widget_class ProductKitGroup {
-  label ProductKitGroup open
-  xywh {24 106 775 470} type Double labelsize 16 resizable
-  class Base_Edit_Group visible position_relative
-} {
-  Fl_Browser grid {
-    dirty_name grid
-    xywh {4 1 770 328} labelsize 16 textsize 16 resizable
-    class Fl_Data_Table
-  }
-  Fl_Group kit_group_search_edit {
-    label {Search / Edit} open
-    xywh {0 355 540 115} box UP_BOX color 166 labelsize 16
-  } {
-    Fl_Group grpSearchEdit {
-      dirty_name grpSearchEdit open
-      xywh {10 365 525 93}
-    } {
-      Fl_Input db_product_kits_product_id {
-        label Code
-        dirty_name db_product_kits_product_id
-        xywh {12 382 87 25} type Int labelsize 16 align 5 textsize 16
-      }
-      Fl_Input db_product_kits_sell_description {
-        label Description
-        dirty_name db_product_kits_sell_description
-        xywh {109 382 426 25} labelsize 16 align 5 textsize 16
-      }
-      Fl_Button btnSearchProduct {
-        label Search
-        xywh {445 433 90 25} labelsize 16
-      }
-      Fl_Input db_product_kits_quantity {
-        label Quantity
-        dirty_name db_product_kits_quantity
-        xywh {10 433 89 25} type Float labelsize 16 align 5 textsize 16
-      }
-      Fl_Input db_product_kits_product_price {
-        label Price
-        dirty_name db_product_kits_product_price
-        xywh {109 433 108 25} type Float labelsize 16 align 5 textsize 16
-      }
-      Fl_Button btnDbAction {
-        label Save
-        dirty_name btnDbAction selected
-        xywh {225 433 100 25} labelsize 16
-      }
-      Fl_Choice dbAction {
-        label Action
-        dirty_name dbAction open
-        xywh {335 433 100 25} down_box BORDER_BOX labelsize 16 align 1 textsize 16
-        class Fl_Choice_dbAction
-      } {}
-    }
-    Fl_Check_Button btnKitPartOf {
-      label {Part of}
-      dirty_name btnKitPartOf
-      xywh {430 360 100 25} down_box DOWN_BOX labelsize 16
-    }
-  }
-  Fl_Group kit_group_totals {
-    label Totals open
-    xywh {544 355 230 115} box UP_BOX color 166 labelsize 16
-  } {
-    Fl_Input kit_sales_price {
-      label Price
-      dirty_name kit_sales_price
-      xywh {664 433 100 25} type Float labelsize 16 align 5 textsize 16
-    }
-    Fl_Input kit_prices_sum {
-      label {Prices Sum}
-      xywh {664 380 100 25} type Float labelsize 16 align 5 textsize 16
-    }
-    Fl_Input kit_parts {
-      label Parts
-      xywh {554 380 100 25} type Int labelsize 16 align 5 textsize 16
-    }
-    Fl_Input kit_markup {
-      label {Markup %}
-      dirty_name kit_markup
-      xywh {554 433 100 25} type Float labelsize 16 align 5 textsize 16
-    }
-  }
-} 

+ 0 - 141
SquiLu-ourbiz/product-kit-gui.nut

@@ -1,141 +0,0 @@
-class ProductKitGroup extends Fl_Group {
-  
-// Declaration of class members
-  grid = null;
-  kit_group_search_edit = null;
-  grpSearchEdit = null;
-  db_product_kits_product_id = null;
-  db_product_kits_sell_description = null;
-  btnSearchProduct = null;
-  db_product_kits_quantity = null;
-  db_product_kits_product_price = null;
-  btnDbAction = null;
-  dbAction = null;
-  btnKitPartOf = null;
-  kit_group_totals = null;
-  kit_sales_price = null;
-  kit_prices_sum = null;
-  kit_parts = null;
-  kit_markup = null;
-  
-  constructor(){
-    base.constructor(24, 106, 775, 470, _tr("ProductKitGroup"));
-    local _x = 24, _y = 106;
-    // Create member functions and widgets
-    {
-      local o = Fl_Data_Table(_x + 4, _y + 1, 770, 328);
-      grid = o;
-      o.textsize(16);
-      o.labelsize(16);
-      o.end();
-      Fl_Group.current().resizable(o);
-    }
-    {
-      local o = Fl_Group(_x + 0, _y + 355, 540, 115, _tr("Search / Edit"));
-      kit_group_search_edit = o;
-      o.labelsize(16);
-      o.color(166);
-      o.box(FL_UP_BOX);
-      {
-        {
-          local o = Fl_Group(_x + 10, _y + 365, 525, 93);
-          grpSearchEdit = o;
-          {
-            {
-              local o = Fl_Int_Input(_x + 12, _y + 382, 87, 25, _tr("Code"));
-              db_product_kits_product_id = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Input(_x + 109, _y + 382, 426, 25, _tr("Description"));
-              db_product_kits_sell_description = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Button(_x + 445, _y + 433, 90, 25, _tr("Search"));
-              btnSearchProduct = o;
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Float_Input(_x + 10, _y + 433, 89, 25, _tr("Quantity"));
-              db_product_kits_quantity = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Float_Input(_x + 109, _y + 433, 108, 25, _tr("Price"));
-              db_product_kits_product_price = o;
-              o.textsize(16);
-              o.align(5);
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Button(_x + 225, _y + 433, 100, 25, _tr("Save"));
-              btnDbAction = o;
-              o.labelsize(16);
-            }
-            {
-              local o = Fl_Choice_dbAction(_x + 335, _y + 433, 100, 25, _tr("Action"));
-              dbAction = o;
-              o.textsize(16);
-              o.align(1);
-              o.down_box(FL_BORDER_BOX);
-              o.labelsize(16);
-            }
-          }
-          o.end();
-        }
-        {
-          local o = Fl_Check_Button(_x + 430, _y + 360, 100, 25, _tr("Part of"));
-          btnKitPartOf = o;
-          o.labelsize(16);
-          o.down_box(FL_DOWN_BOX);
-        }
-      }
-      o.end();
-    }
-    {
-      local o = Fl_Group(_x + 544, _y + 355, 230, 115, _tr("Totals"));
-      kit_group_totals = o;
-      o.labelsize(16);
-      o.color(166);
-      o.box(FL_UP_BOX);
-      {
-        {
-          local o = Fl_Float_Input(_x + 664, _y + 433, 100, 25, _tr("Price"));
-          kit_sales_price = o;
-          o.textsize(16);
-          o.align(5);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Float_Input(_x + 664, _y + 380, 100, 25, _tr("Prices Sum"));
-          kit_prices_sum = o;
-          o.textsize(16);
-          o.align(5);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Int_Input(_x + 554, _y + 380, 100, 25, _tr("Parts"));
-          kit_parts = o;
-          o.textsize(16);
-          o.align(5);
-          o.labelsize(16);
-        }
-        {
-          local o = Fl_Float_Input(_x + 554, _y + 433, 100, 25, _tr("Markup %"));
-          kit_markup = o;
-          o.textsize(16);
-          o.align(5);
-          o.labelsize(16);
-        }
-      }
-      o.end();
-    }
-  }
-}

+ 0 - 56
SquiLu-ourbiz/product-prices-gui.fl

@@ -1,56 +0,0 @@
-# data file for the Fltk User Interface Designer (fluid)
-version 1.0302 
-i18n_type 1 
-i18n_include i18n_function.h 
-i18n_function _tr 
-header_name {.h} 
-code_name {.cxx}
-decl {\#include "My_Base_App.h"} {public global
-} 
-
-widget_class ProductPricesGroup {
-  label {Product Prices by Quantity} open
-  xywh {448 139 760 220} type Double labelsize 16
-  class Base_Edit_Group visible position_relative
-} {
-  Fl_Browser grid {
-    label {Prices by Quantity}
-    dirty_name grid
-    xywh {5 5 750 155} labelsize 16 align 1 textsize 16
-    class Fl_Data_Table
-  }
-  Fl_Input db_product_prices_quantity {
-    label Quantity
-    dirty_name db_product_prices_quantity
-    xywh {5 185 100 25} type Float labelsize 16 align 5 textsize 16
-    code0 {o->decimal_places(-6);}
-  }
-  Fl_Input db_product_prices_markup_pct {
-    label {Markup %}
-    dirty_name db_product_prices_markup_pct
-    xywh {115 185 108 25} type Float labelsize 16 align 5 textsize 16
-    code0 {//o->decimal_places(-6);}
-  }
-  Fl_Input db_product_prices_discount_pct {
-    label {Discount %}
-    dirty_name db_product_prices_discount_pct
-    xywh {233 185 108 25} type Float labelsize 16 align 5 textsize 16
-    code0 {//o->decimal_places(-6);}
-  }
-  Fl_Input db_product_prices_price {
-    label Price
-    dirty_name db_product_prices_price
-    xywh {351 185 108 25} type Float labelsize 16 align 5 textsize 16
-  }
-  Fl_Button btnDbAction {
-    label Save
-    dirty_name btnDbAction selected
-    xywh {469 185 105 25} labelsize 16
-  }
-  Fl_Choice dbAction {
-    label Action
-    dirty_name dbAction open
-    xywh {590 185 105 25} down_box BORDER_BOX labelsize 16 align 1 textsize 16
-    class Fl_Choice_dbAction
-  } {}
-} 

+ 0 - 69
SquiLu-ourbiz/product-prices-gui.nut

@@ -1,69 +0,0 @@
-class ProductPricesGroup extends Fl_Group {
-  
-  // Declaration of class members
-  grid = null;
-  db_product_prices_quantity = null;
-  db_product_prices_markup_pct = null;
-  db_product_prices_discount_pct = null;
-  db_product_prices_price = null;
-  btnDbAction = null;
-  dbAction = null;
-  
-  constructor(){
-    base.constructor(448, 139, 760, 220, _tr("Product Prices by Quantity"));
-    local _x = 448, _y = 139;
-    // Create member functions and widgets
-    {
-      local o = Fl_Data_Table(_x + 5, _y + 5, 750, 155, _tr("Prices by Quantity"));
-      grid = o;
-      o.textsize(16);
-      o.align(1);
-      o.labelsize(16);
-      o.end();
-    }
-    {
-      local o = Fl_Float_Input(_x + 5, _y + 185, 100, 25, _tr("Quantity"));
-      db_product_prices_quantity = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      o->decimal_places(-6);
-    }
-    {
-      local o = Fl_Float_Input(_x + 115, _y + 185, 108, 25, _tr("Markup %"));
-      db_product_prices_markup_pct = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      //o->decimal_places(-6);
-    }
-    {
-      local o = Fl_Float_Input(_x + 233, _y + 185, 108, 25, _tr("Discount %"));
-      db_product_prices_discount_pct = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-      //o->decimal_places(-6);
-    }
-    {
-      local o = Fl_Float_Input(_x + 351, _y + 185, 108, 25, _tr("Price"));
-      db_product_prices_price = o;
-      o.textsize(16);
-      o.align(5);
-      o.labelsize(16);
-    }
-    {
-      local o = Fl_Button(_x + 469, _y + 185, 105, 25, _tr("Save"));
-      btnDbAction = o;
-      o.labelsize(16);
-    }
-    {
-      local o = Fl_Choice_dbAction(_x + 590, _y + 185, 105, 25, _tr("Action"));
-      dbAction = o;
-      o.textsize(16);
-      o.align(1);
-      o.down_box(FL_BORDER_BOX);
-      o.labelsize(16);
-    }
-  }
-}

+ 0 - 122
SquiLu-ourbiz/sales-tax-window.nut

@@ -1,122 +0,0 @@
-class SalesTaxRatesEditWindow extends MyBaseWindow {
-	grid=null;
-	editGroup=null;
-	db_sales_tax_rates_id=null;
-	db_sales_tax_rates_cdate=null;
-	db_sales_tax_rates_mdate=null;
-	db_sales_tax_rates_rate1=null;
-	db_sales_tax_rates_rate2=null;
-	db_sales_tax_rates_is_active=null;
-	db_sales_tax_rates_description=null;
-	dbAction=null;
-	btnDbAction= null;
-	db_map = null;
-	
-constructor() {
-	base.constructor(-1, -1, 500, 385, _tr("Sales Tax Rates List / Edit"));
-	db_map = {};
-	
-	dbAction = new Fl_Choice_dbAction(0, 0, 100, 25, _tr("Action"));
-	btnDbAction = new Fl_Button(0, 0, 100, 25, _tr("Action"));
-	begin();
-	this->box(FL_FLAT_BOX);
-	this->color(FL_BACKGROUND_COLOR);
-	this->selection_color(FL_BACKGROUND_COLOR);
-	this->labeltype(FL_NO_LABEL);
-	this->labelfont(0);
-	this->labelsize(16);
-	this->labelcolor(FL_FOREGROUND_COLOR);
-	this->align((FL_ALIGN_TOP));
-	this->when(FL_WHEN_RELEASE);
-	{ grid = new Fl_Data_Table(5, 5, 490, 200);
-	  grid->tooltip(_tr("List of available sales tax"));
-	  grid->type(3);
-	  grid->box(FL_NO_BOX);
-	  grid->color(FL_BACKGROUND2_COLOR);
-	  grid->selection_color(FL_SELECTION_COLOR);
-	  grid->labeltype(FL_NO_LABEL);
-	  grid->labelfont(0);
-	  grid->labelsize(16);
-	  grid->labelcolor(FL_FOREGROUND_COLOR);
-	  grid->textsize(16);
-	  grid->align((FL_ALIGN_BOTTOM));
-	  grid->when(FL_WHEN_RELEASE_ALWAYS);
-	  Fl_Group.current()->resizable(grid);
-	} // Fl_Data_Table* grid
-	{ editGroup = new Fl_Group(5, 215, 490, 165);
-	  editGroup->box(FL_ENGRAVED_BOX);
-	  editGroup->color(246);
-	  editGroup->labelsize(16);
-	  editGroup->align((FL_ALIGN_RIGHT));
-	  { db_sales_tax_rates_id = new Fl_Output(15, 240, 82, 26, _tr("ID"));
-	    db_sales_tax_rates_id->tooltip(_tr("The unique identifier"));
-	    db_sales_tax_rates_id->labelsize(16);
-	    db_sales_tax_rates_id->textsize(16);
-	    db_sales_tax_rates_id->align((FL_ALIGN_TOP_LEFT));
-	    add_input_field_to_map("sales_tax_rates", "id", db_sales_tax_rates_id);
-	  } // Fl_Output* db_sales_tax_rates_id
-	  { db_sales_tax_rates_cdate = new Fl_Output(115, 240, 120, 25, _tr("CDate"));
-	    db_sales_tax_rates_cdate->tooltip(_tr("The creation date"));
-	    db_sales_tax_rates_cdate->labelsize(16);
-	    db_sales_tax_rates_cdate->textsize(16);
-	    db_sales_tax_rates_cdate->align((FL_ALIGN_TOP_LEFT));
-	    add_input_field_to_map("sales_tax_rates", "cdate", db_sales_tax_rates_cdate);
-	  } // Fl_Output* db_sales_tax_rates_cdate
-	  { db_sales_tax_rates_mdate = new Fl_Output(255, 240, 120, 25, _tr("MDate"));
-	    db_sales_tax_rates_mdate->tooltip(_tr("The modification date"));
-	    db_sales_tax_rates_mdate->labelsize(16);
-	    db_sales_tax_rates_mdate->textsize(16);
-	    db_sales_tax_rates_mdate->align((FL_ALIGN_TOP_LEFT));
-	    add_input_field_to_map("sales_tax_rates", "mdate", db_sales_tax_rates_mdate);
-	  } // Fl_Output* db_sales_tax_rates_mdate
-	  { db_sales_tax_rates_rate1 = new Fl_Float_Input(15, 295, 82, 25, _tr("V.A.T. %"));
-	    db_sales_tax_rates_rate1->tooltip(_tr("Main sales tax percentage"));
-	    db_sales_tax_rates_rate1->type(1);
-	    db_sales_tax_rates_rate1->labelsize(16);
-	    db_sales_tax_rates_rate1->textfont(1);
-	    db_sales_tax_rates_rate1->textsize(16);
-	    db_sales_tax_rates_rate1->align((FL_ALIGN_TOP_LEFT));
-	    add_input_field_to_map("sales_tax_rates", "rate1", db_sales_tax_rates_rate1);
-	  } // Fl_Float_Input* db_sales_tax_rates_rate1
-	  { db_sales_tax_rates_rate2 = new Fl_Float_Input(115, 295, 82, 25, _tr("R.E. %"));
-	    db_sales_tax_rates_rate2->tooltip(_tr("Secondary sales tax percentage"));
-	    db_sales_tax_rates_rate2->type(1);
-	    db_sales_tax_rates_rate2->labelsize(16);
-	    db_sales_tax_rates_rate2->textfont(1);
-	    db_sales_tax_rates_rate2->textsize(16);
-	    db_sales_tax_rates_rate2->align((FL_ALIGN_TOP_LEFT));
-	    add_input_field_to_map("sales_tax_rates", "rate2", db_sales_tax_rates_rate2);
-	  } // Fl_Float_Input* db_sales_tax_rates_rate2
-	  { db_sales_tax_rates_is_active = new Fl_Check_Button(255, 294, 100, 23, _tr("Active"));
-	    db_sales_tax_rates_is_active->tooltip(_tr("We can deactivate instead of delete it"));
-	    db_sales_tax_rates_is_active->down_box(FL_DOWN_BOX);
-	    db_sales_tax_rates_is_active->labelsize(16);
-	    add_input_field_to_map("sales_tax_rates", "is_active", db_sales_tax_rates_is_active);
-	  } // Fl_Check_Button* db_sales_tax_rates_is_active
-	  { db_sales_tax_rates_description = new Fl_Input(15, 345, 350, 25, _tr("Description"));
-	    db_sales_tax_rates_description->tooltip(_tr("A friendly description to identify this tax"));
-	    db_sales_tax_rates_description->labelsize(16);
-	    db_sales_tax_rates_description->textfont(1);
-	    db_sales_tax_rates_description->textsize(16);
-	    db_sales_tax_rates_description->align((FL_ALIGN_TOP_LEFT));
-	    add_input_field_to_map("sales_tax_rates", "description", db_sales_tax_rates_description);
-	  } // Fl_Input* db_sales_tax_rates_description
-	  { 
-	    Fl_Group.current()->add(dbAction);
-	    dbAction->resize(380, 310, 105, 25);
-	    dbAction->down_box(FL_BORDER_BOX);
-	    dbAction->labeltype(FL_NO_LABEL);
-	    dbAction->labelsize(16);
-	    dbAction->textsize(16);
-	  } // Fl_Choice* dbAction
-	  { 
-	    Fl_Group.current()->add(btnDbAction);
-	    btnDbAction->resize(380, 345, 105, 25);
-	    btnDbAction->label(_tr("Action"));
-	    btnDbAction->labelsize(16);
-	  } // Fl_Button* btnDbAction
-	  editGroup->end();
-	} // Fl_Group* editGroup
-	end();
-}
-}