Comments (4)
Si tratta di una vecchia parte di codice, sicuramente da rimuovere o sistemare. Inizialmente non erano stati presi in considerazione casi con aliquota IVA diversi da 22 e veniva in automatico calcolato un unico blocco di riepilogo. Come puoi vedere il calcolo automatico avviene solo se non gli passi tu un oggetto DatiRiepilogo
, pertanto quello che devi fare è crearti il blocco (che è ripetibile, ovvero può includere più blocchi DatiRiepilogo) e passarlo al costruttore di DatiBeniServizi.
from fattura-elettronica.
Sto cercando di integrare quanto da te indicato ed ho trovato il metodo addDatiRiepilogo() ma a quanto leggo l'istanza dell'oggetto DatiRiepilogo necessita comunque dei parametri e non può essere usata in un loop. Dove sbaglio?
Ad esempio:
$summary = new DatiRiepilogo(null, null); // <<< ERRORE - GENERA UNA RIGA VUOTA
// Loop for tax percent
foreach ($lines as $vat => $line) {
$summary->addDatiRiepilogo(new DatiRiepilogo($total, $vat));
}
grazie
from fattura-elettronica.
Quando crei la prima istanza di DatiRiepilogo
devi passargli i dati del primo blocco. Poi con addDatiRiepilogo($datiRiepilogo2)
aggiungi i blocchi successivi
from fattura-elettronica.
Trovi l'esempio qui
from fattura-elettronica.
Related Issues (20)
- Gestione imposta di bollo HOT 1
- Compatibilità PHP8 - Implements Countable & Iterator HOT 1
- Autofattura HOT 7
- Problema Natura nella classe DatiCassaPrevidenziale HOT 2
- Riferimento termini pagamento segnalato come mancante
- Impostare la sezione di spedizione HOT 2
- Sezione Trasmissione non corretta HOT 19
- CodiceTipo
- Allegati HOT 1
- Supporto schema 1.6? HOT 3
- Installazione HOT 1
- Supporto per sconto/maggiorazione HOT 1
- Errore nel generare ScontoMaggiorazione
- verifica() lancia eccezione con pec [email protected] HOT 3
- Supporto codici tipo documento TD24
- Supporto a Titolo e CodEORI HOT 2
- Supporto completo tipi DatiDocumentiCorrelati
- CI: travis | GHA
- Configurazione .gitattributes (incompleta)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fattura-elettronica.