void dspSalesOrdersByCustomerPO::sPopulateMenu(QMenu *menuThis) { menuThis->insertItem(tr("Edit..."), this, SLOT(sEditOrder()), 0); menuThis->insertItem(tr("View..."), this, SLOT(sViewOrder()), 0); menuThis->insertSeparator(); menuThis->insertItem(tr("Shipment Status..."), this, SLOT(sDspShipmentStatus()), 0); menuThis->insertItem(tr("Shipments..."), this, SLOT(sDspShipments()), 0); if (_privileges->check("MaintainReturns")) { menuThis->insertSeparator(); menuThis->insertItem(tr("Create Return Authorization..."), this, SLOT(sCreateRA())); } }
void dspSalesOrdersByCustomerPO::sPopulateMenu(QMenu *menuThis, QTreeWidgetItem*, int) { if(_privileges->check("MaintainSalesOrders")) menuThis->addAction(tr("Edit..."), this, SLOT(sEditOrder())); menuThis->addAction(tr("View..."), this, SLOT(sViewOrder())); menuThis->addSeparator(); menuThis->addAction(tr("Shipment Status..."), this, SLOT(sDspShipmentStatus())); menuThis->addAction(tr("Shipments..."), this, SLOT(sDspShipments())); if ( (_metrics->boolean("EnableReturnAuth")) && (_privileges->check("MaintainReturns")) ) { menuThis->addSeparator(); menuThis->addAction(tr("Create Return Authorization..."), this, SLOT(sCreateRA())); } }
void dspSalesOrdersByParameterList::sPopulateMenu(QMenu *menuThis) { if(_so->altId() == -1) return; menuThis->insertItem(tr("Edit..."), this, SLOT(sEditOrder()), 0); menuThis->insertItem(tr("View..."), this, SLOT(sViewOrder()), 0); menuThis->insertSeparator(); menuThis->insertItem(tr("Shipment Status..."), this, SLOT(sDspShipmentStatus()), 0); menuThis->insertItem(tr("Shipments..."), this, SLOT(sDspShipments()), 0); if (_privleges->check("MaintainReturns")) { menuThis->insertSeparator(); menuThis->insertItem(tr("Create Return Authorization..."), this, SLOT(sCreateRA())); } }