diff --git a/app/DataMapper/EDoc/FatturaPA/DatiAnagraficiVettore.php b/app/DataMapper/EDoc/FatturaPA/DatiAnagraficiVettore.php new file mode 100644 index 000000000000..8ed55a0d0da8 --- /dev/null +++ b/app/DataMapper/EDoc/FatturaPA/DatiAnagraficiVettore.php @@ -0,0 +1,28 @@ + "", + // "label" => "", + // "type" => "dropdown/date/string/text", + // "resource" => "resource.json", + // "required" => true, + // ] + public function rules() + { + + return [ + 'FatturaPA' => $this->FatturaPADefaults(), + ]; + + } + + + private function FatturaPADefaults() + { + return [ + [ + "key" => "RegimeFiscale", + "label" => "Regime Fiscale", + "type" => "dropdown", + "resource" => "RegimeFiscale.json", + "required" => true, + ], + [ + "key" => "TipoDocumento", + "label" => "Tipo Documento", + "type" => "dropdown", + "resource" => "TipoDocumento.json", + "required" => true, + ], + [ + "key" => "ModalitaPagamento", + "label" => "Modalita Pagamento", + "type" => "dropdown", + "resource" => "ModalitaPagamento.json", + "required" => true, + ], + [ + "key" => "CondizioniPagamento", + "label" => "Condizioni Pagamento", + "type" => "dropdown", + "resource" => "CondizioniPagamento.json", + "required" => true, + ], + [ + "key" => "DatiRicezione", + "label" => "Dati Ricezione", + "type" => "dropdown", + "resource" => "CondizioniPagamento", + "required" => false, + ], + [ + "key" => "DatiContratto", + "label" => "Dati Contratto", + "type" => "object", + "resource" => "DatiContratto", + "required" => false, + ], + [ + "key" => "DatiOrdineAcquisto", + "label" => "Dati Ordine Acquisto", + "type" => "object", + "resource" => "DatiOrdineAcquisto", + "required" => false, + ], + [ + "key" => "DatiAnagraficiVettore", + "label" => "Dati Anagrafici Vettore", + "type" => "object", + "resource" => "DatiAnagraficiVettore", + "required" => false, + ], + ]; + } +} \ No newline at end of file