#include <string.h>#include <QMessageBox>#include <QSqlError>#include <QVariant>#include "format.h"#include "xsqlquery.h"Defines | |
| #define | COSTEXTRASCALE 2 |
| #define | DEBUG false |
| #define | MONEYSCALE 2 |
| #define | PERCENTSCALE 2 |
| #define | PURCHPRICEEXTRASCALE 2 |
| #define | QTYPERSCALE 6 |
| #define | QTYSCALE 2 |
| #define | SALESPRICEEXTRASCALE 2 |
| #define | UOMRATIOSCALE 6 |
| #define | WEIGHTSCALE 2 |
Functions | |
| int | decimalPlaces (QString pName) |
| QString | formatCost (double value, int) |
| QString | formatExtPrice (double value, int) |
| QString | formatMoney (double value, int, int extraDecimals) |
| QString | formatNumber (double value, int decimals) |
| QString | formatPercent (double value) |
| QString | formatPurchPrice (double value, int) |
| QString | formatQty (double value) |
| QString | formatQtyPer (double value) |
| QString | formatSalesPrice (double value, int) |
| QString | formatUOMRatio (double value) |
| QString | formatWeight (double value) |
| QColor | namedColor (QString pName) |
| #define COSTEXTRASCALE 2 |
| #define DEBUG false |
| #define MONEYSCALE 2 |
| #define PERCENTSCALE 2 |
| #define PURCHPRICEEXTRASCALE 2 |
| #define QTYPERSCALE 6 |
| #define QTYSCALE 2 |
| #define SALESPRICEEXTRASCALE 2 |
| #define UOMRATIOSCALE 6 |
| #define WEIGHTSCALE 2 |
| int decimalPlaces | ( | QString | pName | ) |
| QString formatCost | ( | double | value, | |
| int | ||||
| ) |
| QString formatExtPrice | ( | double | value, | |
| int | ||||
| ) |
| QString formatMoney | ( | double | value, | |
| int | , | |||
| int | extraDecimals | |||
| ) |
| QString formatNumber | ( | double | value, | |
| int | decimals | |||
| ) |
| QString formatPercent | ( | double | value | ) |
| QString formatPurchPrice | ( | double | value, | |
| int | ||||
| ) |
| QString formatQty | ( | double | value | ) |
| QString formatQtyPer | ( | double | value | ) |
| QString formatSalesPrice | ( | double | value, | |
| int | ||||
| ) |
| QString formatUOMRatio | ( | double | value | ) |
| QString formatWeight | ( | double | value | ) |
| Generated on Tue Apr 20 12:02:26 2010 | xTuple ERP Programmer Reference, Version 3.5.0 |
1.6.1
|