Files
thetool/application/WarehouseOffer/WarehouseOfferModel.php

83 lines
3.0 KiB
PHP

<?php
/**
* Class WarehouseOfferModel
*
* Represents a warehouse offer with customer details and related metadata.
*
* @property int $id Unique identifier for the warehouse offer
* @property string $offerNumber Unique offer number
* @property string $reference Reference number for the offer
* @property string $customerNumber Customer number
* @property string $customerName Name of the customer
* @property string $customerStreet Street address of the customer
* @property string $customerCity City of the customer
* @property string $customerZip Postal code of the customer
* @property string $customerVAT VAT number of the customer
* @property int $editor ID of the editor who last modified the offer
* @property string $purpose Purpose of the offer
* @property string $positions Details about positions in the offer
* @property string $alternativePositions Details about alternative positions in the offer
* @property float $totalDiscount Total discount applied to the offer
* @property string $paymentTerms Payment terms for the offer
* @property string $deliveryTerms Delivery terms for the offer
* @property string $closingText Closing text for the offer
* @property string $notes Additional notes for the offer
* @property string $status Current status of the offer
* @property float $totalAmount Total amount of the offer
* @property int $create Timestamp of the offer creation
* @property int $createBy ID of the user who created the offer
*/
class WarehouseOfferModel extends TTCrudBaseModel {
public int $id;
public string $offerNumber;
public string $reference;
public string $customerNumber;
public string $customerName;
public string $customerStreet;
public string $customerCity;
public string $customerZip;
public string $customerVAT;
public int $editor;
public string $purpose;
public string $positions;
public string $alternativePositions;
public float $totalDiscount;
public string $paymentTerms;
public string $deliveryTerms;
public string $closingText;
public string $notes;
public string $status;
public float $totalAmount;
public int $create;
public int $createBy;
}
//SQL TO CREATE TABLE
/*
CREATE TABLE `warehouse_offer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`offerNumber` varchar(255) NOT NULL,
`customerNumber` varchar(255) NOT NULL,
`customerName` varchar(255) NOT NULL,
`customerStreet` varchar(255) NOT NULL,
`customerCity` varchar(255) NOT NULL,
`customerZip` varchar(255) NOT NULL,
`customerVAT` varchar(255) NOT NULL,
`editor` int(11) NOT NULL,
`purpose` varchar(255) NOT NULL,
`positions` text NOT NULL,
`alternativePositions` text NOT NULL,
`totalDiscount` float NOT NULL,
`paymentTerms` varchar(255) NOT NULL,
`deliveryTerms` varchar(255) NOT NULL,
`closingText` varchar(255) NOT NULL,
`notes` varchar(255) NOT NULL,
`status` varchar(255) NOT NULL,
`totalAmount` float NOT NULL,
`create` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
*/