Link Search Menu Expand Document

Compradores y vendedores

Los compradores y vendedores son representados en Facturae-PHP con la clase FacturaeParty y pueden contener los siguientes atributos:

$empresa = new FacturaeParty([
  "isLegalEntity" => true, // Se asume true si se omite
  "taxNumber"     => "A00000000",
  "name"          => "Perico el de los Palotes S.A.",
  "address"       => "C/ Falsa, 123",
  "postCode"      => "12345",
  "town"          => "Madrid",
  "province"      => "Madrid",
  "countryCode"   => "ESP",  // Se asume Espa帽a si se omite
  "book"             => "0",  // Libro
  "merchantRegister" => "RG", // Registro Mercantil
  "sheet"            => "1",  // Hoja
  "folio"            => "2",  // Folio
  "section"          => "3",  // Secci贸n
  "volume"           => "4",  // Tomo
  "email"   => "contacto@perico.com"
  "phone"   => "910555444",
  "fax"     => "910555443"
  "website" => "http://www.perico.com/",
  "contactPeople" => "Perico",
  "cnoCnae" => "04647", // Clasif. Nacional de Act. Econ贸micas
  "ineTownCode" => "280796" // C贸d. de municipio del INE
]);

$personaFisica = new FacturaeParty([
  "isLegalEntity" => false,
  "taxNumber"     => "00000000A",
  "name"          => "Antonio",
  "firstSurname"  => "Garc铆a",
  "lastSurname"   => "P茅rez",
  "address"       => "Avda. Mayor, 7",
  "postCode"      => "54321",
  "town"          => "Madrid",
  "province"      => "Madrid",
  "countryCode"   => "ESP",  // Se asume Espa帽a si se omite
  "email"   => "antonio@email.com"
  "phone"   => "910777888",
  "fax"     => "910777888"
  "website" => "http://www.antoniogarcia.es/",
  "contactPeople" => "Antonio Garc铆a",
  "cnoCnae" => "04791", // Clasif. Nacional de Act. Econ贸micas
  "ineTownCode" => "280796" // C贸d. de municipio del INE
]);