# data file for the Fltk User Interface Designer (fluid)
version 1.0303 
i18n_type 1 
i18n_include i18n_function.h 
i18n_function _tr 
header_name {.h} 
code_name {.cxx}
widget_class HelpWindow {
  label Help
  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
    }
  }
} 

widget_class CalendarWindow {
  label Calendar
  xywh {732 184 350 305} type Double labelsize 16 hide
  class Base_Window
} {
  Fl_Box label_month {
    label Calendar
    xywh {5 5 340 25} box ENGRAVED_BOX color 7 labelsize 16
  }
  Fl_Browser grid {
    dirty_name grid
    xywh {5 35 340 202} labeltype NO_LABEL labelsize 16
    class Fl_Data_Table
  }
  Fl_Group month_buttons {
    dirty_name month_buttons open
    xywh {6 241 340 25} labelsize 16
  } {
    Fl_Button btnMonth1 {
      label 1
      xywh {6 241 25 25}
    }
    Fl_Button btnMonth2 {
      label 2
      xywh {34 241 25 25}
    }
    Fl_Button btnMonth3 {
      label 3
      xywh {63 241 25 25}
    }
    Fl_Button btnMonth4 {
      label 4
      xywh {91 241 25 25}
    }
    Fl_Button btnMonth5 {
      label 5
      xywh {120 241 25 25}
    }
    Fl_Button btnMonth6 {
      label 6
      xywh {148 241 25 25}
    }
    Fl_Button btnMonth7 {
      label 7
      xywh {177 241 25 25}
    }
    Fl_Button btnMonth8 {
      label 8
      xywh {205 241 25 25}
    }
    Fl_Button btnMonth9 {
      label 9
      xywh {234 241 25 25}
    }
    Fl_Button btnMonth10 {
      label 10
      xywh {262 241 25 25}
    }
    Fl_Button btnMonth11 {
      label 11
      xywh {291 241 25 25}
    }
    Fl_Button btnMonth12 {
      label 12
      xywh {320 241 25 25}
    }
  }
  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
    }
  }
} 

widget_class DeliveryCalcWindow {
  label {Delivery Calc}
  xywh {338 167 415 285} type Double labelsize 16 hide
  class Base_Window
} {
  Fl_Input gui_destination_zone {
    label {Destination Zone}
    dirty_name gui_destination_zone
    xywh {10 25 395 25} labelsize 16 align 5 textsize 16
    class Flu_Combo_List
  }
  Fl_Input gui_destination_city {
    label {Destination City}
    dirty_name gui_destination_city
    xywh {10 80 395 25} labelsize 16 align 5 textsize 16
    class Flu_Combo_List
  }
  Fl_Input gui_weight {
    label Weight
    dirty_name gui_weight
    xywh {10 132 100 25} type Float labelsize 16 align 5 textfont 1 textsize 16
  }
  Fl_Output gui_cost {
    label Cost
    dirty_name gui_cost
    xywh {130 133 130 24} labelsize 16 align 5 textsize 16
    code0 {o->right_to_left(1);}
    code1 {o->use_numeric_format(1);}
  }
  Fl_Output gui_discount {
    label Discount
    dirty_name gui_discount
    xywh {276 131 130 24} labelsize 16 align 5 textsize 16
    code0 {o->right_to_left(1);}
    code1 {o->use_numeric_format(1);}
  }
  Fl_Output gui_subtotal {
    label Subtotal
    dirty_name gui_subtotal
    xywh {130 185 130 24} labelsize 16 align 5 textsize 16
    code0 {o->right_to_left(1);}
    code1 {o->use_numeric_format(1);}
  }
  Fl_Output gui_insurance {
    label Insurance
    dirty_name gui_insurance
    xywh {275 181 130 24} labelsize 16 align 5 textsize 16
    code0 {o->right_to_left(1);}
    code1 {o->use_numeric_format(1);}
  }
  Fl_Output gui_increment {
    label Increment
    dirty_name gui_increment
    xywh {276 219 130 24} labelsize 16 textsize 16
    code0 {o->right_to_left(1);}
    code1 {o->use_numeric_format(1);}
  }
  Fl_Output gui_total {
    label Total
    dirty_name gui_total
    xywh {276 253 130 24} labelsize 16 textfont 1 textsize 16
    code0 {o->right_to_left(1);}
    code1 {o->use_numeric_format(1);}
  }
  Fl_Button gui_btnCalc {
    label Calc
    dirty_name gui_btnCalc
    tooltip {Calculate the delivery price} xywh {10 217 100 25} labelsize 16
  }
  Fl_Button gui_btnAdd {
    label Add
    dirty_name gui_btnAdd
    tooltip {Add the calculated value on the invoice line} xywh {10 252 100 25} labelsize 16
  }
} 

widget_class ListSearchWindow {
  label {List Search}
  xywh {132 118 800 560} type Double labelsize 16 hide resizable
  class Base_Window
} {
  Fl_Group topGroup {open
    xywh {0 0 800 35} labelsize 16
  } {
    Fl_Input group_filter {
      dirty_name group_filter
      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);}
    } {}
  }
} 

widget_class BarChartGroup {
  label BarChartGroup
  xywh {288 260 760 460} type Double labelsize 16 hide resizable position_relative
} {
  Fl_Pack pack {open
    xywh {0 0 760 25} type HORIZONTAL labelsize 16
    code0 {o->spacing(10);}
  } {
    Fl_Button btnShowChart {
      label Show
      xywh {0 0 96 25} labelsize 16
    }
    Fl_Input periodes_to_show {
      tooltip {Write then number of periodes you want to see} xywh {106 0 80 25} type Int labeltype NO_LABEL labelsize 16 textsize 16
      code0 {o->value("12");}
    }
    Fl_Round_Button btn_periode_is_years {
      label Years
      dirty_name btn_periode_is_years
      xywh {196 0 110 25} type Radio down_box ROUND_DOWN_BOX labelsize 16
    }
    Fl_Round_Button btn_periode_is_months {
      label Months
      dirty_name btn_periode_is_months
      xywh {316 0 110 25} type Radio down_box ROUND_DOWN_BOX labelsize 16
      code0 {o->setonly();}
    }
    Fl_Round_Button btn_periode_is_weeks {
      label Weeks
      dirty_name btn_periode_is_weeks
      xywh {436 0 110 25} type Radio down_box ROUND_DOWN_BOX labelsize 16
    }
    Fl_Round_Button btn_periode_is_days {
      label Days
      dirty_name btn_periode_is_days
      xywh {556 0 110 25} type Radio down_box ROUND_DOWN_BOX labelsize 16
    }
    Fl_Check_Button chkOpt {
      dirty_name chkOpt
      xywh {660 5 64 15} down_box DOWN_BOX hide
    }
  }
  Fl_Box bar_chart {
    dirty_name bar_chart
    xywh {0 30 760 430} color 7 labeltype NO_LABEL labelsize 16 align 5 resizable
    class Fl_Bar_Chart
  }
} 

widget_class HistoryGroup {
  label History
  xywh {13 33 760 465} type Double labelsize 16 hide resizable 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 {
    xywh {0 33 760 432} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
} 

widget_class BaseReportA4 {
  label BaseReportA4
  xywh {178 95 420 590} type Double hide resizable
  class Fl_Window
} {
  Fl_Box rpt_Logo {
    label Ourbiz
    dirty_name rpt_Logo
    xywh {10 5 105 35} labeltype SHADOW_LABEL labelfont 3 labelsize 30 align 660
  }
  Fl_Box rpt_Title {
    label {Report Title}
    dirty_name rpt_Title
    xywh {120 5 295 20} labelfont 1 labelsize 16
  }
  Fl_Box rpt_SubTitle {
    label Date
    dirty_name rpt_SubTitle
    xywh {120 30 290 10} labelsize 8 align 24
  }
  Fl_Box {} {
    label Line
    xywh {10 40 405 1} box FLAT_BOX color 34 labeltype NO_LABEL
  }
  Fl_Browser rpt_Body {
    dirty_name rpt_Body
    xywh {10 45 408 495} labelsize 8 textsize 8 resizable
    code0 {o->has_scrollbar(FLVS_NONE);}
    code1 {o->feature_remove(FLVF_ROW_SELECT | FLVF_PERSIST_SELECT);}
    code2 {o->for_print(true);}
    class Fl_Data_Table
  }
  Fl_Box {} {
    label Line
    xywh {10 545 405 1} box FLAT_BOX color 34 labeltype NO_LABEL
  }
  Fl_Box rpt_SubFooter {
    label Page
    dirty_name rpt_SubFooter
    xywh {10 547 405 10} labelfont 1 labelsize 8 align 16
  }
  Fl_Box rpt_Footer {
    label {OURBIZ is an excelente application to manage a business.}
    dirty_name rpt_Footer
    xywh {10 560 405 19} labelfont 2 labelsize 8 align 145
  }
} 

widget_class PrintPreviewGroup {
  label {Print Preview}
  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
    xywh {90 0 680 440} box ENGRAVED_FRAME color 7 resizable
    class OrderPageGroup
  } {}
} 

widget_class OrderPageGroup {
  label InvoiceA4
  xywh {213 39 630 685} type Double hide resizable
  class Fl_Scroll 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
        }
      }
    }
  }
} 

widget_class ProductPricesGroup {
  label {Product Prices by Quantity}
  xywh {48 153 760 220} type Double labelsize 16 hide 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
    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
  } {}
} 

widget_class ProductKitGroup {
  label ProductKitGroup
  xywh {24 106 775 470} type Double labelsize 16 hide resizable 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
        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
    }
  }
} 

widget_class AskLoginWindow {
  label {Server Login}
  xywh {246 157 500 120} type Double labelsize 16 hide hotspot
  class Fl_Double_Window
} {
  Fl_Input host {
    label Host
    dirty_name host
    xywh {10 30 405 25} labelsize 16 align 5 textsize 16
    code0 {o->value("localhost");}
  }
  Fl_Input port {
    label Port
    dirty_name port
    xywh {425 30 65 25} type Int labelsize 16 align 5 textsize 16
    code0 {o->value("8888");}
  }
  Fl_Input user {
    label User
    dirty_name user
    xywh {10 85 170 25} labelsize 16 align 5 textsize 16
  }
  Fl_Input password {
    label Password
    dirty_name password
    xywh {200 85 170 25} type Secret labelsize 16 align 5 textsize 16
  }
  Fl_Return_Button btnConnect {
    label Connect
    dirty_name btnConnect
    xywh {385 85 106 25}
  }
} 

widget_class AppUsersEditWindow {
  label {App Users List / Edit}
  xywh {282 148 500 500} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 490 140} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 148 489 347} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_app_users_id {
      label ID
      macro_name {db app_users id}
      xywh {15 173 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_app_users_cdate {
      label CDate
      macro_name {db app_users cdate}
      xywh {115 173 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_app_users_mdate {
      label MDate
      macro_name {db app_users mdate}
      xywh {255 173 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_app_users_is_active {
      label Active
      macro_name {db app_users is_active}
      xywh {385 175 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_app_users_user_name {
      label UserName
      macro_name {db app_users user_name}
      xywh {15 225 140 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_app_users_password1 {
      label Password
      macro_name {db app_users password1}
      xywh {180 225 140 25} type Secret labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_app_users_password2 {
      label {Repite Password}
      macro_name {db app_users password2}
      xywh {345 225 140 25} type Secret labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_app_users_name {
      label Name
      macro_name {db app_users name}
      xywh {15 275 470 25} 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 {380 428 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 463 105 25} labelsize 16
    }
    Fl_Text_Editor db_app_users_rights {
      label Rights
      macro_name {db app_users rights}
      xywh {15 325 470 55} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      class Fl_Text_Editor_Buffered
    }
    Fl_Text_Editor db_app_users_notes {
      label Notes
      macro_name {db app_users notes}
      xywh {15 398 360 90} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      class Fl_Text_Editor_Buffered
    }
    Fl_Check_Button {} {
      label {Wrap lines}
      xywh {380 398 105 25} down_box DOWN_BOX value 1 labelsize 16
    }
  }
} 

widget_class AppConfigEditWindow {
  label {Application Configuration List / Edit}
  xywh {346 83 500 490} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 490 200} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 215 490 269} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_config_id {
      label ID
      macro_name {db config id}
      xywh {15 240 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_config_cdate {
      label CDate
      macro_name {db config cdate}
      xywh {115 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_config_mdate {
      label MDate
      macro_name {db config mdate}
      xywh {255 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_config_is_active {
      label Active
      macro_name {db config is_active}
      xywh {385 242 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_config_key {
      label Key
      macro_name {db config key}
      xywh {15 292 350 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_config_value {
      label Value
      macro_name {db config value}
      xywh {15 345 350 25} 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 {380 310 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 345 105 25} labelsize 16
    }
    Fl_Input db_config_notes {
      label Notes
      macro_name {db config notes}
      xywh {15 398 470 76} type Multiline labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
  }
} 

widget_class TanslationsWindow {
  label Translations
  xywh {217 76 490 560} type Double hide
  class List_Edit_Base_Window
} {
  Fl_Tabs myTabs {
    dirty_name myTabs open
    xywh {5 10 482 505} labelsize 16
  } {
    Fl_Group tabLanguages {
      label Languages
      dirty_name tabLanguages open
      xywh {5 40 480 475} labelsize 16 hide
    } {
      Fl_Browser grid_languages {
        dirty_name grid_languages
        xywh {21 55 456 215} labelsize 16 textsize 16
        class Fl_Data_Table
      }
      Fl_Input db_languages_lang {
        label Code
        dirty_name db_languages_lang
        xywh {20 295 75 25} labelsize 16 align 5 textsize 16
      }
      Fl_Input db_languages_date_format {
        label {Date format}
        dirty_name db_languages_date_format
        xywh {366 295 110 25} labelsize 16 align 5 textsize 16
      }
      Fl_Input db_languages_name {
        label Name
        dirty_name db_languages_name
        xywh {20 345 456 25} labelsize 16 align 5 textsize 16
      }
      Fl_Input db_languages_native_name {
        label {Native Name}
        dirty_name db_languages_native_name
        xywh {20 395 456 25} labelsize 16 align 5 textsize 16
      }
      Fl_Input db_languages_decimal_sep {
        label {Separators -> Decimal}
        dirty_name db_languages_decimal_sep
        xywh {205 430 35 40} labelsize 16 textsize 40
      }
      Fl_Input db_languages_thousand_sep {
        label Thousand
        dirty_name db_languages_thousand_sep
        xywh {345 430 35 40} labelsize 16 textsize 40
      }
    }
    Fl_Group tabTranslations {
      label Translations
      dirty_name tabTranslations open
      xywh {5 40 480 475} labelsize 16
    } {
      Fl_Browser grid_translations {
        dirty_name grid_translations
        xywh {16 55 461 180} labelsize 16 textsize 16
        class Fl_Data_Table
      }
      Fl_Choice db_translations_language {
        label Language
        dirty_name db_translations_language open
        xywh {16 260 461 30} down_box BORDER_BOX labelsize 16 align 5 textsize 16
        class Fl_Choice_Int
      } {}
      Fl_Input db_translations_values_svalue {
        label Content
        dirty_name db_translations_values_svalue
        xywh {16 315 461 160} type Multiline labelsize 16 align 5 textsize 16
      }
      Fl_Button btnTransSearch {
        label {Sea&rch}
        dirty_name btnTransSearch
        xywh {301 480 80 25} labelsize 16
      }
      Fl_Button btnTransClear {
        label {Cl&ear}
        callback {db_translations_values_svalue->value("");}
        dirty_name btnTransClear
        xywh {396 480 80 25} labelsize 16
      }
    }
  }
  Fl_Choice dbAction {
    dirty_name dbAction open
    xywh {26 525 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
    class Fl_Choice_dbAction
  } {}
  Fl_Button btnDbAction {
    label Action
    dirty_name btnDbAction
    xywh {151 525 105 25} labelsize 16
  }
} 

widget_class PaymentTypesEditWindow {
  label {Payment Types List / Edit}
  xywh {302 168 500 500} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 490 140} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 148 489 347} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_payment_types_id {
      label ID
      macro_name {db payment_types id}
      dirty_name db_payment_types_id
      xywh {15 173 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_payment_types_cdate {
      label CDate
      macro_name {db payment_types cdate}
      dirty_name db_payment_types_cdate
      xywh {115 173 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_payment_types_mdate {
      label MDate
      macro_name {db payment_types mdate}
      dirty_name db_payment_types_mdate
      xywh {255 173 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_payment_types_is_active {
      label Active
      macro_name {db payment_types is_active}
      dirty_name db_payment_types_is_active
      xywh {385 175 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_payment_types_code {
      label Code
      macro_name {db payment_types code}
      dirty_name db_payment_types_code
      xywh {15 225 82 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_payment_types_description {
      label Description
      macro_name {db payment_types description}
      dirty_name db_payment_types_description
      xywh {105 225 380 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input npayments {
      label {\# Payments}
      dirty_name npayments
      xywh {380 275 105 25} type Int labelsize 16 align 5 textsize 16
    }
    Fl_Choice payment_periodes {
      label Periodes
      dirty_name payment_periodes open
      xywh {380 320 105 25} down_box BORDER_BOX labelsize 16 align 5 textsize 16
    } {}
    Fl_Button btnGenerateTerms {
      label Generate
      dirty_name btnGenerateTerms
      xywh {380 355 105 25} labelsize 16
    }
    Fl_Choice dbAction {
      dirty_name dbAction open
      xywh {380 428 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 463 105 25} labelsize 16
    }
    Fl_Text_Editor db_payment_types_payment_terms {
      label {Terms (\#  %  after  periode)}
      macro_name {db payment_types payment_terms}
      xywh {15 275 360 105} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      class Fl_Text_Editor_Buffered
    }
    Fl_Text_Editor db_payment_types_notes {
      label Notes
      macro_name {db payment_types notes}
      dirty_name db_payment_types_notes
      xywh {15 398 360 90} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      class Fl_Text_Editor_Buffered
    }
    Fl_Check_Button {} {
      label {Wrap lines}
      xywh {380 398 105 25} down_box DOWN_BOX value 1 labelsize 16
    }
  }
} 

widget_class WarrantyTypesEditWindow {
  label {Warranty Types List / Edit}
  xywh {219 105 500 385} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 490 200} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 215 490 165} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_warranty_types_id {
      label ID
      macro_name {db warranty_types id}
      dirty_name db_measure_units_id
      xywh {15 240 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_warranty_types_cdate {
      label CDate
      macro_name {db warranty_types cdate}
      dirty_name db_measure_units_cdate
      xywh {115 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_warranty_types_mdate {
      label MDate
      macro_name {db warranty_types mdate}
      dirty_name db_measure_units_mdate
      xywh {255 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_warranty_types_code {
      label Code
      macro_name {db warranty_types code}
      dirty_name db_measure_units_code
      xywh {15 295 82 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_warranty_types_is_active {
      label Active
      macro_name {db warranty_types is_active}
      dirty_name db_measure_units_is_active
      xywh {385 242 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_warranty_types_description {
      label Description
      macro_name {db warranty_types description}
      dirty_name db_measure_units_description
      xywh {15 345 360 25} 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 {380 310 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 345 105 25} labelsize 16
    }
  }
} 

widget_class MeasureUnitsEditWindow {
  label {Measure Units List / Edit}
  xywh {286 134 500 385} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 490 200} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 215 490 165} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_measure_units_id {
      label ID
      macro_name {db measure_units id}
      dirty_name db_measure_units_id
      xywh {15 240 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_measure_units_cdate {
      label CDate
      macro_name {db measure_units cdate}
      dirty_name db_measure_units_cdate
      xywh {115 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_measure_units_mdate {
      label MDate
      macro_name {db measure_units mdate}
      dirty_name db_measure_units_mdate
      xywh {255 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_measure_units_code {
      label Code
      macro_name {db measure_units code}
      dirty_name db_measure_units_code
      xywh {15 295 82 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_measure_units_is_active {
      label Active
      macro_name {db measure_units is_active}
      dirty_name db_measure_units_is_active
      xywh {385 242 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_measure_units_description {
      label Description
      macro_name {db measure_units description}
      dirty_name db_measure_units_description
      xywh {15 345 360 25} 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 {380 310 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 345 105 25} labelsize 16
    }
  }
} 

widget_class SalesTaxRatesEditWindow {
  label {Sales Tax Rates List / Edit}
  xywh {266 87 500 385} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    tooltip {List of available sales tax} xywh {5 5 490 200} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 215 490 165} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_sales_tax_rates_id {
      label ID
      macro_name {db sales_tax_rates id}
      tooltip {The unique identifier} xywh {15 240 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_sales_tax_rates_cdate {
      label CDate
      macro_name {db sales_tax_rates cdate}
      tooltip {The creation date} xywh {115 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_sales_tax_rates_mdate {
      label MDate
      macro_name {db sales_tax_rates mdate}
      tooltip {The modification date} xywh {255 240 120 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_sales_tax_rates_rate1 {
      label {V.A.T. %}
      macro_name {db sales_tax_rates rate1}
      dirty_name db_sales_tax_rates_rate1
      tooltip {Main sales tax percentage} xywh {15 295 82 25} type Float labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_sales_tax_rates_rate2 {
      label {R.E. %}
      macro_name {db sales_tax_rates rate2}
      dirty_name db_sales_tax_rates_rate2
      tooltip {Secondary sales tax percentage} xywh {115 295 82 25} type Float labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_sales_tax_rates_is_active {
      label Active
      macro_name {db sales_tax_rates is_active}
      dirty_name db_sales_tax_rates_is_active
      tooltip {We can deactivate instead of delete it} xywh {255 294 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_sales_tax_rates_description {
      label Description
      macro_name {db sales_tax_rates description}
      dirty_name db_sales_tax_rates_description
      tooltip {A friendly description to identify this tax} xywh {15 345 350 25} 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 {380 310 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 345 105 25} labelsize 16
    }
  }
} 

widget_class OrderTypesEditWindow {
  label {Order Types List / Edit}
  xywh {100 110 800 535} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 790 200} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 210 790 320} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Input db_order_types_code {
      label Code
      macro_name {db order_types code}
      dirty_name db_order_types_code
      xywh {103 233 82 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_description_to_print {
      label {Description to print}
      macro_name {db order_types description_to_print}
      dirty_name db_order_types_description_to_print
      xywh {195 233 225 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_series {
      label Series
      macro_name {db order_types series}
      dirty_name db_order_types_series
      xywh {430 233 82 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_numbering {
      label Number
      macro_name {db order_types numbering}
      dirty_name db_order_types_numbering
      xywh {522 233 98 25} type Int labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_group_order {
      label {Grp 1}
      macro_name {db order_types group_order}
      dirty_name db_order_types_group_order
      xywh {630 233 70 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_subgroup_order {
      label {Grp 2}
      macro_name {db order_types subgroup_order}
      dirty_name db_order_types_subgroup_order
      xywh {710 233 75 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Pack pack {open
      xywh {15 266 770 29} type HORIZONTAL labelsize 16
      code0 {o->with_label(1);}
      code1 {o->spacing(10);}
    } {
      Fl_Check_Button db_order_types_is_active {
        label Active
        macro_name {db order_types is_active}
        dirty_name db_order_types_is_active
        xywh {20 270 78 25} down_box DOWN_BOX labelsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Check_Button db_order_types_with_sales_tax {
        label {With V.A.T.}
        macro_name {db order_types with_sales_tax}
        dirty_name db_order_types_with_sales_tax
        xywh {100 270 100 25} down_box DOWN_BOX labelsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Check_Button db_order_types_with_sales_tax_included {
        label {V.A.T. Included}
        macro_name {db order_types with_sales_tax_included}
        dirty_name db_order_types_with_sales_tax_included
        xywh {220 270 100 25} down_box DOWN_BOX labelsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Check_Button db_order_types_show_sales_tax {
        label {Show V.A.T.}
        macro_name {db order_types show_sales_tax}
        dirty_name db_order_types_show_sales_tax
        xywh {365 270 100 25} down_box DOWN_BOX labelsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Check_Button db_order_types_show_prices {
        label {Show prices}
        macro_name {db order_types show_prices}
        dirty_name db_order_types_show_prices
        xywh {490 270 100 25} down_box DOWN_BOX labelsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
    }
    Fl_Input db_order_types_description {
      label Description
      macro_name {db order_types description}
      dirty_name db_order_types_description
      xywh {15 315 385 25} labelsize 16 align 5 textfont 1 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_payment {
      label Payment
      macro_name {db order_types with_payment}
      xywh {425 435 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_inventory {
      label Inventory
      macro_name {db order_types with_inventory}
      xywh {425 375 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_order {
      label Order
      macro_name {db order_types with_order}
      xywh {425 345 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_credit {
      label Credit
      macro_name {db order_types with_credit}
      xywh {425 465 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_order_types_is_incoming {
      label Income
      macro_name {db order_types is_incoming}
      dirty_name db_order_types_is_incoming
      xywh {655 350 125 25} type Radio down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_order_types_is_expense {
      label Expense
      macro_name {db order_types is_expense}
      dirty_name db_order_types_is_expense
      xywh {655 315 125 25} type Radio down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Choice dbAction {
      dirty_name dbAction open
      xywh {679 385 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 {681 424 104 28} labelsize 16
    }
    Fl_Input db_order_types_notes {
      label Notes
      macro_name {db order_types notes}
      dirty_name db_order_types_notes
      xywh {15 362 385 158} type Multiline labelsize 16 align 5 when 8 textsize 16 resizable
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Output db_order_types_id {
      label ID
      macro_name {db order_types id}
      dirty_name db_order_types_id
      xywh {15 233 78 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_quote {
      label Quote
      macro_name {db order_types with_quote}
      xywh {425 315 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_invoice {
      label Invoice
      macro_name {db order_types with_invoice}
      xywh {425 405 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_order_types_with_lost {
      label Lost
      macro_name {db order_types with_lost}
      xywh {425 495 30 25} labelsize 16 align 8 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
  }
} 

widget_class ImageWindow {
  label Image
  xywh {325 355 305 260} type Double color 7 labelsize 16 hide resizable
  class Base_Window
} {
  Fl_Button btnImage {
    xywh {0 0 305 263} box NO_BOX resizable
    class Fl_Image_Box
  }
} 

widget_class DynamicQueryWindow {
  label {Dynamic Data}
  xywh {285 319 700 400} type Double hide resizable
  class Edit_Base_Window
} {
  Fl_Browser grid {
    dirty_name grid
    xywh {5 5 690 390} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
} 

widget_class ImagesListEditWindow {
  label {Images List / Edit}
  xywh {81 129 800 560} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 790 295} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 305 790 250} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Group {} {open
      xywh {15 315 435 232}
    } {
      Fl_Output db_images_id {
        label ID
        macro_name {db images id}
        dirty_name db_images_id
        xywh {15 328 78 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_images_name {
        label Name
        macro_name {db images name}
        dirty_name db_images_name
        xywh {103 328 347 25} labelsize 16 align 5 textfont 1 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_images_group_set {
        label Group
        macro_name {db images group_set}
        dirty_name db_images_group_set
        xywh {15 380 80 25} type Int labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Output db_images_mime_type {
        label Type
        macro_name {db images mime_type}
        dirty_name db_images_mime_type
        xywh {105 380 115 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Output db_images_mdate {
        label {Update Date}
        macro_name {db images mdate}
        dirty_name db_images_mdate
        xywh {225 380 110 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Output db_images_cdate {
        label {Create Date}
        macro_name {db images cdate}
        dirty_name db_images_cdate
        xywh {338 380 110 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Button btnSearch {
        label Search
        xywh {345 455 104 25} labelsize 16
      }
      Fl_Choice dbAction {
        dirty_name dbAction open
        xywh {343 487 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 {345 519 104 28} labelsize 16
      }
      Fl_Input db_images_description {
        label Notes
        macro_name {db images description}
        dirty_name db_images_description
        xywh {15 430 320 115} type Multiline labelsize 16 align 5 when 8 textsize 16 resizable
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input query_limit {
        label Limit
        xywh {385 425 60 25} type Int labelsize 16 textsize 16
        code0 {o->value("50");}
      }
      Fl_Box img_size {
        label Size
        dirty_name img_size
        xywh {225 405 109 25} labelsize 16
      }
    }
    Fl_Button btnImage {
      xywh {485 315 300 232} box ENGRAVED_FRAME align 80 resizable
      class Fl_Image_Box
    }
  }
} 

widget_class GroupsListEditWindow {
  label {Groups List / Edit}
  xywh {328 91 800 560} type Double labelsize 16 hide resizable
  class Edit_Base_Window
} {
  Fl_Tree tree {
    dirty_name tree
    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
    }
  }
} 

widget_class OrdersSumWindow {
  label {Orders Sum}
  xywh {92 155 800 560} type Double labelsize 16 hide resizable
  class Edit_Base_Window
} {
  Fl_Browser grid_orders_sum {
    label {@2 Orders Sum @2}
    dirty_name grid_orders_sum
    xywh {5 4 790 202} type Multi box ENGRAVED_BOX color 175 labelsize 16 align 17 textsize 16
    class Fl_Data_Table
  }
  Fl_Group bottomGroup {open
    xywh {5 210 790 35} box ENGRAVED_BOX color 246 labelsize 16
  } {
    Fl_Input query_limit {
      dirty_name query_limit
      tooltip {Limit the amount of records to show} xywh {15 216 40 24} type Int labeltype NO_LABEL labelsize 16 textsize 16
      code0 {o->value("50");}
    }
    Fl_Input search_str {
      xywh {65 215 375 25} labeltype NO_LABEL labelsize 16 when 8 textsize 16 resizable
    }
    Fl_Button btnSearch {
      label Search
      xywh {455 215 100 25} labelsize 16
    }
    Fl_Button btnDelete {
      label Delete
      dirty_name btnDelete
      xywh {689 215 100 25} labelsize 16
    }
    Fl_Button btnCreate {
      label Create
      dirty_name btnCreate
      xywh {574 215 100 25} labelsize 16
    }
  }
  Fl_Group {} {open
    xywh {5 255 790 300} resizable
  } {
    Fl_Choice orders_sum_detail_type {
      dirty_name orders_sum_detail_type open
      xywh {5 255 790 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
    } {}
    Fl_Browser grid_orders_sum_details {
      label {@2 Ordes Sum Details @2}
      dirty_name grid_orders_sum_details
      xywh {5 288 790 267} type Multi box ENGRAVED_BOX color 175 labelsize 16 align 17 textsize 16 resizable
      class Fl_Data_Table
    }
  }
} 

widget_class PaymentEditWindow {
  label {Payment Edit}
  xywh {147 111 720 430} type Double labelsize 16 hide resizable
  class Edit_Base_Window
} {
  Fl_Output db_payments_id {
    label {Payment \#}
    macro_name {db payments id}
    xywh {85 5 100 25} labelsize 16 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Button btnOrderId {
    label {@<->}
    dirty_name btnOrderId
    tooltip {Show Associated order if any [order_id].} xywh {190 5 30 25} labelsize 18 labelcolor 22
  }
  Fl_Input db_payments_amount {
    label Amount
    macro_name {db payments amount}
    xywh {330 5 110 25} type Float labelsize 16 textfont 1 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Input db_payments_due_date {
    label {Due Date}
    macro_name {db payments due_date}
    xywh {585 5 125 25} labelsize 16 textfont 1 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Input db_payments_entity_name {
    label Entity
    macro_name {db payments entity_name}
    xywh {10 50 570 25} labelsize 16 align 5 textfont 1 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Input db_payments_cdate {
    label Created
    macro_name {db payments cdate}
    xywh {585 50 125 25} labelsize 16 align 5 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Input db_payments_notes {
    label Notes
    macro_name {db payments notes}
    xywh {10 95 535 25} labelsize 16 align 5 textsize 16 resizable
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Button btnShowClearedCalendar {
    label {@<->}
    dirty_name btnShowClearedCalendar
    tooltip {Show calendar} xywh {550 95 30 25} labelsize 18 labelcolor 22
  }
  Fl_Input db_payments_cleared_date {
    label Cleared
    macro_name {db payments cleared_date}
    xywh {585 95 125 25} labelsize 16 align 5 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Group group_lines {
    dirty_name group_lines open
    xywh {10 126 700 264} box THIN_UP_BOX color 246 labeltype NO_LABEL labelsize 16
  } {
    Fl_Browser grid_lines {
      dirty_name grid_lines
      xywh {15 135 690 146} type Hold labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
      class Fl_Data_Table
    }
    Fl_Group group_edit_line {
      dirty_name group_edit_line open
      xywh {15 288 695 102} labeltype NO_LABEL
    } {
      Fl_Input db_payments_lines_amount {
        label Amount
        macro_name {db payments_lines amount}
        xywh {15 360 125 25} type Float labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Button btnSaveLine {
        label {Save Line}
        dirty_name btnSaveLine
        xywh {340 360 110 25} labelsize 16
      }
      Fl_Input db_payments_lines_notes {
        label Description
        macro_name {db payments_lines notes}
        xywh {15 310 690 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_payments_lines_payment_date {
        label Date
        macro_name {db payments_lines payment_date}
        xywh {155 359 125 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Button btnPaymentDateCalendar {
        label {@<->}
        dirty_name btnPaymentDateCalendar
        tooltip {Show calendar} xywh {285 360 30 25} labelsize 18 labelcolor 22
      }
    }
  }
  Fl_Button btnSave {
    label Save
    dirty_name btnSave
    xywh {495 400 105 25} labelsize 16
  }
  Fl_Button btnPrint {
    label Print
    dirty_name btnPrint
    xywh {605 400 105 25} labelsize 16
  }
} 

widget_class GLGroupsListEditWindow {
  label {GL Groups List / Edit}
  xywh {480 215 500 350} type Double labelsize 16 hide resizable
  class List_Edit_Base_Window
} {
  Fl_Browser grid {
    xywh {5 5 490 200} type Multi labeltype NO_LABEL labelsize 16 textsize 16 resizable
    class Fl_Data_Table
  }
  Fl_Group editGroup {open
    xywh {5 215 490 130} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_gl_groups_id {
      label ID
      macro_name {db gl_groups id}
      xywh {15 240 82 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_gl_groups_code {
      label Code
      macro_name {db gl_groups code}
      xywh {110 240 80 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_gl_groups_debit_op {
      label {Op. Debit (+/-)}
      macro_name {db gl_groups debit_op}
      xywh {250 240 30 25} labelsize 16 align 1 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_gl_groups_credit_op {
      label {Op.Credit (+/-)}
      macro_name {db gl_groups credit_op}
      xywh {380 240 30 25} labelsize 16 align 1 textfont 1 textsize 24
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_gl_groups_description {
      label Description
      macro_name {db gl_groups description}
      xywh {15 310 350 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Choice dbAction {
      dirty_name dbAction open
      xywh {380 275 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {380 310 105 25} labelsize 16
    }
  }
} 

widget_class GLChartEditWindow {
  label {Accounts Chart Edit}
  xywh {253 173 600 350} type Double labelsize 16 hide resizable
  class Edit_Base_Window
} {
  Fl_Group editGroup {open
    xywh {5 5 590 340} box ENGRAVED_BOX color 246 labelsize 16 align 8
  } {
    Fl_Output db_gl_chart_id {
      label ID
      macro_name {db gl_chart id}
      xywh {15 30 130 26} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_gl_chart_budget {
      label Budget
      macro_name {db gl_chart budget}
      xywh {155 30 150 25} type Float labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_gl_chart_is_active {
      label Active
      macro_name {db gl_chart is_active}
      xywh {480 22 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Check_Button db_gl_chart_is_header {
      label Header
      macro_name {db gl_chart is_header}
      xywh {480 52 100 23} down_box DOWN_BOX labelsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Input db_gl_chart_group_code {
      label Code
      macro_name {db gl_chart group_code}
      xywh {15 85 130 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Choice db_gl_chart_gl_group_id {
      label Group
      macro_name {db gl_chart gl_group_id} open
      xywh {155 85 310 25} down_box BORDER_BOX labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      class Fl_Choice_Int
    } {}
    Fl_Input db_gl_chart_description {
      label Description
      macro_name {db gl_chart description}
      xywh {15 135 450 25} labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
    Fl_Choice dbAction {
      dirty_name dbAction open
      xywh {480 105 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
      class Fl_Choice_dbAction
    } {}
    Fl_Button btnDbAction {
      label Action
      dirty_name btnDbAction
      xywh {480 135 105 25} labelsize 16
    }
    Fl_Text_Editor db_gl_chart_notes {
      label Notes
      macro_name {db gl_chart notes}
      xywh {15 190 570 150} labelsize 16 align 5 textsize 16 resizable
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      class Fl_Text_Editor_Buffered
    }
    Fl_Check_Button {} {
      label {Wrap lines}
      callback {db_gl_chart_notes->wrap_mode(o->value(), 0);}
      xywh {105 165 105 25} down_box DOWN_BOX value 1 labelsize 16 align 16
    }
    Fl_Input db_gl_chart_balance {
      label Balance
      macro_name {db gl_chart balance}
      xywh {315 30 150 25} type Float labelsize 16 align 5 textsize 16
      code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
    }
  }
} 

widget_class GLTransactionEditWindow {
  label {GL Transaction Edit} open
  xywh {80 133 720 410} type Double labelsize 16 resizable
  class Edit_Base_Window visible
} {
  Fl_Input db_gl_transactions_description {
    label Description
    macro_name {db gl_transactions description}
    xywh {10 24 570 25} labelsize 16 align 5 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Button btnOrderId {
    label {@<->}
    dirty_name btnOrderId
    tooltip {Show Associated order if any [order_id].} xywh {550 0 30 25} labelsize 18 labelcolor 22
  }
  Fl_Input db_gl_transactions_transaction_date {
    label Date
    macro_name {db gl_transactions transaction_date}
    xywh {590 25 125 25} labelsize 16 align 5 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Button btnShowCalendar {
    label {@<->}
    tooltip {Show calendar} xywh {680 0 30 25} labelsize 18 labelcolor 22
  }
  Fl_Group group_lines {
    dirty_name group_lines open
    xywh {10 55 705 310} box THIN_UP_BOX color 246 labeltype NO_LABEL labelsize 16
  } {
    Fl_Browser grid_lines {
      dirty_name grid_lines selected
      xywh {15 60 695 150} type Hold labeltype NO_LABEL labelsize 16 align 5 textsize 16 resizable
      class Fl_Data_Table
    }
    Fl_Group group_edit_line {
      dirty_name group_edit_line open selected
      xywh {15 235 695 130} labeltype NO_LABEL
    } {
      Fl_Input db_gl_transactions_lines_description {
        label Account
        macro_name {db gl_transactions_lines description}
        xywh {190 235 480 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_gl_transactions_lines_group_code {
        label Code
        macro_name {db gl_transactions_lines group_code}
        xywh {20 235 110 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Button btnSearchAccount {
        label {@<->}
        dirty_name btnSearchAccount
        tooltip {Show calendar} xywh {680 235 30 25} labelsize 18 labelcolor 22
      }
      Fl_Input db_gl_transactions_lines_debit {
        label Debit
        macro_name {db gl_transactions_lines debit}
        xywh {485 285 110 25} type Float labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_gl_transactions_lines_credit {
        label Credit
        macro_name {db gl_transactions_lines credit}
        xywh {600 285 110 25} type Float labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Button btnSaveLine {
        label {Save Line}
        dirty_name btnSaveLine
        xywh {365 335 110 25} labelsize 16
      }
      Fl_Button btnBalanceLine {
        label Balance
        dirty_name btnBalanceLine
        xywh {485 335 110 25} labelsize 16
      }
      Fl_Button btnClearLine {
        label {Clear Line}
        dirty_name btnClearLine
        xywh {600 335 110 25} labelsize 16
      }
      Fl_Output db_gl_transactions_lines_gl_code {
        label {Grp.}
        macro_name {db gl_transactions_lines gl_code}
        xywh {140 235 40 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_gl_transactions_lines_doc {
        label Document
        macro_name {db gl_transactions_lines doc}
        xywh {20 285 455 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Input db_gl_transactions_lines_due_date {
        label {Due Date}
        macro_name {db gl_transactions_lines due_date}
        xywh {20 335 125 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
      Fl_Button btnDueDateCalendar {
        label {@<->}
        dirty_name btnDueDateCalendar
        tooltip {Show calendar} xywh {155 335 30 25} labelsize 18 labelcolor 22
      }
      Fl_Input db_gl_transactions_lines_checked_date {
        label {Checked Date}
        macro_name {db gl_transactions_lines checked_date}
        xywh {195 335 125 25} labelsize 16 align 5 textsize 16
        code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
      }
    }
  }
  Fl_Output db_gl_transactions_id {
    label {Transaction \#}
    macro_name {db gl_transactions id}
    xywh {615 375 100 25} labelsize 16 textsize 16
    code0 {=add_input_field_to_map("$(1)", "$(2)", $(name));}
  }
  Fl_Choice dbAction {
    dirty_name dbAction open
    xywh {130 374 105 25} down_box BORDER_BOX labeltype NO_LABEL labelsize 16 textsize 16
    class Fl_Choice_dbAction
  } {}
  Fl_Button btnDbAction {
    label Action
    dirty_name btnDbAction
    xywh {15 375 105 25} labelsize 16
  }
} 

widget_class EditEntityWindow {
  label {Edit Entity}
  xywh {54 85 800 560} type Double hide resizable
  class Edit_Base_Window
} {
  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
          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}
      }
    }
  }
} 

widget_class EditProductWindow {
  label {Edit Products}
  xywh {34 28 800 560} type Double hide resizable
  class Edit_Base_Window
} {
  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
      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 {} {
        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
        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 db_products_markup_to_discount {
          label {Margin %}
          macro_name {db products markup_to_discount}
          xywh {531 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_sell_price2 {
          label {Sales $}
          macro_name {db products sell_price2}
          xywh {658 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_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));}
      }
    }
  }
} 

widget_class EditOrderWindow {
  label {Edit Order}
  xywh {255 97 800 560} type Double labelsize 16 hide resizable
  class Edit_Base_Window
} {
  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
    xywh {5 68 790 487} selection_color 4 labelsize 16 labelcolor 7 resizable
  } {
    Fl_Group tabMain {
      label Main
      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 {} {open
        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));}
            code1 {o->use_numeric_format(1);}
            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
        class Fl_Choice_dbAction
      } {}
      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 open
      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
        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 open
      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
        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
        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
      }
    }
  }
} 

widget_class PosWindow {
  label {Point of Sales}
  xywh {53 84 800 560} type Double hide resizable
  class Edit_Base_Window
} {
  Fl_Group groupOrder {
    dirty_name groupOrder open
    xywh {5 5 190 550} box ENGRAVED_BOX
  } {
    Fl_Button btnUser {
      label User
      dirty_name btnUser
      xywh {10 10 180 30} labelfont 1 labelsize 26
    }
    Fl_Table grid_order {
      dirty_name grid_order open
      xywh {10 48 180 310} resizable
      class Fl_Data_Table
    } {}
    Fl_Output orderTotal {
      label Total
      dirty_name orderTotal
      xywh {70 364 120 31} labelfont 1 labelsize 16 textfont 1 textsize 20
    }
    Fl_Button btnOrder1 {
      label 1
      dirty_name btnOrder1
      xywh {10 415 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder2 {
      label 2
      dirty_name btnOrder2
      xywh {105 415 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder3 {
      label 3
      dirty_name btnOrder3
      xywh {10 450 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder4 {
      label 4
      dirty_name btnOrder4
      xywh {105 450 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder5 {
      label 5
      dirty_name btnOrder5
      xywh {10 485 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder6 {
      label 6
      dirty_name btnOrder6
      xywh {105 485 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder7 {
      label 7
      dirty_name btnOrder7
      xywh {10 520 85 30} labelfont 1 labelsize 16
    }
    Fl_Button btnOrder8 {
      label 8
      dirty_name btnOrder8
      xywh {105 520 85 30} labelfont 1 labelsize 16
    }
  }
  Fl_Group groupProducts {
    dirty_name groupProducts open
    xywh {200 5 410 480} box ENGRAVED_BOX resizable
  } {
    Fl_Table grid_products {
      dirty_name grid_products open
      xywh {205 10 395 405} resizable
      class Fl_Data_Table
    } {}
    Fl_Button btnProducts1 {
      label {@4->}
      dirty_name btnProducts1
      xywh {210 425 75 55} labelfont 1 labelsize 40
    }
    Fl_Button btnProducts2 {
      label {@8->}
      dirty_name btnProducts2
      xywh {295 425 75 55} labelfont 1 labelsize 40
    }
    Fl_Button btnProducts3 {
      label {@2->}
      dirty_name btnProducts3
      xywh {440 425 75 55} labelfont 1 labelsize 40
    }
    Fl_Button btnProducts4 {
      label {@->}
      dirty_name btnProducts4
      xywh {525 425 75 55} labelfont 1 labelsize 40
    }
  }
  Fl_Group groupActions {
    dirty_name groupActions open
    xywh {615 5 180 550} box ENGRAVED_BOX
  } {
    Fl_Button btnOptions11 {
      label 11
      dirty_name btnOptions11
      xywh {620 510 170 40} labelfont 1 labelsize 16
    }
    Fl_Output calcDisplay {
      dirty_name calcDisplay
      xywh {620 149 170 31} labeltype NO_LABEL labelfont 1 labelsize 16 textfont 1 textsize 20
    }
    Fl_Button btnCalc9 {
      label 9
      dirty_name btnCalc9
      xywh {740 185 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc8 {
      label 8
      dirty_name btnCalc8
      xywh {680 185 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc7 {
      label 7
      dirty_name btnCalc7
      xywh {620 185 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc6 {
      label 6
      dirty_name btnCalc6
      xywh {740 245 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc5 {
      label 5
      dirty_name btnCalc5
      xywh {680 245 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc4 {
      label 4
      dirty_name btnCalc4
      xywh {620 245 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc3 {
      label 3
      dirty_name btnCalc3
      xywh {740 305 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc2 {
      label 2
      dirty_name btnCalc2
      xywh {680 305 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc1 {
      label 1
      dirty_name btnCalc1
      xywh {620 305 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalc0 {
      label 0
      dirty_name btnCalc0
      xywh {620 365 50 50} labelfont 1 labelsize 42
    }
    Fl_Button btnCalcOk {
      label OK
      dirty_name btnCalcOk
      xywh {680 365 110 50} labelfont 1 labelsize 42
    }
    Fl_Button btnOptions1 {
      label 1
      dirty_name btnOptions1
      xywh {620 10 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions2 {
      label 2
      dirty_name btnOptions2
      xywh {710 10 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions3 {
      label 3
      dirty_name btnOptions3
      xywh {620 55 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions4 {
      label 4
      dirty_name btnOptions4
      xywh {710 55 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions5 {
      label 5
      dirty_name btnOptions5
      xywh {620 100 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions6 {
      label 6
      dirty_name btnOptions6
      xywh {710 100 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions9 {
      label 9
      dirty_name btnOptions9
      xywh {620 465 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions10 {
      label 10
      dirty_name btnOptions10
      xywh {710 465 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions7 {
      label 7
      dirty_name btnOptions7
      xywh {620 425 80 35} labelfont 1 labelsize 16
    }
    Fl_Button btnOptions8 {
      label 8
      dirty_name btnOptions8
      xywh {710 425 80 35} labelfont 1 labelsize 16
    }
  }
  Fl_Group groupShortCuts {
    dirty_name groupShortCuts open
    xywh {200 490 410 65} box ENGRAVED_BOX
  } {
    Fl_Button btnShortcut1 {
      label User
      dirty_name btnShortcut1
      xywh {205 495 75 55} labelfont 1 labelsize 16
    }
    Fl_Button btnShortcut2 {
      label User
      dirty_name btnShortcut2
      xywh {285 495 75 55} labelfont 1 labelsize 16
    }
    Fl_Button btnShortcut3 {
      label User
      dirty_name btnShortcut3
      xywh {368 495 75 55} labelfont 1 labelsize 16
    }
    Fl_Button btnShortcut4 {
      label User
      dirty_name btnShortcut4
      xywh {450 495 75 55} labelfont 1 labelsize 16
    }
    Fl_Button btnShortcut5 {
      label User
      dirty_name btnShortcut5
      xywh {530 495 75 55} labelfont 1 labelsize 16
    }
  }
} 

widget_class MainWindow {
  label OURBIZ
  xywh {10 50 330 320} type Double labelsize 16 hide
  class Base_Window
} {
  Fl_Tabs tabs {
    dirty_name tabs open
    xywh {5 5 320 310} selection_color 4 labelsize 16 labelcolor 7
  } {
    Fl_Group tabSales {
      label Sales
      dirty_name tabSales open
      xywh {5 35 320 280} color 127 labelsize 16
    } {
      Fl_Button btnOrdersSales {
        label Sales
        dirty_name btnOrdersSales
        xywh {30 50 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8 align 16
      }
      Fl_Button btnPaymentsSales {
        label Payments
        dirty_name btnPaymentsSales
        xywh {30 116 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnEntitiesSales {
        label Customers
        xywh {30 183 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnProductsSales {
        label Products
        xywh {30 250 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
    }
    Fl_Group tabBuys {
      label Buys open
      xywh {5 35 320 280} color 174 labelsize 16 hide
    } {
      Fl_Button btnOrdersBuys {
        label Buys
        dirty_name btnOrdersBuys
        xywh {30 50 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8 align 16
      }
      Fl_Button btnPaymentsBuys {
        label Payments
        dirty_name btnPaymentsBuys
        xywh {30 115 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnProductsBuys {
        label Products
        xywh {30 250 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnEntitiesBuys {
        label Suppliers
        xywh {30 183 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
    }
    Fl_Group tabAll {
      label All
      dirty_name tabAll open
      xywh {5 35 320 280} color 239 labelsize 16 hide resizable
    } {
      Fl_Button btnOrders {
        label Orders
        dirty_name btnOrders
        xywh {30 50 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8 align 16
      }
      Fl_Button btnPayments {
        label Payments
        dirty_name btnPayments
        xywh {30 116 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnEntities {
        label Entities
        dirty_name btnEntities
        xywh {30 183 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnProducts {
        label Products
        dirty_name btnProducts
        xywh {30 250 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
    }
    Fl_Group tabGL {
      label GL
      dirty_name tabGL open
      xywh {5 35 320 280} color 132 labelsize 16 hide
    } {
      Fl_Button btnGLGroups {
        label Groups
        dirty_name btnGLGroups
        xywh {30 50 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8 align 16
      }
      Fl_Button btnGLChart {
        label Chart
        dirty_name btnGLChart
        xywh {30 115 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
      Fl_Button btnGLTransactions {
        label Transactions
        dirty_name btnGLTransactions
        xywh {30 180 275 55} labeltype SHADOW_LABEL labelfont 3 labelsize 34 labelcolor 8
      }
    }
    Fl_Group tabConfig {
      label Config open
      xywh {5 35 320 280} labelsize 16 hide
    } {
      Fl_Scroll config_scroll {open
        xywh {10 45 310 265} labelsize 16
      } {
        Fl_Pack config_pack {open
          xywh {30 45 270 260} labelsize 16
          code0 {o->spacing(5);}
        } {
          Fl_Button btnOrdersSum {
            label {Orders Sum}
            dirty_name btnOrdersSum
            xywh {65 55 64 30} labelsize 16
          }
          Fl_Button btnSalesTaxRates {
            label {Sales Tax Rates}
            dirty_name btnSalesTaxRates
            xywh {55 45 64 30} labelsize 16
          }
          Fl_Button btnOrderTypes {
            label {Order Types}
            dirty_name btnOrderTypes
            xywh {65 80 64 30} labelsize 16
          }
          Fl_Button btnPaymentTypes {
            label {Payment Types}
            dirty_name btnPaymentTypes
            xywh {105 148 64 30} labelsize 16
          }
          Fl_Button btnMeasureUnits {
            label {Measure Units}
            dirty_name btnMeasureUnits
            xywh {115 158 64 30} labelsize 16
          }
          Fl_Button btnWarrantyTypes {
            label {Warranty Types}
            dirty_name btnWarrantyTypes
            xywh {125 168 64 30} labelsize 16
          }
          Fl_Button btnImages {
            label Images
            dirty_name btnImages
            xywh {75 118 64 30} labelsize 16
          }
          Fl_Button btnProductGroups {
            label {Product Groups}
            dirty_name btnProductGroups
            xywh {85 128 64 30} labelsize 16
          }
          Fl_Button btnEntityGroups {
            label {Entity Groups}
            dirty_name btnEntityGroups
            xywh {95 138 64 30} labelsize 16
          }
          Fl_Button btnConfig {
            label {App Config}
            dirty_name btnConfig
            xywh {105 148 64 30} labelsize 16
          }
          Fl_Button btnOpenDB {
            label {Open Database}
            dirty_name btnOpenDB
            tooltip {Open a database file} xywh {115 158 64 30} labelsize 16
          }
          Fl_Button btnTranslations {
            label Translations
            dirty_name btnTranslations
            xywh {115 158 64 30} labelsize 16
          }
          Fl_Button btnAppUsers {
            label {App Users}
            dirty_name btnAppUsers
            xywh {75 65 64 30} labelsize 16
          }
          Fl_Check_Button btnAskForPrinter {
            label {Ask for Printer}
            dirty_name btnAskForPrinter
            xywh {55 70 64 15} down_box DOWN_BOX
          }
          Fl_Check_Button btnWebServer {
            label {Web Server}
            dirty_name btnWebServer
            xywh {65 80 64 15} down_box DOWN_BOX
          }
        }
      }
    }
  }
} 
