-
Notifications
You must be signed in to change notification settings - Fork 1
/
facturas.dfm
1491 lines (1489 loc) · 51.8 KB
/
facturas.dfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
object FFacturas: TFFacturas
Left = 1646
Top = 0
BorderStyle = bsToolWindow
Caption = 'Facturas'
ClientHeight = 782
ClientWidth = 1129
Color = clBtnFace
Constraints.MaxWidth = 1175
DragKind = dkDock
DragMode = dmAutomatic
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poDesigned
OnClose = FormClose
OnCreate = FormCreate
OnResize = FormResize
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 0
Width = 1129
Height = 782
Align = alClient
TabOrder = 0
object GroupBox1: TGroupBox
AlignWithMargins = True
Left = 4
Top = 55
Width = 1121
Height = 93
Align = alTop
Anchors = [akTop, akRight]
Caption = 'Datos del Cliente'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
object GroupBox4: TGroupBox
AlignWithMargins = True
Left = 12
Top = 18
Width = 1104
Height = 63
Margins.Left = 10
Margins.Bottom = 10
Align = alClient
Caption = 'Datos'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 0
object BTBuscarCliente: TButton
Left = 701
Top = 16
Width = 32
Height = 32
HotImageIndex = 0
ImageAlignment = iaCenter
ImageIndex = 0
Images = DataModule1.icopeque
PressedImageIndex = 0
Style = bsCommandLink
TabOrder = 0
StyleElements = []
OnClick = BTBuscarClienteClick
end
object rDBEdit1: TrDBEdit
Left = 72
Top = 24
Width = 41
Height = 21
CharCase = ecUpperCase
DataField = 'idcontactos'
DataSource = dsCliente
TabOrder = 1
DBEditLabel.OwnCaption = 'C'#243'digo'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit2: TrDBEdit
Left = 157
Top = 24
Width = 142
Height = 21
CharCase = ecUpperCase
DataField = 'cif'
DataSource = dsCliente
TabOrder = 2
DBEditLabel.OwnCaption = 'C.I.F'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit3: TrDBEdit
Left = 358
Top = 24
Width = 337
Height = 21
CharCase = ecUpperCase
DataField = 'nombre'
DataSource = dsCliente
TabOrder = 3
DBEditLabel.OwnCaption = 'Nombre'
DBEditLabel.Position = lpLeftCenter
end
object Button1: TButton
Left = 864
Top = 40
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 4
OnClick = Button1Click
end
end
end
object GroupBox2: TGroupBox
AlignWithMargins = True
Left = 4
Top = 154
Width = 1121
Height = 87
Align = alTop
Caption = 'Datos Facturas'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 2
object rDBEdit4: TrDBEdit
Left = 75
Top = 16
Width = 60
Height = 21
CharCase = ecUpperCase
DataField = 'idFactura'
DataSource = dsFacturas
TabOrder = 0
DBEditLabel.OwnCaption = 'N'#250'mero'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit5: TrDBEdit
Left = 203
Top = 16
Width = 60
Height = 21
CharCase = ecUpperCase
DataField = 'ano'
DataSource = dsFacturas
TabOrder = 1
DBEditLabel.OwnCaption = 'A'#241'o'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit7: TrDBEdit
Left = 511
Top = 57
Width = 57
Height = 21
DataField = 'Iva'
DataSource = dsFacturas
ReadOnly = True
TabOrder = 6
DBEditLabel.OwnCaption = 'I.V.A'
DBEditLabel.Position = lpLeftCenter
end
object rDBDateTimePicker1: TrDBDateTimePicker
Left = 111
Top = 57
Width = 113
Height = 21
Date = 43734.909575613430000000
Time = 43734.909575613430000000
TabOrder = 4
DataField = 'FechaFactura'
DataSource = dsFacturas
DBEditLabel.OwnCaption = 'Fecha Factura'
DBEditLabel.Position = lpLeftCenter
FormatEmpty = '__.__.__'
end
object rDBEdit8: TrDBEdit
Left = 908
Top = 57
Width = 129
Height = 21
CharCase = ecUpperCase
DataField = 'Total'
DataSource = dsFacturas
ReadOnly = True
TabOrder = 8
DBEditLabel.OwnCaption = 'Total Factura'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit9: TrDBEdit
Left = 320
Top = 57
Width = 129
Height = 21
CharCase = ecUpperCase
DataField = 'TotalBruto'
DataSource = dsFacturas
ReadOnly = True
TabOrder = 5
DBEditLabel.OwnCaption = 'SubTotal'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit10: TrDBEdit
Left = 660
Top = 57
Width = 129
Height = 21
CharCase = ecUpperCase
DataField = 'importeIVA'
DataSource = dsFacturas
ReadOnly = True
TabOrder = 7
DBEditLabel.OwnCaption = 'Total I.V.A'
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit11: TrDBEdit
Left = 908
Top = 17
Width = 129
Height = 21
CharCase = ecUpperCase
DataField = 'id_asiento'
DataSource = dsFacturas
ReadOnly = True
TabOrder = 2
DBEditLabel.OwnCaption = 'N'#186' Asiento'
DBEditLabel.Position = lpLeftCenter
end
object rDBMemo1: TrDBMemo
Left = 386
Top = 16
Width = 403
Height = 21
DataField = 'Concepto'
DataSource = dsFacturas
PopupMenu = rDBMemo1.pmSearch
ScrollBars = ssVertical
TabOrder = 9
DBEditLabel.Position = lpLeftCenter
end
object rDBEdit6: TrDBEdit
Left = 1058
Top = 38
Width = 60
Height = 21
CharCase = ecUpperCase
DataField = 'obra'
DataSource = dsFacturas
ReadOnly = True
TabOrder = 10
Visible = False
DBEditLabel.OwnCaption = 'Obra'
DBEditLabel.Visible = False
end
end
object ToolBar1: TToolBar
AlignWithMargins = True
Left = 4
Top = 4
Width = 1121
Height = 45
ButtonHeight = 42
ButtonWidth = 41
Caption = 'ToolBar1'
Images = DataModule1.ImageList1
List = True
TabOrder = 0
object ToolButton1: TToolButton
AlignWithMargins = True
Left = 0
Top = 0
Hint = 'Guardar factura'
Action = guardarfactura
ImageIndex = 7
ParentShowHint = False
ShowHint = True
end
object ToolButton4: TToolButton
Left = 41
Top = 0
Width = 8
Caption = 'ToolButton4'
ImageIndex = 3
Style = tbsSeparator
end
object ToolButton6: TToolButton
AlignWithMargins = True
Left = 49
Top = 0
Hint = 'Abrir presupuesto'
Caption = 'Abrir Presupuesto'
ImageIndex = 57
ParentShowHint = False
ShowHint = True
OnClick = ToolButton6Click
end
object ToolButton2: TToolButton
AlignWithMargins = True
Left = 90
Top = 0
Hint = 'Guardar en PDF'
Caption = 'PDF'
ImageIndex = 11
ParentShowHint = False
ShowHint = True
OnClick = ToolButton2Click
end
object ToolButton3: TToolButton
AlignWithMargins = True
Left = 131
Top = 0
Hint = 'Enviar mail'
Caption = 'Mail'
Enabled = False
ImageIndex = 12
ParentShowHint = False
ShowHint = True
end
object ToolButton5: TToolButton
AlignWithMargins = True
Left = 172
Top = 0
Hint = 'Nueva obra'
Caption = 'Abrir Obra'
ImageIndex = 22
ParentShowHint = False
ShowHint = True
end
object ToolButton7: TToolButton
Left = 213
Top = 0
Width = 8
Caption = 'ToolButton7'
ImageIndex = 5
Style = tbsSeparator
end
object ToolButton8: TToolButton
AlignWithMargins = True
Left = 221
Top = 0
Hint = 'Carpeta de presupuestos'
Caption = 'Abrir carpeta'
Enabled = False
ImageIndex = 14
ParentShowHint = False
ShowHint = True
end
object ToolButton10: TToolButton
Left = 262
Top = 0
Hint = 'Carpetas documentaci'#243'n y fotograf'#237'as'
Caption = 'Carpetas documentaci'#243'n'
Enabled = False
ImageIndex = 8
end
object ToolButton9: TToolButton
AlignWithMargins = True
Left = 303
Top = 0
Hint = 'Cerrar'
Caption = 'Cerrar Presupuesto'
ImageIndex = 15
ParentShowHint = False
ShowHint = True
OnClick = cerrarpresExecute
end
end
object GroupBox3: TGroupBox
Left = 1
Top = 541
Width = 792
Height = 240
Margins.Bottom = 30
Align = alLeft
Anchors = [akLeft, akTop, akRight, akBottom]
Caption = 'Observaciones'
TabOrder = 4
object rDBMemoEx1: TrDBMemoEx
Left = 2
Top = 15
Width = 788
Height = 223
Align = alClient
DataField = 'observaciones'
DataSource = dsFacturas
PopupMenu = rDBMemoEx1.pmSearch
ScrollBars = ssVertical
TabOrder = 0
DBEditLabel.OwnCaption = ' '
ButtonFrm.Width = 18
ButtonFrm.Height = 15
ButtonFrm.Visible = False
ButtonEdit.Width = 18
ButtonEdit.Height = 15
BoundLabel.AlignWithMargins = True
BoundLabel.Margins.Left = 0
BoundLabel.Margins.Top = 0
BoundLabel.Margins.Right = 40
BoundLabel.Margins.Bottom = 0
BoundLabel.Position = lpTopRight
end
end
object GroupBox5: TGroupBox
AlignWithMargins = True
Left = 818
Top = 548
Width = 307
Height = 230
Margins.Top = 7
Align = alRight
Anchors = [akRight, akBottom]
TabOrder = 5
DesignSize = (
307
230)
object Shape1: TShape
Left = 17
Top = -2
Width = 22
Height = 44
Anchors = [akTop, akRight]
Shape = stCircle
end
object Guardar: TButton
Left = 143
Top = 11
Width = 80
Height = 25
Anchors = [akTop, akRight]
Caption = 'Guardar'
Enabled = False
Images = DataModule1.ImageList1
TabOrder = 1
OnClick = GuardarClick
end
object Aceptar: TButton
Left = 61
Top = 11
Width = 75
Height = 25
Anchors = [akTop, akRight]
Caption = 'Aceptar'
TabOrder = 0
OnClick = AceptarClick
end
object cerrar: TButton
Left = 229
Top = 11
Width = 75
Height = 26
Anchors = [akTop, akRight]
Caption = 'Cerrar'
TabOrder = 2
OnClick = cerrarClick
end
end
object grp1: TGroupBox
Left = 1
Top = 244
Width = 1127
Height = 297
Align = alTop
Caption = 'L'#237'neas'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 3
object ctrlbr1: TControlBar
AlignWithMargins = True
Left = 5
Top = 18
Width = 1117
Height = 32
Align = alTop
ParentShowHint = False
ShowHint = True
TabOrder = 0
object tlb1: TToolBar
Left = 224
Top = 2
Width = 0
Height = 66
AutoSize = True
Caption = 'Editar'
Images = ImageList1
List = True
TabOrder = 1
object btn1: TToolButton
Left = 0
Top = 0
Action = EditCut
Wrap = True
end
object btn2: TToolButton
Left = 0
Top = 22
Action = EditCopy
Wrap = True
end
object btn3: TToolButton
Left = 0
Top = 44
Action = EditPaste
end
end
object rzdbnvgtr1: TRzDBNavigator
Left = 11
Top = 2
Width = 200
Height = 22
DataSource = dslineas
BorderOuter = fsNone
TabOrder = 0
end
object ToolBar2: TToolBar
Left = 251
Top = 2
Width = 70
Height = 22
Caption = 'ToolBar2'
Images = ImageList1
TabOrder = 2
object ToolButton11: TToolButton
Left = 0
Top = 0
Action = EditCut
end
object ToolButton12: TToolButton
Left = 23
Top = 0
Action = EditCopy
end
object ToolButton13: TToolButton
Left = 46
Top = 0
Action = EditPaste
end
end
object tlb2: TToolBar
Left = 375
Top = 2
Width = 150
Height = 48
ButtonHeight = 30
ButtonWidth = 31
Caption = 'tlb2'
Images = DataModule1.icopeque
TabOrder = 3
object btn4: TToolButton
Left = 0
Top = 0
Action = abrirObra
end
end
end
object rDBGridClientes1: TrDBGrid_MS
AlignWithMargins = True
Left = 5
Top = 56
Width = 1117
Height = 154
Align = alClient
DataSource = dslineas
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'Tahoma'
TitleFont.Style = [fsBold]
ColumnWidth = cwAutoWidth
TitleLines = 2
RowFixHeight = 23
FooterRow.FooterVisible = True
FooterRow.FieldFooterDefs.Strings = (
'total=%SUM ;')
Columns = <
item
Expanded = False
FieldName = 'nlinea'
Title.Alignment = taCenter
Title.Caption = 'L'#237'nea'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -12
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 90
Visible = True
end
item
Expanded = False
FieldName = 'descripcion'
Title.Caption = 'Descripci'#243'n'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -12
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 515
Visible = True
end
item
Expanded = False
FieldName = 'cantidad'
Title.Alignment = taCenter
Title.Caption = 'Cantidad'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -12
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 112
Visible = True
end
item
Expanded = False
FieldName = 'importe'
Title.Alignment = taCenter
Title.Caption = 'Importe'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -12
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 90
Visible = True
end
item
Expanded = False
FieldName = 'descuento'
Title.Alignment = taCenter
Title.Caption = 'Descuento'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -12
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 97
Visible = True
end
item
Expanded = False
FieldName = 'total'
Title.Alignment = taCenter
Title.Caption = 'Total'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -12
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 90
Visible = True
end
item
Expanded = False
FieldName = 'lineasobras_obras_ID_obra'
Title.Alignment = taCenter
Title.Caption = 'Obra'
Width = 75
Visible = True
end>
end
object rdbtotales1: TrDBGrid
AlignWithMargins = True
Left = 5
Top = 216
Width = 1117
Height = 76
Align = alBottom
DataSource = dsFacturas
Options = [dgEditing, dgTitles, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit, dgTitleHotTrack]
TabOrder = 2
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'Tahoma'
TitleFont.Style = [fsBold]
OptionsEx2.FixedCell.TitleExBtn = False
OptionsEx2.FixedCell.TitleBtn = False
OptionsEx2.Editors.BoolGlyphs = False
OptionsEx2.Editors.Memo = obtNone
OptionsEx2.Editors.Graphic = obtNone
OptionsEx2.Editors.DateTimePicker = False
OptionsEx2.Editors.NotProcDblClick = True
OptionsEx2.Appearance.DragToScrollData = True
ColorActiveRow = clWindow
ColumnWidth = cwAutoWidth
TitleLines = 2
RowFixHeight = 25
RowVerticalAlign = taVerticalCenter
Columns = <
item
Alignment = taCenter
Expanded = False
FieldName = 'TotalBruto'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Title.Alignment = taCenter
Title.Caption = 'Total'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end
item
Alignment = taCenter
Expanded = False
FieldName = 'retencion'
Font.Charset = DEFAULT_CHARSET
Font.Color = clRed
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Title.Alignment = taCenter
Title.Caption = 'Retenci'#243'n'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end
item
Alignment = taCenter
Expanded = False
FieldName = 'importeRetencion'
Font.Charset = DEFAULT_CHARSET
Font.Color = clRed
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Title.Alignment = taCenter
Title.Caption = 'Total Retenci'#243'n'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end
item
Alignment = taCenter
Expanded = False
FieldName = 'baseimponible'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Title.Alignment = taCenter
Title.Caption = 'Base Imponible'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end
item
Alignment = taCenter
Expanded = False
FieldName = 'Iva'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Title.Alignment = taCenter
Title.Caption = 'I.V.A'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end
item
Alignment = taCenter
Expanded = False
FieldName = 'importeIVA'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Tahoma'
Font.Style = []
Title.Alignment = taCenter
Title.Caption = 'Total I.V.A'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end
item
Expanded = False
FieldName = 'Total'
Font.Charset = DEFAULT_CHARSET
Font.Color = clGreen
Font.Height = -16
Font.Name = 'Tahoma'
Font.Style = [fsBold]
Title.Alignment = taCenter
Title.Caption = 'Total Factura'
Title.Font.Charset = DEFAULT_CHARSET
Title.Font.Color = clWindowText
Title.Font.Height = -13
Title.Font.Name = 'Tahoma'
Title.Font.Style = [fsBold]
Width = 154
Visible = True
end>
end
end
end
object fdCliente: TFDQuery
Connection = DataModule1.FDConnection1
UpdateOptions.AssignedValues = [uvEDelete, uvEInsert, uvEUpdate]
UpdateOptions.EnableDelete = False
UpdateOptions.EnableInsert = False
UpdateOptions.EnableUpdate = False
SQL.Strings = (
'select idcontactos, nombre, cif, familia from clientes where idc' +
'ontactos=:id_cliente')
Left = 368
Top = 40
ParamData = <
item
Name = 'ID_CLIENTE'
DataType = ftInteger
ParamType = ptInput
Value = Null
end>
object fdClienteidcontactos: TFDAutoIncField
FieldName = 'idcontactos'
Origin = 'IdContactos'
ProviderFlags = [pfInWhere, pfInKey]
ReadOnly = True
end
object fdClientenombre: TStringField
FieldName = 'nombre'
Origin = 'Nombre'
Required = True
Size = 100
end
object fdClientecif: TStringField
AutoGenerateValue = arDefault
FieldName = 'cif'
Origin = 'CIF'
Size = 50
end
object fdClientefamilia: TIntegerField
AutoGenerateValue = arDefault
FieldName = 'familia'
Origin = 'familia'
end
end
object fdfacturas: TFDQuery
AfterInsert = fdfacturasAfterInsert
AfterEdit = fdfacturasAfterEdit
AfterDelete = fdfacturasAfterDelete
CachedUpdates = True
Connection = DataModule1.FDConnection1
SchemaAdapter = FDSchemaAdapter1
UpdateOptions.AssignedValues = [uvUpdateMode]
UpdateOptions.UpdateMode = upWhereChanged
SQL.Strings = (
'select * from facturas where idfactura=:id_factura and ano=:ano')
Left = 20
Top = 220
ParamData = <
item
Name = 'ID_FACTURA'
DataType = ftInteger
ParamType = ptInput
Value = Null
end
item
Name = 'ANO'
DataType = ftInteger
ParamType = ptInput
Value = Null
end>
object fdfacturasidFactura: TIntegerField
FieldName = 'idFactura'
Origin = 'idFactura'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object fdfacturasidCliente: TIntegerField
FieldName = 'idCliente'
Origin = 'idCliente'
Required = True
end
object fdfacturasFechaFactura: TDateTimeField
FieldName = 'FechaFactura'
Origin = 'FechaFactura'
Required = True
end
object fdfacturasConcepto: TMemoField
FieldName = 'Concepto'
Origin = 'Concepto'
Required = True
BlobType = ftMemo
end
object fdfacturasTotalBruto: TFloatField
FieldName = 'TotalBruto'
Origin = 'TotalBruto'
Required = True
OnChange = fdfacturasTotalBrutoChange
DisplayFormat = '#.00 '#8364
end
object fdfacturasIva: TSmallintField
FieldName = 'Iva'
Origin = 'Iva'
Required = True
DisplayFormat = '0 %'
end
object fdfacturasTotal: TFloatField
AutoGenerateValue = arDefault
FieldName = 'Total'
Origin = 'Total'
DisplayFormat = '#.00 '#8364
end
object fdfacturasEmisorFactura: TIntegerField
FieldName = 'EmisorFactura'
Origin = 'EmisorFactura'
Required = True
end
object fdfacturaspagada: TBooleanField
AutoGenerateValue = arDefault
FieldName = 'pagada'
Origin = 'pagada'
end
object fdfacturasano: TIntegerField
FieldName = 'ano'
Origin = 'ano'
Required = True
end
object mfldfdfacturasobservaciones: TMemoField
AutoGenerateValue = arDefault
FieldName = 'observaciones'
Origin = 'observaciones'
BlobType = ftMemo
end
object fdfacturascantidad: TIntegerField
FieldName = 'cantidad'
Origin = 'cantidad'
Required = True
end
object fltfldIVA: TFloatField
FieldName = 'importeIVA'
Origin = 'importeIVA'
Required = True
DisplayFormat = '#.00 '#8364
end
object fdfacturasretencion: TIntegerField
FieldName = 'retencion'
OnChange = fdfacturasTotalBrutoChange
DisplayFormat = '0 %'
end
object fltfldfdfacturasimporteRetencion: TFloatField
FieldName = 'importeRetencion'