承接 apexmediacz/pohoda-export-generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

apexmediacz/pohoda-export-generator

最新稳定版本:v2.3

Composer 安装命令:

composer require apexmediacz/pohoda-export-generator

包简介

Generator of XML exports for POHODA accounting sw

README 文档

README

Export invoices to XML format used in accounting software POHODA using simple object

Quick Start

require_once("../vendor/autoload.php");

use Apexmediacz\PohodaExportGenerator;

$invoice_item = (object)[
	"name" => "skv-01521/24 VLOŽKY ORTOPEDICKÉ INDIV. ZHOTOVOVANÉ (2 ks)",
	"quantity" => 1,
	"unit_label" => "ks",
	"vat_rate_percent" => 12,
	"unit_price_base" => 946.43,
	"unit_price_vat_inclusive" => 1060,
	"total_item_price_base" => 946.43,
	"total_item_price_vat_inclusive" => 1060,
];

$invoice = (object)[
	"accounting_series_no" => "24FV",
	"request_number" => true,
	"invoice_id" => "00041",
	"invoice_type" => "issuedInvoice", //issuedInvoice = vydaná faktura | commitment = ostatní závazky
	"order_id" => "skv-01521/24",
	"issue_date" => "2024-06-04",
	"tax_point_date" => "2024-06-04",
	"is_vat_applicable" => true,
	"description" => "popis faktury",
	"customer" => (object)[
		"name" => "Zákazník",
		"identification_number" => "07968116",
		"tax_number" => "CZ07968116",
		"address" => (object)[
			"street" => "Vltavínová",
			"house_number" => "7",
			"city" => "Plzeň",
			"zip_code" => "326 00",
			"country_code" => "CZ"
		],
	],
	"payment" => (object)[
		"payment_type" => "cash", //cash = hotovost | transfer = převod | creditCard = karta
		"bank_account_number" => "12345678",
		"bank_code" => "0300",
		"variable_symbol" => "41240985",
		"constant_symbol" => null,
		"specific_symbol" => null,
		"payment_due_date" => "2024-06-04",
	],
	"items" => [
		$invoice_item
	]
];

$data = (object)[
	"accounting_unit_identification_number" => "ICO_UCETNI_JEDNOTKY",
	"invoices" => [
		$invoice,
	]
];

$pohoda = new PohodaExportGenerator;
$xmlString = $pohoda->generateXml($data, false);

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-05-29