Patch level : 12.0 1130

Files correlati     :
Commento:
patch
This commit is contained in:
Simoe 2022-03-31 17:01:07 +02:00
parent 3c8a2943e9
commit b1a17099d1
16 changed files with 60 additions and 7 deletions

View File

@ -102,6 +102,7 @@
#define DOC_FASEPREL "FASEPREL"
#define DOC_TIPODOCSDI "TIPODOCSDI"
#define DOC_NOINVIOSDI "NOINVIOSDI"
#define DOC_SCONTOFATT "SCONTOFATT"
// Virtuali
#define DOC_PLAFOND "PLAFOND"

View File

@ -1,3 +1,3 @@
33
0
$doc|41368|42328|727|0|Testate documenti|NDOC||
$doc|0|0|745|0|Testate documenti|||

View File

@ -1,5 +1,5 @@
33
98
99
CODNUM|1|4|0|Codice della numerazione
ANNO|2|4|0|Anno
PROVV|1|1|0|Tipo numerazione <P>rovvisorio <D>efinitivo
@ -97,7 +97,8 @@ CONTSEP|1|6|0|Contabilit
NOLEGGIO|1|1|0|Tipo noleggio (pe)
COMMPREL|1|20|0|Commessa di prelievo (ci)
FASEPREL|1|10|0|Fase di prelievo (ci)
TIPODOCSDI|1|4|0|Tido documento secondo Agenzia delle Entrate
TIPODOCSDI|1|4|0|Tipo documento secondo Agenzia delle Entrate
SCONTOFATT|4|18|2|Sconto in Fattura
5
PROVV+ANNO+CODNUM+NDOC|
TIPOCF+CODCF+PROVV+ANNO+DATADOC+CODNUM+NDOC|X

View File

@ -122,6 +122,7 @@ NOMEVETT3 = S_NASCOSTO
NCOPIE = S_NASCOSTO
IMPPAGATO = S_NORMALE
ACCSALDO = S_NORMALE
SCONTOFATT = S_NORMALE
DOC1 = S_NASCOSTO
DOC2 = S_NASCOSTO
DOC3 = S_NASCOSTO

View File

@ -145,6 +145,7 @@ DATAPART = S_NORMALE
ORAPART = S_NORMALE
IMPPAGATO = S_NORMALE
ACCSALDO = S_NORMALE
SCONTOFATT = S_NORMALE
DOC1 = S_NASCOSTO
DOC2 = S_NASCOSTO
DOC3 = S_NASCOSTO

View File

@ -139,6 +139,7 @@ NOMEVETT3 = S_NORMALE
NCOPIE = S_NASCOSTO
IMPPAGATO = S_NORMALE
ACCSALDO = S_NORMALE
SCONTOFATT = S_NORMALE
DOC1 = S_NASCOSTO
DOC2 = S_NASCOSTO
DOC3 = S_NASCOSTO

View File

@ -146,6 +146,7 @@ NOMEVETT3 = S_NORMALE
NCOPIE = S_NASCOSTO
IMPPAGATO = S_NORMALE
ACCSALDO = S_NASCOSTO
SCONTOFATT = S_NORMALE
DOC1 = S_NASCOSTO
DOC2 = S_NASCOSTO
DOC3 = S_NASCOSTO

View File

@ -147,6 +147,7 @@ DATAPART = S_NORMALE
ORAPART = S_NORMALE
IMPPAGATO = S_NORMALE
ACCSALDO = S_NORMALE
SCONTOFATT = S_NORMALE
DOC1 = S_NASCOSTO
DOC2 = S_NASCOSTO
DOC3 = S_NASCOSTO

View File

@ -1603,7 +1603,7 @@ Y=0
FIELDNAME=IMPPAGATO
MSKID=F_IMPPAGATO
TYPE=T_CURRENCY
PROMPT="Importo pagato "
PROMPT="Importo pagato "
SIZE=18
SPECIAL=DRIVENBY F_CODVAL
@ -1616,6 +1616,17 @@ MSKID=F_ACCSALDO
TYPE=T_CHECKBOX
PROMPT="Acconto/saldo "
[SCONTOFATT]
GROUP=1800
X=2
Y=1
FIELDNAME=SCONTOFATT
MSKID=F_SCONTOFATT
TYPE=T_CURRENCY
PROMPT="Sconto in fattura "
SIZE=18
SPECIAL=DRIVENBY F_CODVAL
[DOC1]
GROUP=1900
X=2

View File

@ -389,6 +389,9 @@ THEN</prescript>
<field x="0.25" y="66" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="CONTRIBUTO CONAI ASSOLTO OVE DOVUTO">
<font face="Arial" bold="1" size="10" />
</field>
<field x="63" y="66" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12.5" codval="" id="" pattern="1" hide_zero="" text="Netto a pagare">
<font italic="1" face="Arial" size="8" />
</field>
<field x="1.5" y="7" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="16" codval="" id="50" pattern="2" hide_zero="" text=" Indirizzo di Consegna">
<font italic="1" face="Arial" size="8" />
</field>
@ -661,6 +664,11 @@ MESSAGE APPEND,107</prescript>
<field x="33" y="21.25" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="11" codval="" id="152" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">MESSAGE _SCADENZE,IMPORTO,1</prescript>
</field>
<field x="77" y="23" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" height="1.25" id="153" pattern="1" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="10" />
<groups>31</groups>
<source>NETTOPAG</source>
</field>
<field x="0.5" y="7" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="76.5" codval="" id="157" pattern="1" hide_zero="" text="">
<source>33.NOTE</source>
</field>

View File

@ -196,6 +196,7 @@ THEN</prescript>
<field x="1" y="62.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="CONTRIBUTO CONAI ASSOLTO OVE DOVUTO">
<font face="Arial" bold="1" size="10" />
</field>
<field border="1" radius="100" x="76" y="62.5" deactivated="" type="Rettangolo" hidden="" link="" bg_color="#EEEEEE" dynamic_height="" shade_offset="30" width="16" codval="" height="2.75" id="" pattern="2" hide_zero="" text="" />
<field x="1" y="63.5" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="10" />
<source>33.IVAXCASSA</source>
@ -289,6 +290,9 @@ THEN</prescript>
<field x="78.25" y="59.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12.5" codval="" id="53" pattern="1" hide_zero="" text="Totale Documento">
<font italic="1" face="Arial" size="8" />
</field>
<field x="78" y="62.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12.5" codval="" id="53" pattern="1" hide_zero="" text="Netto a pagare">
<font italic="1" face="Arial" size="8" />
</field>
<field x="2" y="27" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="202" pattern="1" hide_zero="" text="Codice">
<font face="Arial" bold="1" size="8" />
</field>
@ -562,6 +566,11 @@ THEN</prescript>
<groups>31</groups>
<prescript description="F1.152 PRESCRIPT">MESSAGE _SCADENZE,IMPORTO,1</prescript>
</field>
<field x="76.5" y="14" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" height="1.25" id="153" pattern="1" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="10" />
<groups>31</groups>
<source>NETTOPAG</source>
</field>
</section>
<sql>USE 33
JOIN 34 INTO CODNUM==CODNUM ANNO==ANNO PROVV==PROVV NDOC==NDOC

View File

@ -251,6 +251,7 @@ class TTipo_documento : public TRectype // velib03
TString16 _valore;
TString16 _totvalres;
TString16 _totvalore;
TString16 _nettopag;
TString16 _totale_cont;
TString16 _field_prezzo;
TString16 _field_qta, _field_qtaevasa; // Veri campi Quantità e Quantità Evasa
@ -325,6 +326,7 @@ public:
const TString & valore() const { return _valore;}
const TString & totvalres() const { return _totvalres;}
const TString & totvalore() const { return _totvalore;}
const TString & netto_pag() const { return _nettopag; }
bool mov_mag() const { return get_bool("B1"); }
bool statistiche() const { return get_bool("B2"); }
bool provvigioni() const { return get_bool("B3"); }
@ -985,6 +987,7 @@ public:
real imponibile(bool spese = false, int ndec = AUTO_DECIMALS) const;
real imposta(bool spese = false, int ndec = AUTO_DECIMALS) const;
real totale_doc() const;
real netto_a_pagare() const;
real totale_netto() const;
real basesconto() const;
real spese() const;

View File

@ -2589,7 +2589,18 @@ real TDocumento::totale_doc() const
}
else
r = get_real(field);
return r;
}
real TDocumento::netto_a_pagare() const
{
real r;
const TString& field = tipo().netto_pag();
if (field.blank())
r = totale_doc() - get_real(DOC_IMPPAGATO) - get_real(DOC_SCONTOFATT);
else
r = get_real(field);
return r;
}

View File

@ -400,6 +400,7 @@ void TTipo_documento::read_formule()
add_formula_if_needed(prof, _spese, "SPESE", "SOMMA(\"IMPONIBILE()\", \"TIPO() == 'S'\")");
add_formula_if_needed(prof, _totvalres, "TOTVALRES", "VALDOC(0)");
add_formula_if_needed(prof, _totvalore, "TOTVALORE", "VALDOC(1)");
add_formula_if_needed(prof, _nettopag, "NETTOPAG", "TOTDOC-" DOC_IMPPAGATO "-" DOC_SCONTOFATT);
if (provvigioni())
{

View File

@ -74,14 +74,14 @@ STD|3|Fatturato|||||||||||||||||||||||||||||||||||||||||||||||||||| | | | | | |
STD|4|Generati effetti|||||||||||||||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
STD|5|Contabilizzato|||||||||||||||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
STD|9|Eliminabile|||||||||||||||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|A01|Fatture di acquisto||12 1 159 1||fatacq|vefatbmp|A01||||||1|2||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|A01|Fatture di acquisto||12 1 159 1||fatacq|vefat|A01||||||1|2||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|B01|Bolla di vendita||12 1 159 1||BOLLAC|vebolbmp||2||VENL||||1||||||||||||||0.00|0.00|0.00|0.00|0.00|0.00|0.00|0.00|0.00|0.00|0.00000|0.00000|0.00000|0.00000|0.00000||||||||||| |X| | | | | | | | |
TIP|BACQ|Bolla di acquisto||12 1 159 1||bolacq|vebolbmp||2||ACQL||||1||||||||||||||||||||||||||||||||||||||| |X| | | | | | | | |
TIP|BOF|bolla fornitore||12 1 159 1||BOLLAF|vebolbmp||2||REAL||||1||||||||||||||||||||||||||||||||||||||| |X| | | | | | | | |
TIP|F01|Fattura||12 1 159 1||FATTURAC|VEFATbmp|V01|||||||2||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|F01|Fattura||12 1 159 1||FATTURAC|VEFAT|V01|||||||2||||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|FAA|Fattura Accompagnatoria||12 1 159 1||FATTURAA|veacc|V01|2||VENL||||2||||||||||||||||||||||||||||||||||||||| |X| | | | | | | | |
TIP|NAC|Nota di accredito cliente||12 1 159 1||fatturac|vefatbmp|V02|||||||2||2||||||||||||||||||||||||||||||||||||| | | | | | | |X| | |X
TIP|NDF|Nota di debito fornitore||12 1 159 1||fatacq|vefatbmp|A03|||||||2||2||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|NDF|Nota di debito fornitore||12 1 159 1||fatacq|vefat|A03|||||||2||2||||||||||||||||||||||||||||||||||||| | | | | | | | | | |
TIP|ORC|Ordine Cliente|ordine cliente|12 1 159 1||ORDINEC|vebolbmp||2||ORCL||||3||||||||||||||||||||||||||||||||||||||| |X| | | | | | | | |
TIP|ORF|Ordine Fornitore||12 1 159 1||ORDINEF|vebolbmp||2||ORFO||||3||||||||||||||||||||||||||||||||||||||| |X| | | | | | | | |
TRI|01|Merce|||||||M

View File

@ -128,6 +128,7 @@
#define F_INVIO_FP 231
#define F_REG_FISCF 232
#define F_NON_INVIO_FP 233
#define F_SCONTOFATT 234
#define F_CDC1 251
#define F_CDC12 262
@ -135,6 +136,8 @@
#define F_DESCDC12 282
#define F_DATACOMP 291
#define F_DATAFCOMP 292
//#define F_SELECT 101
#define F_NAR 299