Skip to content

Commit

Permalink
Merge pull request #32 from robinvalk/patch-1
Browse files Browse the repository at this point in the history
Added support for PrintedSalesInvoice
  • Loading branch information
stephangroen committed Dec 25, 2015
2 parents 5bb02b7 + d230e6a commit fe69f1d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/Picqer/Financials/Exact/PrintedSalesInvoice.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php namespace Picqer\Financials\Exact;

class PrintedSalesInvoice extends Model
{
protected $primaryKey = 'InvoiceID';

protected $fillable = [
'InvoiceID',
'Division',
'Document',
'DocumentCreationError',
'DocumentCreationSuccess',
'DocumentLayout',
'EmailCreationError',
'EmailCreationSuccess',
'EmailLayout',
'ExtraText',
'InvoiceDate',
'PostboxMessageCreationError',
'PostboxMessageCreationSuccess',
'PostboxSender',
'ReportingPeriod',
'ReportingYear',
'SendEmailToCustomer',
'SendInvoiceToCustomerPostbox',
'SendOutputBasedOnAccount',
];

public function save()
{
return $this->insert();
}

public function insert()
{
return $this->connection()->post($this->url, $this->json());
}

protected $url = 'salesinvoice/PrintedSalesInvoices';

}

0 comments on commit fe69f1d

Please sign in to comment.