WeFact Standard API versie 3.1



Offertes

Offertes zijn te beheren via de controller 'pricequote'.



accept

Middels deze functie kunt u een offerte op geaccepteerd zetten. De offerte verandert naar status 'Geaccepteerd' (= 3).
Voorbeeldbestand: /voorbeelden/pricequote/pricequote.accept.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een offerte
PriceQuoteCode string Het offertenummer
CreateInvoice 'yes' of 'no' Standaard 'no'
UsePriceQuoteCodeASInvoiceReference 'yes' of 'no' Standaard: 'no'
Verplichte velden: Identifier of PriceQuoteCode


Voorbeeld invoer:
$api->sendRequest('pricequote', 'accept', array(
	'PriceQuoteCode' 	=> 'OF0001'
));

Voorbeeld uitvoer:
Array
(
    [controller] => pricequote
    [action] => accept
    [status] => success
    [date] => 2014-05-16T15:23:38+00:00
    [success] => Array
        (
            [0] => Offerte OF0001 is geaccepteerd
        )

    [pricequote] => Array
        (
            [Identifier] => 1
            [PriceQuoteCode] => OF0001
            [Debtor] => 1
            [DebtorCode] => DB0001
            [Status] => 3
            [Date] => 2014-05-16
            [Term] => 30
            [AmountExcl] => 750.00
            [AmountTax] => 157.50
            [AmountIncl] => 907.50
            [Discount] => 0
            [VatCalcMethod] => excl
            [IgnoreDiscount] => no
            [ReferenceNumber] => 
            [CompanyName] => Company X
            [Initials] => John
            [SurName] => Jackson
            [Sex] => m
            [Address] => Keizersgracht 100
            [ZipCode] => 1015 AA
            [City] => Amsterdam
            [Country] => NL
            [EmailAddress] => info@company.com
            [PriceQuoteMethod] => 0
            [SentDate] => 2014-05-16
            [Sent] => 1
            [LanguageCode] => nl_nl
            [Description] => 
            [Comment] => 
            [PriceQuoteLines] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 1
                            [Date] => 2014-05-16
                            [Number] => 3
                            [NumberSuffix] => 
                            [ProductCode] => P0001
                            [Description] => Consultancy
                            [PriceExcl] => 100
                            [DiscountPercentage] => 0
							[DiscountPercentageType] => line
                            [TaxPercentage] => 21
                            [Periods] => 1
                            [Periodic] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                    [1] => Array
                        (
                            [Identifier] => 2
                            [Date] => 2014-05-16
                            [Number] => 1
                            [NumberSuffix] => 
                            [ProductCode] => 
                            [Description] => Service contract
                            [PriceExcl] => 150
                            [DiscountPercentage] => 0
							[DiscountPercentageType] => line
                            [TaxPercentage] => 21
                            [Periods] => 3
                            [Periodic] => m
                            [StartPeriod] => 2014-05-16
                            [EndPeriod] => 2014-08-16
                        )

                )

            [Translations] => Array
                (
                    [Status] => Geaccepteerd
                    [Country] => Nederland
                    [PriceQuoteMethod] => Per e-mail
                    [LanguageLabel] => Nederlands
                )

        )

)